.cutoff-calculator {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.calculator-header {
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #0d316e 0%, #007c56 100%);
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    color: white;
    padding: 30px;
    border-radius: 10px;
}

.calculator-header h2 {
    margin: 0 0 10px 0;
    font-size: 2.2em;
	color: #fff;
}

.calculator-header p {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.9;
	color: #fff;
}

.form-section {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid #0d316e;
    /* border-left: 4px solid #667eea; */
}

.form-section h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.form-group.half {
    flex: 1;
}

.marks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.stream-fields,
.subject-fields {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-top: 10px;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.btn-primary {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background: linear-gradient(135deg, #0d316e 0%, #007c56 100%);
    color: white;
}

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

.btn-primary:disabled {
    background: #6c757d;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
}

/* Result Styles */
.result-container {
    margin-top: 30px;
}

.result-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.result-header {
/*     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
	background: linear-gradient(135deg, #0d316e 0%, #007c56 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.result-header h3 {
    margin: 0;
    font-size: 1.5em;
	color: #fff;
}

.result-body {
    padding: 30px;
    text-align: center;
}

.student-greeting h4 {
    font-size: 1.4em;
    color: #333;
    margin-bottom: 30px;
}

.cutoff-score {
    margin: 30px 0;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
/*     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
	background: linear-gradient(135deg, #0d316e 0%, #007c56 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.score {
    font-size: 2.5em;
    font-weight: bold;
    line-height: 1;
}

.score-label {
    font-size: 0.9em;
    opacity: 0.9;
    margin-top: 5px;
}

.eligibility-message {
    margin-top: 20px;
}

.eligibility-message p {
    font-size: 1.2em;
    color: #28a745;
    font-weight: 600;
    padding: 15px;
    background: #f8fff9;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.result-actions {
    padding: 20px;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #dee2e6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cutoff-calculator {
        padding: 10px;
    }
    
    .calculator-header {
        padding: 20px;
		color: #fff;
    }
    
    .calculator-header h2 {
        font-size: 1.8em;
		color: #fff;
    }
    
    .marks-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        text-align: center;
    }
    
    .btn-primary,
    .btn-secondary {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
    }
    
    .score {
        font-size: 2em;
    }

    .form-row {
        flex-direction: column;
    }
}

/* Print Styles */
@media print {
    /* Hide everything initially */
    body * {
        visibility: hidden;
    }
    
    /* Show only the result container and its children */
    .result-container,
    .result-container * {
        visibility: visible;
    }
    
    /* Position the result container properly */
    .result-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    /* Style the result card for print */
    .result-card {
        box-shadow: none;
        border: 2px solid #333;
        margin: 0;
        page-break-inside: avoid;
    }
    
    /* Ensure good contrast for printing */
    .result-header {
        background: #667eea !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .score-circle {
        background: #667eea !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
        print-color-adjust: exact;
        border: 2px solid #333;
    }
    
    /* Hide form and other elements */
    .cutoff-calculator > *:not(.result-container),
    .calculator-header,
    #cutoffForm,
    .form-actions,
    .result-actions {
        display: none !important;
    }
    
    /* Show only specific result elements */
    .result-actions {
        display: none !important;
    }
}