.neet-calculator-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.neet-calculator {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.calculator-header {
    background: linear-gradient(to right, #1a237e 0%, #283593 100%);
    color: white;
    padding: 25px;
    text-align: center;
}

.calculator-header h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.calculator-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.calculator-body {
    padding: 25px;
}

.input-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 900px) {
    .input-section {
        grid-template-columns: 1fr;
    }
}

.marks-inputs {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
}

.marks-inputs h3 {
    color: #1a237e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a7fff;
}

.subject-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.subject-section h4 {
    color: #1a237e;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s;
}

.input-group input:focus, .input-group select:focus {
    outline: none;
    border-color: #4a7fff;
    box-shadow: 0 0 0 3px rgba(74, 127, 255, 0.2);
}

.btn {
    background: #4a7fff;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    background: #3b65d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-calculate {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    background: #1a237e;
}

.btn-calculate:hover {
    background: #283593;
}

.btn-reset {
    background: #e53e3e;
    margin-top: 15px;
    width: 100%;
}

.btn-reset:hover {
    background: #c53030;
}

.result-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    text-align: center;
}

.result-section h3 {
    color: #1a237e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a7fff;
}

.score-display {
    font-size: 3.5rem;
    font-weight: 700;
    color: #4a7fff;
    margin: 20px 0;
    padding: 20px;
    background: #f0f4ff;
    border-radius: 10px;
}

.percentile-display {
    font-size: 2rem;
    font-weight: 600;
    color: #48bb78;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: #f0f4ff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-card h4 {
    color: #1a237e;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.stat-card .value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4a7fff;
}

.accuracy-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.accuracy-section h4 {
    color: #1a237e;
    margin-bottom: 15px;
    text-align: left;
}

.accuracy-bar {
    width: 100%;
    height: 20px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.accuracy-fill {
    height: 100%;
    background: linear-gradient(to right, #48bb78, #68d391);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.accuracy-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
}

.visualization-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-top: 30px;
}

.visualization-section h3 {
    color: #1a237e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a7fff;
}

.chart-container {
    position: relative;
    height: 400px;
    margin-bottom: 30px;
}

.info-section {
    background: #f0f4ff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.info-section h3 {
    color: #1a237e;
    margin-bottom: 15px;
}

.info-section p {
    margin-bottom: 15px;
}

.marking-scheme, .subject-info, .weightage-section {
    margin-top: 20px;
}

.marking-scheme h4, .subject-info h4, .weightage-section h4 {
    color: #1a237e;
    margin-bottom: 10px;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background-color: #f7fafc;
    color: #1a237e;
    font-weight: 600;
}

tr:hover {
    background-color: #f7fafc;
}

.weightage-tabs {
    margin-top: 15px;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.tab-button {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-button.active {
    color: #1a237e;
    border-bottom: 3px solid #1a237e;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.error-notification {
    background-color: #fed7d7;
    color: #c53030;
    padding: 12px 15px;
    border-radius: 6px;
    margin-top: 15px;
    display: none;
    border-left: 4px solid #e53e3e;
}

.error-notification.show {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.error-icon {
    margin-right: 8px;
}

@media (max-width: 768px) {
    .calculator-header h2 {
        font-size: 1.8rem;
    }
    
    .calculator-header p {
        font-size: 1rem;
    }
    
    .input-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .score-display {
        font-size: 2.5rem;
    }
    
    .percentile-display {
        font-size: 1.5rem;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-button {
        text-align: left;
        border-bottom: 1px solid #e2e8f0;
        border-left: 3px solid transparent;
    }
    
    .tab-button.active {
        border-left: 3px solid #1a237e;
        border-bottom: 1px solid #e2e8f0;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 10px 12px;
    }
}