/* Ana CSS Dosyası */

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Genel buton animasyonları */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Kart hover efektleri */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

/* Link kartlar için özel stiller */
a .card:hover {
    border-color: #007bff;
}

/* AI Analiz yükleme animasyonu */
.btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* AI Analiz sonuç alanları */
.analysis-content {
    animation: fadeInUp 0.5s ease-in-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hata kalıbı kartları */
.alert-danger.py-2 {
    border-left: 4px solid #dc3545;
}

.alert-warning.py-2 {
    border-left: 4px solid #ffc107;
}

/* Spinner animasyonu iyileştirmesi */
.fa-spin {
    animation: fa-spin 2s infinite linear;
}

/* Purple renk sınıfları */
.bg-purple {
    background-color: #6f42c1 !important;
}

.btn-purple {
    background-color: #6f42c1;
    border-color: #6f42c1;
    color: white;
}

.btn-purple:hover {
    background-color: #5a32a3;
    border-color: #5a32a3;
    color: white;
}

.btn-outline-purple {
    color: #6f42c1;
    border-color: #6f42c1;
}

.btn-outline-purple:hover {
    background-color: #6f42c1;
    border-color: #6f42c1;
    color: white;
}

.text-purple {
    color: #6f42c1 !important;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

/* Logo stilleri */
.navbar-brand img {
    height: 40px !important;
    width: auto;
    max-width: 40px;
    object-fit: contain;
    filter: brightness(1.3) contrast(1.2) saturate(1.1);
    background-color: rgba(255, 255, 255, 0.2);
    padding: 3px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.3rem;
}

/* Navbar genel düzenlemeleri */
.navbar-dark .navbar-brand {
    color: #fff;
}

.navbar-dark .navbar-brand:hover {
    color: #f8f9fa;
}

.footer {
    margin-top: auto;
}

/* Container düzenlemeleri */
.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
}

/* Login sayfası için özel stil */
.login-container {
    max-width: 450px;
    margin: 100px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Dashboard kartları */
.dashboard-card {
    transition: transform 0.3s;
    height: 100%;
}

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

.dashboard-icon {
    font-size: 2.5rem;
    color: #007bff;
}

/* Tablo stilleri */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.075);
}

/* Video izleme konteynerı */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* İlerleme kartları */
.progress-card {
    margin-bottom: 20px;
}

.watched-badge {
    background-color: #28a745;
}

.not-watched-badge {
    background-color: #dc3545;
}

/* Öğrenci listesi */
.student-list .list-group-item {
    transition: background-color 0.2s;
}

.student-list .list-group-item:hover {
    background-color: #f8f9fa;
}

/* Dashboard kart düzenlemeleri */
.dashboard-card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    border: none;
    margin-bottom: 0.75rem;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.dashboard-card .card-header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    padding: 0.75rem 1rem;
}

.dashboard-card .card-body {
    padding: 0.75rem;
}

