/* Custom CSS for ALFA Finans Akademi */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --border-radius: 8px;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --app-background: #0f172a;
    --surface-color: #1e293b;
    --surface-contrast: #1f2937;
    --surface-border: rgba(148, 163, 184, 0.2);
    --text-primary: #e2e8f0;
    --text-muted: #94a3b8;
    --link-color: #93c5fd;
    --link-hover-color: #bfdbfe;
    --input-background: #0f172a;
    --input-border: #475569;
    --input-placeholder: #9ca3af;
}

.bg-dark .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--app-background);
    color-scheme: dark;
}

.main-content {
    margin-top: 76px; /* Account for fixed navbar */
    min-height: calc(100vh - 76px);
}

/* Typography */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 700;
    line-height: 1.2;
}

.fw-bold {
    font-weight: 600 !important;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform: translateY(-1px);
    box-shadow: var(--box-shadow-lg);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Cards */
.card {
    border-radius: var(--border-radius);
    border: 1px solid var(--surface-border);
    background-color: var(--surface-color);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    color: inherit;
}

.card:hover {
    box-shadow: var(--box-shadow-lg);
}

.card-header {
    background-color: var(--surface-contrast);
    border-bottom: 1px solid var(--surface-border);
    padding: 1rem 1.25rem;
    color: inherit;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-nav .nav-link.active {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

/* Ensure dropdown menus are hidden by default */
.navbar .dropdown-menu {
    display: none;
}

.navbar .dropdown-menu.show {
    display: block;
}

/* Compact navbar spacing */
.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
}

.navbar-nav .dropdown-menu {
    margin-top: 0.5rem;
}

/* Prevent menu from being too tall when collapsed */
@media (max-width: 991.98px) {
.navbar-collapse {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
}

/* Dropdown positioning tweak */
.navbar-nav .dropdown-menu {
    position: absolute;
    margin-top: 0.5rem;
}

/* Search */
.search-results {
    max-height: 400px;
    overflow-y: auto;
    top: 100%;
    left: 0;
    right: 0;
}

.search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

/* Indicators */
.indicator-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.indicator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.indicator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.indicator-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Rating Stars */
.rating .fa-star {
    font-size: 0.875rem;
}

/* Announcements */
.announcement-card {
    transition: all 0.3s ease;
}

.announcement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* Forms */
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid var(--input-border);
    background-color: var(--input-background);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

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

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Badges */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
}

/* Tables */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    background-color: var(--surface-contrast);
    border-bottom: 2px solid var(--surface-border);
    font-weight: 600;
    padding: 1rem 0.75rem;
    color: var(--text-primary);
}

.table td {
    padding: 0.75rem;
    vertical-align: middle;
    color: var(--text-primary);
    border-top: 1px solid var(--surface-border);
}

.table-hover tbody tr:hover {
    background-color: rgba(15, 23, 42, 0.05);
}

/* Pagination */
.pagination .page-link {
    border-radius: var(--border-radius);
    margin: 0 0.125rem;
    border: 1px solid #dee2e6;
    color: var(--primary-color);
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1rem 1.25rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* ============================================
   INDICATOR DESCRIPTION CONTENT STYLES
   ============================================ */

.indicator-description-content {
    font-family: inherit;
    line-height: 1.2;
    color: var(--text-primary);
    background: transparent;
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
}

/* Reset box model */
.indicator-description-content * {
    box-sizing: border-box;
    max-width: 100%;
}

/* Spacing controlled by inline styles where provided */

/* Paragraphs - minimal spacing */
.indicator-description-content p {
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
}

/* Headers - moderate spacing */
/* Heading spacing controlled via inline styles */

/* Tables - compact spacing */
/* Heading spacing controlled via inline styles */

.indicator-description-content table {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    width: 100%;
    border-collapse: collapse;
}

.indicator-description-content table th,
.indicator-description-content table td {
    padding: 0.5rem;
}

/* Lists - reduced spacing */
.indicator-description-content ul,
.indicator-description-content ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
}

.indicator-description-content li {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

/* CRITICAL: DO NOT override inline styles for colors/backgrounds */
/* Inline styles will work naturally without additional rules */

/* Ensure flex layouts work with reduced gap */
.indicator-description-content div[style*="display: flex"],
.indicator-description-content div[style*="display:flex"] {
    gap: 0.5rem;
}

/* Responsive tables */
.indicator-description-content div[style*="overflow-x"] {
    overflow-x: auto;
}

a {
    color: var(--link-color);
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--link-hover-color);
}

.form-control::placeholder {
    color: var(--input-placeholder);
}

.bg-dark {
    color: #f8fafc !important;
}

.bg-dark .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Modals */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

/* Toasts */
.toast {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

.card:hover {
    box-shadow: 0.75rem 1.25rem rgba(15, 23, 42, 0.4);
}

.navbar-nav .nav-link {
    color: rgba(226, 232, 240, 0.85) !important;
}

.navbar-nav .nav-link.active {
    background-color: rgba(226, 232, 240, 0.12);
}

.table-hover tbody tr:hover {
    background-color: rgba(148, 163, 184, 0.12);
}

.pagination .page-link {
    border-color: rgba(148, 163, 184, 0.35);
}

.pagination .page-link:hover {
    color: #0f172a;
}

.badge.bg-light {
    background-color: rgba(148, 163, 184, 0.2) !important;
    color: var(--text-primary) !important;
}

.bg-light {
    background-color: rgba(148, 163, 184, 0.12) !important;
    color: var(--text-primary) !important;
}

.bg-dark .text-dark,
a.text-dark:not(.btn),
.text-dark:not(.badge):not(.bg-warning):not(.alert) {
    color: var(--text-primary) !important;
}

.bg-warning,
.badge.bg-warning,
.alert-warning {
    color: #1f2937 !important;
}

/* ============================================
       INDICATOR DESCRIPTION DARK MODE FIXES
       ============================================ */

/* Genel içerik renk düzeltmeleri */
.indicator-description-content {
        color: var(--text-primary) !important;
    }

/* Tüm inline background ve color stillerini override et */
.indicator-description-content div[style*="background"],
.indicator-description-content div[style*="color"] {
        background: rgba(51, 65, 85, 0.5) !important;
        color: var(--text-primary) !important;
    }

/* Tüm elementlerin text rengini düzelt */
.indicator-description-content * {
        color: var(--text-primary) !important;
    }

/* Beyaz yazıları koru */
.indicator-description-content [style*="color: white"],
.indicator-description-content [style*="color:white"] {
        color: white !important;
    }

/* Açık renkli arka planları dark mode'a uyarla */
.indicator-description-content [style*="background: #FFF3E0"],
.indicator-description-content [style*="background:#FFF3E0"],
.indicator-description-content [style*="background: #E3F2FD"],
.indicator-description-content [style*="background:#E3F2FD"],
.indicator-description-content [style*="background: #E8F5E9"],
.indicator-description-content [style*="background:#E8F5E9"],
.indicator-description-content [style*="background: #FFEBEE"],
.indicator-description-content [style*="background:#FFEBEE"],
.indicator-description-content [style*="background: #F3E5F5"],
.indicator-description-content [style*="background:#F3E5F5"],
.indicator-description-content [style*="background: #E1F5FE"],
.indicator-description-content [style*="background:#E1F5FE"],
.indicator-description-content [style*="background: #FCE4EC"],
.indicator-description-content [style*="background:#FCE4EC"],
.indicator-description-content [style*="background: #FFF9C4"],
.indicator-description-content [style*="background:#FFF9C4"],
.indicator-description-content [style*="background: #E1BEE7"],
.indicator-description-content [style*="background:#E1BEE7"],
.indicator-description-content [style*="background:#f5f5f5"],
.indicator-description-content [style*="background: #f5f5f5"],
.indicator-description-content [style*="background: white"],
.indicator-description-content [style*="background:white"] {
        background: rgba(51, 65, 85, 0.6) !important;
        border-color: rgba(148, 163, 184, 0.3) !important;
    }

/* Yeşil ve kırmızı sinyal kutuları için özel ayarlar */
.indicator-description-content [style*="background: #C8E6C9"],
.indicator-description-content [style*="background:#C8E6C9"],
.indicator-description-content [style*="background: #FFCDD2"],
.indicator-description-content [style*="background:#FFCDD2"] {
        background: rgba(51, 65, 85, 0.8) !important;
    }

.indicator-description-content [style*="background: #C8E6C9"] *,
.indicator-description-content [style*="background:#C8E6C9"] *,
.indicator-description-content [style*="background: #FFCDD2"] *,
.indicator-description-content [style*="background:#FFCDD2"] * {
        color: var(--text-primary) !important;
    }

/* Gradient header düzeltmesi */
.indicator-description-content [style*="linear-gradient(135deg, #667eea"] {
        background: linear-gradient(135deg, #4c5fd5 0%, #5c3d8a 100%) !important;
    }

/* Tablo stilleri dark mode */
.indicator-description-content table {
        background: var(--surface-color) !important;
        border-color: var(--surface-border) !important;
    }

.indicator-description-content table thead {
        background: rgba(102, 126, 234, 0.3) !important;
    }

.indicator-description-content table thead tr {
        background: rgba(102, 126, 234, 0.3) !important;
    }

.indicator-description-content table td,
.indicator-description-content table th {
        border-color: var(--surface-border) !important;
        color: var(--text-primary) !important;
    }

.indicator-description-content table tbody tr {
        background: transparent !important;
    }

.indicator-description-content table tbody tr[style*="background"] {
        background: rgba(51, 65, 85, 0.3) !important;
    }
    
/* Beyaz/açık arka planlı elementlerde koyu text */
.indicator-description-content table td[style*="background-color: rgb(255, 255, 255)"],
.indicator-description-content table td[style*="background-color: white"],
.indicator-description-content table td[style*="background-color:#fff"],
.indicator-description-content table td[style*="background-color: #fff"],
.indicator-description-content table th[style*="background-color: rgb(255, 255, 255)"],
.indicator-description-content table th[style*="background-color: white"],
.indicator-description-content table th[style*="background-color:#fff"],
.indicator-description-content table th[style*="background-color: #fff"],
.indicator-description-content [style*="background-color: rgb(255, 255, 255)"],
.indicator-description-content [style*="background-color: white"],
.indicator-description-content [style*="background-color:#fff"],
.indicator-description-content [style*="background-color: #fff"] {
        color: #111827 !important;
        background-color: rgba(255, 255, 255, 0.95) !important;
    }
    
/* Indicator content - Beyaz hücrelerin içindeki TÜM elementler */
.indicator-description-content table td[style*="background-color"] *,
.indicator-description-content table th[style*="background-color"] *,
.indicator-description-content [style*="background-color"] * {
        color: #111827 !important;
    }
    
/* Eğitim içeriği için de aynı kurallar */
.education-content table td[style*="background-color: rgb(255, 255, 255)"],
.education-content table td[style*="background-color: white"],
.education-content table td[style*="background-color:#fff"],
.education-content table td[style*="background-color: #fff"],
.education-content table th[style*="background-color: rgb(255, 255, 255)"],
.education-content table th[style*="background-color: white"],
.education-content table th[style*="background-color:#fff"],
.education-content table th[style*="background-color: #fff"],
.education-content [style*="background-color: rgb(255, 255, 255)"],
.education-content [style*="background-color: white"],
.education-content [style*="background-color:#fff"],
.education-content [style*="background-color: #fff"],
.content [style*="background-color: rgb(255, 255, 255)"],
.content [style*="background-color: white"],
.content [style*="background-color:#fff"],
.content [style*="background-color: #fff"],
.card-body [style*="background-color: rgb(255, 255, 255)"],
.card-body [style*="background-color: white"],
.card-body [style*="background-color:#fff"],
.card-body [style*="background-color: #fff"] {
        color: #111827 !important;
        background-color: rgba(255, 255, 255, 0.95) !important;
    }
    
/* Education content - Beyaz hücrelerin içindeki TÜM elementler */
.education-content table td[style*="background-color"] *,
.education-content table th[style*="background-color"] *,
.education-content [style*="background-color"] *,
.content [style*="background-color"] *,
.card-body [style*="background-color"] * {
        color: #111827 !important;
    }
    
/* Genel çözüm - tüm beyaz arka planlı elementler */
table td[style*="background-color: rgb(255, 255, 255)"],
table td[style*="background-color: white"],
table td[style*="background-color:#fff"],
table td[style*="background-color: #fff"],
table th[style*="background-color: rgb(255, 255, 255)"],
table th[style*="background-color: white"],
table th[style*="background-color:#fff"],
table th[style*="background-color: #fff"] {
        color: #111827 !important;
    }
    
/* Beyaz arka planlı hücrelerin içindeki TÜM elementler */
table td[style*="background-color: rgb(255, 255, 255)"] *,
table td[style*="background-color: white"] *,
table td[style*="background-color:#fff"] *,
table td[style*="background-color: #fff"] *,
table th[style*="background-color: rgb(255, 255, 255)"] *,
table th[style*="background-color: white"] *,
table th[style*="background-color:#fff"] *,
table th[style*="background-color: #fff"] *,
table td[style*="background-color: rgb(255, 255, 255)"] p,
table td[style*="background-color: white"] p,
table td[style*="background-color:#fff"] p,
table td[style*="background-color: #fff"] p,
table td[style*="background-color: rgb(255, 255, 255)"] span,
table td[style*="background-color: white"] span,
table td[style*="background-color:#fff"] span,
table td[style*="background-color: #fff"] span,
table td[style*="background-color: rgb(255, 255, 255)"] strong,
table td[style*="background-color: white"] strong,
table td[style*="background-color:#fff"] strong,
table td[style*="background-color: #fff"] strong {
        color: #111827 !important;
    }
    
/* Tüm tablolardaki beyaz hücreler - daha agresif */
table tbody td,
table tbody th,
table td,
table th {
        color: #111827 !important;
    }
    
/* Tablolardaki tüm text elementleri */
table td *,
table th *,
table tbody td *,
table tbody th * {
        color: #111827 !important;
    }
    
/* Açık renkli arka planlı elementler (mavi, gri, vb.) */
    [style*="background-color: rgb(2"][style*="background-color"],
    [style*="background-color: #"][style*="background-color"],
    div[style*="background-color"],
    p[style*="background-color"],
    span[style*="background-color"],
    li[style*="background-color"],
    ul[style*="background-color"],
    ol[style*="background-color"] {
        color: #111827 !important;
    }
    
/* Açık renkli arka planlı elementlerin içindeki tüm text elementleri */
    [style*="background-color"] *,
    [style*="background-color"] li,
    [style*="background-color"] p,
    [style*="background-color"] span,
    [style*="background-color"] strong,
    [style*="background-color"] em {
        color: #111827 !important;
    }
    
/* Beyaz/açık arka planlı collapse ve accordion içerikleri */
.collapse[style*="background-color: white"],
.collapse[style*="background-color: #fff"],
.collapse[style*="background-color: rgb(255"],
.accordion-body[style*="background-color: white"],
.accordion-body[style*="background-color: #fff"],
.accordion-body[style*="background-color: rgb(255"],
.card-body[style*="background-color: white"],
.card-body[style*="background-color: #fff"],
.card-body[style*="background-color: rgb(255"] {
        color: #111827 !important;
    }
    
/* Beyaz/açık arka planlı collapse ve accordion içindeki elementler */
.collapse[style*="background-color: white"] *,
.collapse[style*="background-color: #fff"] *,
.collapse[style*="background-color: rgb(255"] *,
.accordion-body[style*="background-color: white"] *,
.accordion-body[style*="background-color: #fff"] *,
.accordion-body[style*="background-color: rgb(255"] *,
.card-body[style*="background-color: white"] *,
.card-body[style*="background-color: #fff"] *,
.card-body[style*="background-color: rgb(255"] * {
        color: #111827 !important;
    }
    
/* Açık renkli arka planlı elementlerin içindeki inline color style'lı elementler */
    [style*="background-color"] [style*="color"],
    [style*="background-color"] li[style*="color"],
    [style*="background-color"] p[style*="color"],
    [style*="background-color"] span[style*="color"],
    [style*="background-color"] strong[style*="color"],
    [style*="background-color"] em[style*="color"],
    div[style*="background-color"] li,
    div[style*="background-color"] p,
    div[style*="background-color"] span {
        color: #111827 !important;
    }

/* Liste ve paragraf içindeki strong/bold elementler */
.indicator-description-content strong,
.indicator-description-content b,
.indicator-description-content h1,
.indicator-description-content h2,
.indicator-description-content h3,
.indicator-description-content h4,
.indicator-description-content h5,
.indicator-description-content h6 {
        color: var(--text-primary) !important;
    }

/* Liste elemanları */
.indicator-description-content ul,
.indicator-description-content ol,
.indicator-description-content li {
        color: var(--text-primary) !important;
    }

/* Paragraflar */
.indicator-description-content p {
        color: var(--text-primary) !important;
    }

.form-control,
        .form-select {
            border-color: var(--input-border);
            background-color: var(--surface-color);
        }

.form-control:focus,
.form-select:focus {
        box-shadow: 0 0 0 0.2rem rgba(148, 163, 184, 0.25);
    }

.modal-content {
        background-color: var(--surface-color);
        color: var(--text-primary);
    }

.toast {
        background-color: var(--surface-color);
        color: var(--text-primary);
    }

.bg-gradient-primary,
.bg-gradient-secondary {
    color: #0f172a;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.shadow-custom {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.border-radius-lg {
    border-radius: 1rem;
}

/* Code Blocks */
pre {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 1rem;
    overflow-x: auto;
}

code {
    background-color: #f8f9fa;
    color: #e83e8c;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

/* Image Styles */
.img-thumbnail {
    border-radius: var(--border-radius);
    padding: 0.25rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
}

/* Progress Bars */
.progress {
    border-radius: var(--border-radius);
    height: 0.5rem;
}

.progress-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ===== ADMIN & EDITOR PANEL STYLES ===== */
.admin-wrapper, .editor-wrapper {
    display: flex;
    min-height: 100vh;
    padding-top: 76px; /* Account for fixed navbar */
}

.admin-sidebar, .editor-sidebar {
    position: fixed;
    top: 76px;
    left: 0;
    width: 250px;
    height: calc(100vh - 76px);
    background: #1e293b;
    color: white;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.admin-content, .editor-content {
    flex: 1;
    margin-left: 250px;
    padding: 2rem;
    background-color: #f8f9fa;
    min-height: calc(100vh - 76px);
    width: calc(100% - 250px);
}

/* Sidebar Navigation */
.admin-sidebar .nav-link,
.editor-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.admin-sidebar .nav-link:hover,
.editor-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-sidebar .nav-link.active,
.editor-sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: 600;
}

.admin-sidebar .nav-link i,
.editor-sidebar .nav-link i {
    width: 20px;
    margin-right: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
.admin-sidebar, .editor-sidebar {
        transform: translateX(-100%);
    }
    
.admin-sidebar.show, .editor-sidebar.show {
        transform: translateX(0);
    }
    
.admin-content, .editor-content {
        margin-left: 0;
        width: 100%;
    }
}











/* Hero Section Background */
.hero-section {
    background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.5)), url('/images/hero-bg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    color: #111827 !important;
}

.hero-section h1,
.hero-section p,
.hero-section .lead {
    color: #111827 !important;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)), url('/images/hero-bg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    color: #ffffff !important;
}

.hero-section h1,
.hero-section p,
.hero-section .lead {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* ===== Nested Dropdown (Submenu) Styles ===== */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-toggle-submenu {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-submenu > .dropdown-toggle-submenu::after {
    display: none; /* Bootstrap'ın default arrow'unu gizle */
}

.dropdown-submenu-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 220px;
    margin-left: 0;
    border-radius: 0.375rem;
    background-color: var(--surface-color, #1e293b);
    border: 1px solid var(--surface-border, rgba(148, 163, 184, 0.2));
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
    z-index: 1001;
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-submenu:hover > .dropdown-submenu-menu {
    display: block;
}

.dropdown-submenu-menu .dropdown-item {
    padding: 0.5rem 1rem;
    color: var(--text-primary, #e2e8f0);
    font-size: 0.875rem;
    white-space: nowrap;
}

.dropdown-submenu-menu .dropdown-item:hover {
    background-color: rgba(102, 126, 234, 0.2);
    color: #fff;
}

.dropdown-submenu-menu .dropdown-item i {
    width: 20px;
    text-align: center;
}

.dropdown-submenu-menu .dropdown-divider {
    border-color: var(--surface-border, rgba(148, 163, 184, 0.2));
    margin: 0.25rem 0;
}

/* Mobil için submenu ayarları */
@media (max-width: 991.98px) {
    .dropdown-submenu-menu {
        position: static;
        left: 0;
        width: 100%;
        margin-left: 0;
        box-shadow: none;
        border: none;
        background-color: rgba(0, 0, 0, 0.2);
        max-height: none;
    }
    
    .dropdown-submenu-menu .dropdown-item {
        padding-left: 2.5rem;
    }
    
    .dropdown-submenu > .dropdown-toggle-submenu .fa-chevron-right {
        transition: transform 0.2s ease;
    }
    
    .dropdown-submenu.show > .dropdown-toggle-submenu .fa-chevron-right {
        transform: rotate(90deg);
    }
}

/* Sağ tarafta yeterli alan yoksa sola aç */
@media (min-width: 992px) {
    .dropdown-submenu-menu.dropdown-submenu-left {
        left: auto;
        right: 100%;
    }
}

/* ===== Education Content Styles ===== */
.education-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

.education-content p {
    margin-bottom: 1rem;
}

.education-content p:empty {
    display: none;
}
