* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #1e293b;
    line-height: 1.6;
} */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    overflow-x: hidden;
}

/* Header Styles */
header {
    text-align: center;
     background: linear-gradient(135deg, #9CA1E2 0%, #4b85e6 50%, #9CA1E2 100%);
    color: white !important;
    padding: 20px;
    border-radius: 15px !important;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.2);
}




header h1 {
    font-size: 45px !important;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.input-section, .results-section {
    background: white !important;
    padding: 2rem;
    border-radius: 15px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0 !important;
}

.input-section h2, .results-section h2 {
    color: #4b85e6 !important;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 3px solid #4b85e6 !important;
    padding-bottom: 0.5rem;
}

.section-group {
    margin-bottom: 2rem;
}

.section-group h3 {
    color:#4b85e6;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: #374151 !important;
    margin-bottom: 0.5rem;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider {
    flex: 1;
    height: 6px !important;
    border-radius: 3px !important;
    background: #e2e8f0 !important;
    outline: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
/* 	padding:3px !important; */
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 80px;
}

.score-input {
    width: 60px !important;
    padding: 0.5rem !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #1e40af;
    transition: all 0.3s ease;
}

.score-input:focus {
    outline: none !important;
    border-color: #4b85e6 !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.max-score {
    color: #6b7280 !important;
    font-weight: 500;
}

.result-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    padding: 1.5rem;
    border-radius: 12px !important;
    border: 2px solid #e2e8f0 !important;
    margin-bottom: 1.5rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0 !important;
}

.result-item:last-child {
    border-bottom: none;
}

.predicted-score {
    background: linear-gradient(135deg, #9CA1E2 0%, #4b85e6 50%, #9CA1E2 100%) !important;
    margin: 1rem -1.5rem -1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 0 0 10px 10px !important;
    color: white !important;
}

.result-label {
    font-weight: 600;
    font-size: 1.1rem;
	color:black;
}

#result_head {
    font-weight: 600;
    font-size: 1.1rem;
	color:white !important;
} 
.result-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4b85e6 !important;
}

.predicted-score .result-value {
    color: white !important;
}

.ap-score {
    font-size: 2rem !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.score-explanation {
    background: #fefce8 !important;
    padding: 1.5rem;
    border-radius: 12px !important;
    border-left: 4px solid #4b85e6 !important;
}

.score-explanation h4 {
    color: #92400e;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.score-explanation ul {
    list-style: none;
}

.score-explanation li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    color: #78716c;
}

.score-badge {
    width: 24px;
    height: 24px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
}

.score-5 { background: #10b981; }
.score-4 { background: #3b82f6; }
.score-3 { background: #f59e0b; }
.score-2 { background: #ef4444; }
.score-1 { background: #6b7280; }

.footer {
    text-align: center;
    padding: 2rem 0;
    color: #6b7280;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0px !important;
    }
    
    .header {
        padding: 2rem 0;
        margin-bottom: 1.5rem;
    }
    
    .header h1 {
        font-size: 35px !important;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .input-section, .results-section {
        padding: 1.5rem;
    }
    
    .slider-container {
        flex-direction: row;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .input-wrapper {
        justify-content: center;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.75rem;
    }
    
    .input-section, .results-section {
        padding: 1rem;
    }
    
    .input-section h2, .results-section h2 {
        font-size: 1.5rem;
    }
    
    .section-group h3 {
        font-size: 1.1rem;
    }
    
    .result-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .score-explanation {
        padding: 1rem;
    }
}

/* Animation for smooth transitions */
.result-value, .ap-score {
    transition: all 0.3s ease;
}

/* Hover effects */
.input-group:hover .slider::-webkit-slider-thumb {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.score-input:hover {
    border-color: #f59e0b;
    transform: translateY(-1px);
}

.result-card {
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}