 /* Previous styles remain the same */
 body {
    font-family: 'Arial', sans-serif;
    background: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.calculator-container {
    background: white;
    padding: 2rem;
    margin-top: 75px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 900px;
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.input-group {
    margin-bottom: 1rem;
    position: relative;
}

.input-with-unit {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-with-unit input {
    flex: 1;
}

.unit-label {
    color: #666;
    font-size: 0.9rem;
    min-width: 40px;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #34495e;
    font-weight: bold;
}

input {
    width: calc(100% - 1.6rem);
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: #3498db;
}

.unit-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
    justify-content: center;
}

.toggle-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #3498db;
    background: white;
    color: #3498db;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
}

.toggle-btn.active {
    background: #3498db;
    color: white;
}

.power-toggle {
    margin-bottom: 1rem;
}

button {
    width: 100%;
    padding: 1rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

button:hover {
    background-color: #2980b9;
}

.result {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.result h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    text-align: center;
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.result-box {
    background: white;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.result-box h3 {
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.power-units {
    display: flex;
    gap: 10px;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.w-full {
    width: 100%;
}
.fixed {
    position: fixed;
}
.fixed {
    top: 0;
}