.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

.bg-gradient-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
}

.school-row {
    transition: all 0.3s ease;
}

.school-row:hover {
    background-color: #f8f9fa !important;
    transform: translateX(5px);
}

.guvence-score .progress {
    border-radius: 10px;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
}

.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.kategori-guvenli {
    border-left: 4px solid #28a745;
}

.kategori-uygun {
    border-left: 4px solid #007bff;
}

.kategori-riskli {
    border-left: 4px solid #ffc107;
}

.kategori-zor {
    border-left: 4px solid #dc3545;
}

.kategori-hedef {
    border-left: 4px solid #007bff;
}

/* Yeni Sonuçlar Bölümü - Düzeltilmiş */
.results-section {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    background: white !important; /* Zorla beyaz arka plan */
}

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

.results-header h4,
.results-header p {
    color: white !important;
}

.filters-section {
    background: #f8f9fa !important; /* Açık gri arka plan */
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    color: #495057 !important;
}

.year-tabs-desktop {
    background: #f8f9fa !important; /* Tab alanı arka planı */
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
}

.year-tabs-desktop .nav-pills .nav-link {
    color: #495057 !important; /* Koyu metin rengi */
    background: #ffffff !important; /* Beyaz arka plan */
    border-radius: 0;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    margin: 0 2px;
}

.year-tabs-desktop .nav-pills .nav-link:hover {
    background: rgba(102, 126, 234, 0.1) !important;
    color: #667eea !important;
    border-color: #667eea;
}

.year-tabs-desktop .nav-pills .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-color: #667eea;
}

.content-area {
    background: white !important; /* Beyaz arka plan */
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    color: #495057 !important;
}

.category-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-bottom: 1px solid #dee2e6;
    color: #495057 !important;
}

.school-item {
    transition: all 0.3s ease;
    position: relative;
    background: white !important; /* Beyaz arka plan */
    color: #495057 !important; /* Koyu metin */
}

.school-item:hover {
    background-color: #f8f9fa !important;
    transform: translateX(5px);
}

.school-item h6,
.school-item .small,
.school-item .fw-bold,
.school-item .text-muted {
    color: #495057 !important;
}

.school-item .text-primary {
    color: #007bff !important;
}

.school-item .text-info {
    color: #17a2b8 !important;
}

.schools-list {
    background: white !important;
    min-height: 200px;
    color: #495057 !important;
}

/* Form kontrollerinin renkleri */
.form-select option {
    color: #495057 !important;
    background: white !important;
}

.form-label {
    color: #495057 !important;
}

/* Badge'lerin görünürlüğü */
.badge.bg-primary {
    background-color: #007bff !important;
    color: white !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
    color: white !important;
}

.badge.bg-success {
    background-color: #28a745 !important;
    color: white !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
    color: white !important;
}

.badge.bg-info {
    background-color: #17a2b8 !important;
    color: white !important;
}

/* Link renkleri */
.school-link {
    color: #495057 !important;
    transition: color 0.2s ease;
}

.school-link:hover {
    color: #007bff !important;
}

/* Net hesaplama görüntüsü */
.calculated-net {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6;
    color: #495057 !important;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
}

.calculated-net.positive {
    background-color: #d4edda !important;
    border-color: #c3e6cb;
    color: #155724 !important;
}

/* Doğru/Yanlış input'ları */
.dogru-input.is-valid,
.yanlis-input.is-valid {
    border-color: #28a745;
}

.dogru-input.is-invalid,
.yanlis-input.is-invalid {
    border-color: #dc3545;
}

/* Form grup düzeni */
.col-md-4 .row.g-2 {
    align-items: end;
}

.col-md-4 .row.g-2 .col-4:last-child {
    display: flex;
    flex-direction: column;
}

