* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.exam-weighted-calculator-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.exam-weighted-calculator-container .container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 900px;
    width: 100%;
    margin: 20px;
}

.exam-weighted-calculator-container h1 {
    color: #2d3748;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 600;
}

.exam-weighted-calculator-container .subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.exam-weighted-calculator-container .input-section {
    margin-bottom: 30px;
}

.exam-weighted-calculator-container .exam-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.exam-weighted-calculator-container .exam-table th {
    background-color: #f7fafc;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #4a5568;
    border-bottom: 2px solid #e2e8f0;
}

.exam-weighted-calculator-container .exam-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
}

.exam-weighted-calculator-container input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.exam-weighted-calculator-container input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.exam-weighted-calculator-container input.error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.exam-weighted-calculator-container .btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.exam-weighted-calculator-container .btn:active {
    transform: scale(0.98);
}

.exam-weighted-calculator-container .btn-primary {
    background-color: #4299e1;
    color: white;
}

.exam-weighted-calculator-container .btn-primary:hover {
    background-color: #3182ce;
}

.exam-weighted-calculator-container .btn-danger {
    background-color: #e53e3e;
    color: white;
}

.exam-weighted-calculator-container .btn-danger:hover {
    background-color: #c53030;
}

.exam-weighted-calculator-container .btn-success {
    background-color: #38a169;
    color: white;
}

.exam-weighted-calculator-container .btn-success:hover {
    background-color: #2f855a;
}

.exam-weighted-calculator-container .btn-secondary {
    background-color: #a0aec0;
    color: white;
}

.exam-weighted-calculator-container .btn-secondary:hover {
    background-color: #718096;
}

.exam-weighted-calculator-container .btn-small {
    padding: 6px 10px;
    font-size: 14px;
}

.exam-weighted-calculator-container .button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.exam-weighted-calculator-container .result-section {
    background-color: #f7fafc;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    display: none;
}

.exam-weighted-calculator-container .result-section.visible {
    display: block;
}

.exam-weighted-calculator-container .result-value {
    font-size: 2.5em;
    font-weight: 700;
    color: #2d3748;
    text-align: center;
    margin: 10px 0;
}

.exam-weighted-calculator-container .recommendation {
    text-align: center;
    font-size: 1.2em;
    margin: 15px 0;
    padding: 12px;
    border-radius: 6px;
    font-weight: 500;
}

.exam-weighted-calculator-container .excellent {
    background-color: #c6f6d5;
    color: #22543d;
}

.exam-weighted-calculator-container .strong {
    background-color: #bee3f8;
    color: #1a365d;
}

.exam-weighted-calculator-container .average {
    background-color: #fefcbf;
    color: #744210;
}

.exam-weighted-calculator-container .poor {
    background-color: #fed7d7;
    color: #742a2a;
}

.exam-weighted-calculator-container .warning {
    background-color: #fffaf0;
    color: #744210;
    padding: 10px 15px;
    border-radius: 6px;
    border-left: 4px solid #ed8936;
    margin: 15px 0;
}

.exam-weighted-calculator-container .error-message {
    color: #e53e3e;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.exam-weighted-calculator-container .footer {
    text-align: center;
    margin-top: 30px;
    color: #718096;
    font-size: 14px;
}

@media (max-width: 768px) {
    .exam-weighted-calculator-container .container {
        padding: 20px;
    }
    
    .exam-weighted-calculator-container .exam-table {
        display: block;
        overflow-x: auto;
    }
    
    .exam-weighted-calculator-container .button-group {
        flex-direction: column;
    }
    
    .exam-weighted-calculator-container .btn {
        width: 100%;
    }
}