* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
}

.container {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    margin: 0 auto;
}

.calculator-form {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.calculator-form:last-of-type {
    border-bottom: none;
}

header {
    margin-bottom: 30px;
    text-align: center;
}

h1 {
    color: #333;
    margin-bottom: 15px;
    font-size: 28px;
}

.subtitle {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.form-group {
    margin-bottom: 20px;
}

label {
    margin-bottom: 8px;
    color: #555;
    font-weight: bold;
}

input[type="number"] {
    /* width: 100%; */
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
}

.button-group {
    gap: 10px;
    margin-top: 25px;
}

button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-calculate {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-clear {
    background: #e74c3c;
    color: white;
}

.btn-clear:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.result {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    display: none;
}

.result.show {
    display: block;
}

.result h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.result-value {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
}

.formula {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}