/* Responsive düzenlemeler - Güncellenmiş */
@media (max-width: 768px) {
    .results-section {
        border-radius: 15px;
    }
    
    .results-header h4 {
        font-size: 1.1rem;
    }
    
    .schools-list {
        /* max-height kaldırıldı */
        min-height: 150px;
    }
    
    .school-item h6 {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .category-summary .col-3 {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .filters-section .row .col-6 {
        margin-bottom: 1rem;
    }
    
    .category-summary .col-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .school-item {
        border-left-width: 3px !important;
    }
}

/* Progress bar improvements */
.progress {
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.6s ease;
}

/* Card header düzeltmeleri */
.card-header.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

.card-header.bg-gradient.text-white {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

.card-header.bg-gradient h4,
.card-header.bg-gradient h5,
.card-header.bg-gradient p,
.card-header.bg-gradient span,
.card-header.bg-gradient .text-white {
    color: white !important;
}

/* Bootstrap override için özel selector */
.card .card-header.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* Performance Dashboard Styles */
.performance-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.performance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.performance-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.performance-title {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.performance-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.performance-desc {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

/* Progress Ring - SVG tabanlı düzeltmeler */
.progress-ring-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.progress-ring {
    position: relative;
    width: 100%;
    height: 100%;
}

.progress-ring-svg {
    width: 80px;
    height: 80px;
    transform: rotate(-90deg);
}

.progress-ring-background {
    stroke: #e9ecef;
}

.progress-ring-progress {
    stroke: #007bff;
    stroke-dasharray: 226.2; /* 2 * PI * 36 */
    transition: stroke-dashoffset 1.5s ease-in-out;
}

.progress-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    font-size: 0.9rem;
    color: #007bff;
}

/* Gauge Progress - SVG tabanlı */
.gauge-svg {
    width: 100px;
    height: 50px;
}

.gauge-background {
    stroke: #e9ecef;
}

.gauge-fill {
    stroke: #28a745;
    stroke-dasharray: 94.2; /* PI * 30 (half circle) */
    transition: stroke-dashoffset 1.5s ease-in-out;
    transform-origin: center;
}

.gauge-center {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #495057;
    border-radius: 50%;
}

/* Counter Animation */
.counter-animation {
    margin-top: 1rem;
}

.counter-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffc107;
}

.counter-label {
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Subject Performance */
.subject-performance {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.subject-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.subject-name {
    font-weight: 600;
    color: #495057;
}

.subject-score {
    font-weight: 700;
    color: #007bff;
    font-size: 0.9rem;
}

.subject-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.subject-progress .progress {
    flex: 1;
    height: 8px;
    border-radius: 10px;
}

/* Success Tips */
.success-tips {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.tip-card {
    border-radius: 12px;
    padding: 1.25rem;
    border-left: 4px solid;
    background: white !important;
}

.tip-card i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tip-card h6 {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #495057;
}

.tip-card p {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #6c757d;
}

.section-title {
    font-weight: 600;
    color: #495057 !important;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    font-size: 1.1rem !important; /* Boyutu küçült */
}

/* Özel olarak performans analizi başlığı için */
.performance-details .section-title {
    font-size: 1rem !important;
    color: #6c757d !important;
    font-weight: 500;
    margin-bottom: 1rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #dee2e6;
}

.performance-details .section-title i {
    color: #667eea !important;
    font-size: 0.9rem;
}

/* Success tips başlığı için */
.success-tips .section-title {
    font-size: 1rem !important;
    color: #6c757d !important;
    font-weight: 500;
    margin-bottom: 1rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #dee2e6;
}

.success-tips .section-title i {
    color: #ffc107 !important;
    font-size: 0.9rem;
}

/* Performance Details */
.performance-details {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

/* Animated Progress Bars */
.progress-bar {
    transition: width 1.5s ease-in-out;
}

/* Input validation fixes - Düzeltilmiş */
.form-control.is-valid,
.form-control.is-invalid {
    padding-right: 0.75rem !important; /* Normal padding */
    background-image: none !important; /* Arka plan ikonunu kaldır */
}

/* Validation ikonları için container */
.input-validation-container {
    position: relative;
}

.input-validation-container .validation-icon {
    position: absolute;
    top: -5px;
    right: -20px;
    z-index: 10;
    font-size: 0.875rem;
    opacity: 0.8;
}

.input-validation-container .validation-icon.valid {
    color: #28a745;
}

.input-validation-container .validation-icon.invalid {
    color: #dc3545;
}

/* Net hesaplama input düzeni - güncellenmiş */
.net-calculation-group {
    position: relative;
}

.net-calculation-group .form-control {
    background-image: none !important;
    padding-right: 0.75rem !important;
    border-width: 1px;
}

.net-calculation-group .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    border-color: #667eea;
}

/* Doğru/Yanlış input'ları için özel validasyon */
.dogru-input.is-valid,
.yanlis-input.is-valid {
    border-color: #28a745;
    background-image: none !important;
}

.dogru-input.is-invalid,
.yanlis-input.is-invalid {
    border-color: #dc3545;
    background-image: none !important;
}

/* Validation feedback pozisyonu */
.validation-feedback-top {
    position: absolute;
    top: -20px;
    left: 0;
    font-size: 0.75rem;
    opacity: 0.8;
}

.validation-feedback-top.valid {
    color: #28a745;
}

.validation-feedback-top.invalid {
    color: #dc3545;
}

/* Content Menu Styling for SSS Page */
.content-menu-card {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.content-menu-card .nav-link {
    color: #495057;
    padding: 12px 16px;
    border: none;
    background: transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.content-menu-card .nav-link:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    transform: translateX(5px);
    padding-left: 20px;
}

.content-menu-card .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    border-left: 4px solid #ffffff;
}

.content-menu-card .nav-link i {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.content-menu-card .nav-link:hover i {
    transform: scale(1.1);
}

.content-menu-card .nav-link span {
    flex: 1;
}

/* Section title styling */
.section-title {
    font-weight: 700;
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

/* Enhanced accordion styling */
.accordion-button {
    font-weight: 600;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: none;
    color: #2d3748;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23667eea'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Enhanced hero section text styling */
.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Sticky positioning improvement for mobile */
@media (max-width: 991.98px) {
    .content-menu-card.sticky-top {
        position: relative !important;
        top: 0 !important;
        margin-bottom: 2rem;
    }
}

/* Scroll-spy active state enhancement */
.nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-left: 4px solid #ffffff !important;
}