.dashboard-card .card-footer {
    background-color: rgba(0, 0, 0, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 1.5rem;
}

/* Dashboard row düzenlemeleri */
.dashboard-row {
    margin-bottom: 2rem;
}

.dashboard-row .col-md-4,
.dashboard-row .col-md-6 {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Kart yükseklikleri için düzenleme */
.equal-height-cards {
    display: flex;
    flex-wrap: wrap;
}

.equal-height-cards .col-md-4,
.equal-height-cards .col-md-6 {
    display: flex;
    flex-direction: column;
}

.equal-height-cards .card {
    flex: 1;
}

/* İstatistik kartları özel stil */
.stats-card .h4, .stats-card .h5 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Kartlar arası boşluk düzenlemesi */
.row.dashboard-row {
    margin-left: -1rem;
    margin-right: -1rem;
}

.row.dashboard-row > [class*="col-"] {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Container padding ayarları */
.container-fluid {
    padding-bottom: 2rem;
}

.stats-card .small {
    font-size: 0.875rem;
    opacity: 0.8;
    font-weight: 500;
}

/* Hızlı işlemler kartı */
.quick-actions {
    padding: 1.5rem !important;
}

.quick-actions .btn {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    width: 100%;
}

.quick-actions .btn:hover {
    transform: translateY(-1px);
}

/* Hızlı işlemler row düzenlemesi */
.quick-actions .row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

.quick-actions .row > [class*="col-"] {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    margin-bottom: 1rem;
    display: flex;
}

/* Liste grupları */
.list-group-item {
    border-left: none;
    border-right: none;
    border-radius: 0;
    transition: background-color 0.2s ease;
}

.list-group-item:first-child {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.list-group-item:last-child {
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.list-group-item:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Progress bar özelleştirmesi */
.progress {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.progress-bar {
    border-radius: 12px;
    transition: width 0.3s ease;
}

/* Öğretmen ve ödev kartları için özel stillendirme */
.teacher-card, .assignment-card, .progress-overview-card {
    min-height: auto;
}

/* Deneme ve soru kartları */
.exam-card, .question-card {
    min-height: auto;
}

/* Badge düzenlemeleri */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

/* Alert düzenlemeleri */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-info {
    background-color: rgba(13, 202, 240, 0.1);
    color: #0d6efd;
}

/* Buton düzenlemeleri */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Mobil uyumluluk için */
@media (max-width: 768px) {
    .dashboard-stats {
        margin-bottom: 20px;
    }
    
    .dashboard-card {
        margin-bottom: 1rem;
    }
    
    .dashboard-row {
        margin-bottom: 1.5rem;
    }
    
    .dashboard-row .col-md-4,
    .dashboard-row .col-md-6 {
        margin-bottom: 1rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .teacher-card, .assignment-card, .progress-overview-card,
    .exam-card, .question-card {
        min-height: auto;
    }
    
    .quick-actions {
        padding: 1rem !important;
    }
    
    .quick-actions .btn {
        margin-bottom: 1rem;
        min-height: 55px;
        font-size: 0.85rem;
        width: 100%;
    }
    
    .quick-actions .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .quick-actions .row > [class*="col-"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-bottom: 1rem;
        display: flex;
    }
    
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}


/* Profil sayfası özel stilleri */
.form-control-plaintext {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    margin-bottom: 0;
}

/* Profil sayfası için özel düzenlemeler */
.profile-page .row {
    margin-bottom: 0;
}

.profile-page .mb-2 {
    margin-bottom: 0.5rem !important;
}

.profile-page .form-label {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.profile-page .card-body {
    padding: 0.75rem !important;
}

.profile-page .alert {
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
}

/* Şifre formu için özel düzenlemeler */
.profile-page .input-group {
    margin-bottom: 0.5rem;
}

.profile-page .input-group-text {
    min-width: 40px;
    justify-content: center;
}

.profile-page .btn-outline-secondary {
    border-left: none;
}

/* Form düzeni */
.profile-page form {
    margin-bottom: 0;
}

/* Öğretmen kartı özel stil */
.teacher-info-card .card-body {
    padding: 0.5rem;
}

.teacher-info-card .bg-light {
    padding: 0.4rem !important;
    margin-bottom: 0.25rem;
}

.teacher-info-card .bg-light:last-child {
    margin-bottom: 0;
}

.form-control-plaintext.fw-bold {
    font-weight: 600;
    color: #495057;
}

.input-group .btn-outline-secondary {
    border-color: #6c757d;
}

.input-group .btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

/* Profil kartları */
.profile-info-card {
    transition: all 0.3s ease;
}

.profile-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Şifre güçlülük göstergesi */
.password-strength {
    height: 5px;
    border-radius: 3px;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.password-strength.weak {
    background-color: #dc3545;
    width: 33%;
}

.password-strength.medium {
    background-color: #ffc107;
    width: 66%;
}

.password-strength.strong {
    background-color: #28a745;
    width: 100%;
}

/* Öğretmen kartları */
.teacher-profile-card {
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.teacher-profile-card:hover {
    border-color: #28a745;
    transform: translateY(-1px);
}

/* Form validasyon stilleri */
.form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Alert düzenlemeleri profil için */
.alert-info {
    border-left: 4px solid #0dcaf0;
}

.alert-warning {
    border-left: 4px solid #ffc107;
}

.alert-success {
    border-left: 4px solid #198754;
}

.alert-danger {
    border-left: 4px solid #dc3545;
}

/* Deneme seçim kartları */
.exam-selection-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    overflow: hidden;
}

.exam-selection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.exam-selection-row {
    margin-top: 2rem;
}

.exam-icon {
    transition: transform 0.3s ease;
}

.exam-selection-card:hover .exam-icon i {
    transform: scale(1.1);
}

.features-list {
    font-size: 0.95rem;
}

.features-list .fas {
    flex-shrink: 0;
}

/* Progress sayfası stilleri */
.progress-stats-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.progress-stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.progress-tab-content {
    min-height: auto !important;
}

.performance-card {
    border-left: 4px solid #007bff;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.weakness-card {
    border-radius: 8px;
    transition: transform 0.2s ease;
}

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

.weekly-performance-day {
    min-height: 120px;
}

.progress-assignment-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: background-color 0.2s ease;
}

.progress-assignment-item:hover {
    background-color: #f8f9fa;
}

.progress-bar-small {
    height: 8px;
    border-radius: 4px;
}

.trend-icon {
    font-size: 1.2rem;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 0;
    color: #6c757d;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    background-color: #007bff;
    color: white;
    border-radius: 5px 5px 0 0;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: #007bff;
}

.progress-overview-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
}

.performance-summary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 15px;
}

.exam-trend-up {
    color: #28a745;
}

.exam-trend-down {
    color: #dc3545;
}

.exam-trend-same {
    color: #6c757d;
}

.weekly-day-card {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Ana sayfa stilleri */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
    color: #212529;
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(108,117,125,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)" /></svg>');
    opacity: 0.5;
}

.login-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.login-btn {
    margin: 0 5px;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.login-btn.admin {
    background: #dc3545;
    color: white;
}

.login-btn.teacher {
    background: #28a745;
    color: white;
}

.login-btn.student {
    background: #007bff;
    color: white;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    color: white;
    border-color: rgba(108,117,125,0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card {
    transition: all 0.3s ease;
    height: 100%;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 15px;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.feature-card .card-body {
    padding: 2rem;
}

.contact-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    position: relative;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.phone-input {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.phone-input:focus {
    background-color: white;
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.hero-image {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 768px) {
    .progress-stats-card {
        margin-bottom: 1rem;
    }
    
    .nav-tabs .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    .weekly-day-card {
        min-height: 80px;
    }
    
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .login-buttons {
        position: relative;
        top: auto;
        right: auto;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .login-btn {
        display: inline-block;
        margin: 5px;
        font-size: 0.9rem;
        padding: 6px 15px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 30px 20px;
        margin-top: 30px;
    }
    
    .feature-card .card-body {
        padding: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
}

/* Branş performansı kartları - Scroll problemi ve yan yana sıralama düzeltildi */
#branchCardsContainer {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    margin: 0 auto !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 1400px !important;
}

.branch-card {
    flex: 0 0 calc(25% - 15px) !important; /* 4 kart yan yana */
    width: calc(25% - 15px) !important;
    min-width: 280px !important;
    max-width: 350px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.branch-card .card {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important; /* Fixed height kaldırıldı */
    min-height: 500px !important; /* Daha fazla içerik için minimum yükseklik artırıldı */
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    border: 2px solid #e9ecef !important;
    width: 100% !important;
    margin: 0 !important;
    overflow: visible !important; /* Overflow hidden kaldırıldı */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.branch-card .card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    border-color: rgba(0,123,255,0.3) !important;
}

.branch-card .card-header {
    border-radius: 10px 10px 0 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.2) !important;
    padding: 0.75rem 1rem !important;
    font-weight: 600 !important;
    flex-shrink: 0 !important;
}

.branch-card .card-body {
    flex: 1 !important;
    padding: 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important; /* Scroll kaldırıldı - tüm içerik görünecek */
    font-size: 0.875rem !important;
}

/* Responsive tasarım - Basitleştirilmiş */
@media (min-width: 1201px) {
    /* Masaüstü: 4 kart yan yana */
    .branch-card {
        flex: 0 0 calc(25% - 15px) !important;
        width: calc(25% - 15px) !important;
    }
}

@media (max-width: 1200px) and (min-width: 993px) {
    /* Büyük tablet: 3 kart yan yana */
    #branchCardsContainer {
        gap: 18px !important;
    }
    
    .branch-card {
        flex: 0 0 calc(33.333% - 12px) !important;
        width: calc(33.333% - 12px) !important;
        max-width: 380px !important;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    /* Tablet: 2 kart yan yana */
    #branchCardsContainer {
        gap: 16px !important;
    }
    
    .branch-card {
        flex: 0 0 calc(50% - 8px) !important;
        width: calc(50% - 8px) !important;
        min-width: 320px !important;
        max-width: none !important;
    }
    
    .branch-card .card {
        min-height: 480px !important; /* Daha fazla içerik için artırıldı */
    }
}

@media (max-width: 768px) and (min-width: 577px) {
    /* Küçük tablet: 2 kart yan yana */
    #branchCardsContainer {
        gap: 14px !important;
    }
    
    .branch-card {
        flex: 0 0 calc(50% - 7px) !important;
        width: calc(50% - 7px) !important;
        min-width: 280px !important;
        max-width: none !important;
    }
    
    .branch-card .card {
        min-height: 450px !important; /* Max-height kaldırıldı, min-height artırıldı */
    }
    
    .branch-card .card-body {
        padding: 0.875rem !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 576px) {
    /* Mobil: 1 kart tam genişlik */
    #branchCardsContainer {
        gap: 12px !important;
        justify-content: center !important;
    }
    
    .branch-card {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: auto !important;
        max-width: 450px !important;
    }
    
    .branch-card .card {
        min-height: 420px !important; /* Max-height kaldırıldı, min-height artırıldı */
    }
    
    .branch-card .card-body {
        padding: 0.75rem !important;
        font-size: 0.8rem !important;
    }
}

/* Container düzenlemesi için ek stil */
.tab-pane#branch-performance .card-body {
    padding: 1.5rem !important;
}

/* Branş kartları container'ı için merkezi hizalama */
@media (min-width: 1201px) {
    #branchCardsContainer {
        padding: 0 8px !important;
    }
}

/* Performans puanı görünümü için iyileştirme */
.branch-card .text-center h3 {
    font-size: 2rem !important;
    font-weight: bold !important;
    margin-bottom: 0.25rem !important;
}

.branch-card .badge {
    font-size: 0.75rem !important;
    padding: 0.35rem 0.65rem !important;
}

.branch-card .progress {
    height: 6px !important;
    margin: 0.5rem 0 !important;
}

.branch-card .alert {
    padding: 0.5rem 0.75rem !important;
    margin-bottom: 0.5rem !important;
    font-size: 0.8rem !important;
}

.branch-card .small {
    font-size: 0.75rem !important;
}

/* İstatistik bölümleri için düzenleme */
.branch-card .bg-light {
    background-color: #f8f9fa !important;
    border-radius: 6px !important;
    padding: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.branch-card hr {
    margin: 0.75rem 0 !important;
}

/* Performans kartları grid düzenlemesi */
.performance-summary-card,
.general-summary-card,
.category-performance-section {
    margin-top: 2rem;
}

.performance-summary-card .card,
.general-summary-card .card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Tab-pane üst boşluklarını kaldır */
.tab-pane {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Eksik konular sekmesi için özel düzenleme */
#weaknesses {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Tab content üst boşluğunu kaldır */
.tab-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Tab nav ile content arasındaki boşluğu minimize et */
.nav-tabs {
    margin-bottom: 1rem !important;
}

/* Tab-pane içindeki ilk kart üst boşluğunu kaldır */
.tab-pane .card:first-child {
    margin-top: 0 !important;
}

/* Eksik konular sekmesindeki kartlar için özel düzenleme */
#weaknesses .card:first-child {
    margin-top: 0 !important;
}

#weaknesses .card.mb-3:first-child {
    margin-top: 0 !important;
}

/* Tab-pane içerik düzenlemeleri */
.tab-pane {
    min-height: auto !important;
    padding-bottom: 1rem !important;
}

/* Ödevlerim sekmesi düzenlemeleri */
#assignments .card-body {
    padding-bottom: 1.5rem !important;
    min-height: auto !important;
}

#assignments .list-group {
    margin-bottom: 0 !important;
}

#assignments .alert.alert-info {
    margin-bottom: 0 !important;
}

/* Branş performansı sekmesi düzenlemeleri */
#branch-performance .card-body {
    padding: 1.5rem !important;
    min-height: auto !important;
}

/* Gelişim tablosu sekmesi düzenlemeleri */
#performance .card-body {
    padding: 1.5rem !important;
}

/* Haftalık performans sekmesi düzenlemeleri */
#weekly .card-body {
    padding: 1.5rem !important;
}

/* AI analiz sekmesi düzenlemeleri */
#ai-analysis .card-body {
    padding: 1.5rem !important;
}

/* Kart margin düzenlemeleri */
.tab-pane .card + .card {
    margin-top: 1rem !important;
}

/* İçerik container'ları için düzenleme */
.tab-content .row {
    margin-bottom: 0 !important;
}

.tab-content .col-md-4,
.tab-content .col-md-6,
.tab-content .col-md-12 {
    margin-bottom: 1rem !important;
}

/* Branş kartları özel düzenleme */
.branch-card {
    margin-bottom: 1rem !important;
}

.branch-card .card {
    height: auto !important;
    min-height: 200px !important;
}

/* Liste grupları düzenlemesi */
.list-group-item:last-child {
    margin-bottom: 0 !important;
}

/* Progress tab content global düzenleme */
.progress-tab-content {
    min-height: auto !important;
    padding-bottom: 0 !important;
}

/* Branş performansı container düzenlemesi */
#branchCardsContainer {
    margin: 0 !important;
    padding: 0 !important;
}

#branchCardsContainer .row {
    margin: 0 !important;
}

#branchCardsContainer .col-md-4 {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

/* Card body içerik düzenlemesi */
.tab-pane .card-body > *:last-child {
    margin-bottom: 0 !important;
}

/* Responsive tab düzenleme */
@media (max-width: 768px) {
    #branchCardsContainer .col-md-4 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .tab-pane .card-body {
        padding: 1rem !important;
    }
}
