/* ============================================================================
   TES ETKİNLİK - Custom Site CSS
   Design: Modern Pastel / Soft Material
   Font: Montserrat (400, 500, 600, 700)
   Primary: #42A5F5, PrimaryDark: #1976D2, Secondary: #FF7043
   Background: #F8FAFC, Surface: #FFFFFF
   ============================================================================ */

/* --------------------------------------------------------------------------
   1. ROOT VARIABLES & RESET
   -------------------------------------------------------------------------- */
:root {
    --primary: #42A5F5;
    --primary-dark: #1976D2;
    --primary-light: #90CAF9;
    --primary-lighter: #E3F2FD;
    --secondary: #FF7043;
    --secondary-dark: #E64A19;
    --error: #EF4444;
    --success: #10B981;
    --warning: #F59E0B;
    --info: #42A5F5;
    --background: #F8FAFC;
    --surface: #FFFFFF;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --white: #FFFFFF;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow: 0 2px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 10px rgba(0,0,0,0.05);
    --shadow-lg: 0 8px 20px rgba(0,0,0,0.06);
    --shadow-xl: 0 12px 28px rgba(0,0,0,0.08);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 9999px;
    --transition: 0.25s ease;
    --transition-fast: 0.15s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body, .page-body {
    font-family: var(--font-body);
}

/* --------------------------------------------------------------------------
   2. APP LOADING SCREEN
   -------------------------------------------------------------------------- */
.app-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(180deg, #E3F2FD 0%, #EDF6FE 30%, #F5FAFF 60%, #F8FAFC 100%);
}

.app-loading-spinner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-loading-icon {
    width: 120px;
    height: 120px;
    border-radius: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    animation: iconPulse 2s ease-in-out infinite;
}

.app-loading-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.app-loading-text {
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.375rem;
}

.app-loading-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   3. BLAZOR ERROR UI
   -------------------------------------------------------------------------- */
#blazor-error-ui {
    background: #FEF3C7;
    border-top: 1px solid #F59E0B;
    bottom: 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 10000;
    font-size: 0.875rem;
    color: #92400E;
    font-family: var(--font-body);
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 0.6rem;
    font-size: 1.125rem;
}

#blazor-error-ui a.reload {
    color: #92400E;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* --------------------------------------------------------------------------
   4. TYPOGRAPHY
   -------------------------------------------------------------------------- */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 1rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-dark);
    background: var(--primary-lighter);
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   5. HOMEPAGE CAROUSEL
   -------------------------------------------------------------------------- */
.home-carousel {
    position: relative;
    width: calc(100% - 2rem);
    max-width: 1400px;
    margin: 1rem auto 0;
    aspect-ratio: 16 / 9;
    max-height: 700px;
    overflow: hidden;
    background: var(--gray-200);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.10);
}

.home-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    cursor: pointer;
}

.home-carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.home-carousel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 6s ease;
}

.home-carousel-slide.active .home-carousel-img {
    transform: scale(1.03);
}

.home-carousel-img-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #42A5F5 0%, #1565C0 50%, #0D47A1 100%);
}

.home-carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.0) 0%,
        rgba(0,0,0,0.05) 40%,
        rgba(0,0,0,0.55) 100%
    );
}

.home-carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 3rem 2.5rem;
    z-index: 2;
}

.home-fallback-logo-wrap {
    display: flex;
    justify-content: center;
}

.home-fallback-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.home-carousel-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--secondary);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: var(--radius-full);
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.home-carousel-title {
    font-weight: 700;
    font-size: 1.625rem;
    color: #fff;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.home-carousel-subtitle {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.4;
    margin: 0.375rem 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
    font-weight: 400;
}

.home-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    opacity: 0;
}

.home-carousel:hover .home-carousel-arrow {
    opacity: 1;
}

.home-carousel-arrow:hover {
    background: rgba(255,255,255,0.35);
    transform: translateY(-50%) scale(1.08);
}

.home-carousel-arrow-prev { left: 1rem; }
.home-carousel-arrow-next { right: 1rem; }

.home-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.home-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.home-carousel-dot.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.15);
}

.home-carousel-dot:hover:not(.active) {
    background: rgba(255,255,255,0.4);
}

.home-carousel-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
}

.home-carousel-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--gray-100) 100%);
    text-align: center;
    padding: 2rem;
}

.home-carousel-fallback h2 {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.home-carousel-fallback p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* --------------------------------------------------------------------------
   6. QUICK ACTIONS
   -------------------------------------------------------------------------- */
.quick-action-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    color: var(--text-primary);
    display: block;
}

.quick-action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
    text-decoration: none;
}

.quick-action-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    margin-bottom: 0.625rem;
}

.quick-action-icon.blue   { background: var(--primary-lighter); color: var(--primary-dark); }
.quick-action-icon.orange { background: #FFF3E0; color: #E65100; }
.quick-action-icon.green  { background: #E8F5E9; color: #2E7D32; }
.quick-action-icon.purple { background: #F3E5F5; color: #7B1FA2; }

.quick-action-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   7. PUBLIC SECTIONS
   -------------------------------------------------------------------------- */
.public-section {
    padding: 3rem 0;
}

.public-section.bg-light {
    background: var(--gray-100);
}

/* --------------------------------------------------------------------------
   8. CARD STYLES
   -------------------------------------------------------------------------- */

/* News / Competition Card */
.news-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.news-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--gray-100);
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.04);
}

.news-card-category {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.2rem 0.625rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--white);
    background: var(--primary);
    border-radius: var(--radius-full);
}

.news-card-category.cat-active   { background: var(--success); }
.news-card-category.cat-upcoming { background: var(--warning); color: #1a1a1a; }
.news-card-category.cat-closed   { background: var(--gray-400); }

.news-card-body {
    padding: 1rem 1.25rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-title a {
    color: inherit;
    text-decoration: none;
}

.news-card-title a:hover {
    color: var(--primary-dark);
}

.news-card-excerpt {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100);
    font-size: 0.75rem;
    color: var(--gray-400);
}

.news-card-placeholder {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--gray-100) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2.5rem;
}

/* Announcement Card */
.announcement-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    height: 100%;
    border-left: 3px solid var(--primary);
}

.announcement-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.announcement-card.pinned {
    border-left-color: var(--secondary);
}

.announcement-card-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.5rem;
}

.announcement-card-pin {
    color: var(--secondary);
    font-size: 0.8125rem;
    font-weight: 600;
}

.announcement-card-date {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.announcement-card-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.announcement-card-title a {
    color: inherit;
    text-decoration: none;
}

.announcement-card-title a:hover {
    color: var(--primary-dark);
}

.announcement-card-excerpt {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   9. BUTTONS
   -------------------------------------------------------------------------- */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--primary-dark);
    background: transparent;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-2xl);
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
}

.btn-cta:hover {
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-cta i { transition: transform var(--transition); }
.btn-cta:hover i { transform: translateX(3px); }

.btn-cta-filled {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--white);
    background: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-2xl);
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
}

.btn-cta-filled:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------------
   10. CTA SECTION
   -------------------------------------------------------------------------- */
.cta-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary-lighter) 0%, #FAFCFF 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(66,165,245,0.04) 0%, transparent 70%);
    animation: ctaShimmer 8s ease-in-out infinite;
}

.cta-heading {
    font-weight: 700;
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.cta-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* --------------------------------------------------------------------------
   11. ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes ctaShimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, 5%); }
}

@keyframes heroStripe {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.fade-in-up { animation: fadeInUp 0.5s ease-out both; }
.fade-in    { animation: fadeIn   0.4s ease-out both; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* Staggered cards */
.fade-in-up:nth-child(1) { animation-delay: 0.05s; }
.fade-in-up:nth-child(2) { animation-delay: 0.10s; }
.fade-in-up:nth-child(3) { animation-delay: 0.15s; }
.fade-in-up:nth-child(4) { animation-delay: 0.20s; }
.fade-in-up:nth-child(5) { animation-delay: 0.25s; }
.fade-in-up:nth-child(6) { animation-delay: 0.30s; }

/* --------------------------------------------------------------------------
   12. AUTH PAGES
   -------------------------------------------------------------------------- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #E3F2FD 0%, #F8FAFC 100%);
    padding: 2rem;
}

.auth-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
}

.auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo-image {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.auth-logo-image-lg {
    width: 96px;
    height: 96px;
}

.auth-logo-brand {
    margin-top: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.auth-logo-slogan {
    margin-top: 0.2rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.2;
}

.auth-logo-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 6px 20px rgba(66,165,245,0.3);
}

.auth-logo-text {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.auth-title {
    font-weight: 700;
    font-size: 1.375rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.auth-form .form-label {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--gray-600);
    margin-bottom: 0.375rem;
}

.auth-form .form-control {
    border-radius: var(--radius);
    border-color: var(--gray-200);
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.auth-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(66,165,245,0.15);
}

.auth-form .btn-primary {
    width: 100%;
    padding: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius);
    background: var(--primary);
    border-color: var(--primary);
}

.auth-form .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.auth-divider {
    text-align: center;
    margin: 1.25rem 0;
    color: var(--gray-400);
    font-size: 0.8125rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   13. DETAIL & LIST PAGES
   -------------------------------------------------------------------------- */
.detail-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 2.5rem 0 2rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.detail-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
    background-size: 200% 100%;
    animation: heroStripe 4s linear infinite;
}

.detail-hero-category {
    display: inline-flex;
    padding: 0.2rem 0.625rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--white);
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
}

.detail-hero-title {
    font-weight: 700;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.detail-hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.8125rem;
    flex-wrap: wrap;
}

.detail-content { padding: 2.5rem 0; }

.detail-content .content-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-600);
}

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

.detail-content .content-body h2,
.detail-content .content-body h3 {
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.detail-sidebar { padding-left: 1.5rem; }

.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 2.5rem 0 2rem;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary), var(--primary-light));
    background-size: 200% 100%;
    animation: heroStripe 4s linear infinite;
}

.page-header-title {
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
}

.page-header-subtitle {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.85);
    max-width: 500px;
    margin: 0 auto;
}

.page-content {
    padding: 2.5rem 0 3.5rem;
    background: var(--background);
}

/* --------------------------------------------------------------------------
   14. TOAST NOTIFICATIONS
   -------------------------------------------------------------------------- */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 10000;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.75rem;
    max-width: 360px;
}

.toast-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    border-left: 3px solid var(--gray-400);
    animation: slideInRight 0.3s ease-out;
    cursor: pointer;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

.toast-item.toast-success { border-left-color: var(--success); }
.toast-item.toast-error   { border-left-color: var(--error); }
.toast-item.toast-warning { border-left-color: var(--warning); }
.toast-item.toast-info    { border-left-color: var(--info); }

.toast-icon { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; }
.toast-success .toast-icon { color: var(--success); }
.toast-error   .toast-icon { color: var(--error); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info    .toast-icon { color: var(--info); }

.toast-content { flex: 1; min-width: 0; }

.toast-title {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.toast-message {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.toast-dismiss {
    animation: fadeOutRight 0.3s ease-in forwards;
}

@keyframes fadeOutRight {
    to { opacity: 0; transform: translateX(100%); }
}

/* --------------------------------------------------------------------------
   15. STATUS BADGES
   -------------------------------------------------------------------------- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.status-badge.status-pending   { color: #92400E; background: #FEF3C7; }
.status-badge.status-approved  { color: #065F46; background: #D1FAE5; }
.status-badge.status-rejected  { color: #991B1B; background: #FEE2E2; }
.status-badge.status-active    { color: #065F46; background: #D1FAE5; }
.status-badge.status-inactive  { color: #6B7280; background: #F3F4F6; }
.status-badge.status-upcoming  { color: #92400E; background: #FEF3C7; }
.status-badge.status-closed    { color: #6B7280; background: #F3F4F6; }

/* --------------------------------------------------------------------------
   16. PAGINATION
   -------------------------------------------------------------------------- */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.375rem;
    margin-top: 2rem;
}

.pagination-wrapper .btn {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.8125rem;
}

.pagination-wrapper .btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* --------------------------------------------------------------------------
   17. LOADING STATES
   -------------------------------------------------------------------------- */
.skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text { height: 1em; margin-bottom: 0.625rem; border-radius: 4px; }
.skeleton-text.w-75 { width: 75%; }
.skeleton-text.w-50 { width: 50%; }
.skeleton-text.w-25 { width: 25%; }
.skeleton-image { height: 180px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.skeleton-card  { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }

.content-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    color: var(--gray-400);
}

.content-loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   18. EMPTY STATES
   -------------------------------------------------------------------------- */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-state-icon {
    font-size: 2.5rem;
    color: var(--gray-300);
    margin-bottom: 0.75rem;
}

.empty-state-title {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 0.375rem;
}

.empty-state-text {
    font-size: 0.875rem;
    color: var(--gray-400);
}

/* --------------------------------------------------------------------------
   19. MODAL OVERRIDES
   -------------------------------------------------------------------------- */
.modal-backdrop.show { opacity: 0.4; }

.modal .modal-content {
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: var(--shadow-xl);
}

.modal .modal-header {
    border-bottom-color: var(--gray-100);
    padding: 1.25rem 1.5rem;
}

.modal .modal-body    { padding: 1.25rem 1.5rem; }
.modal .modal-footer  { border-top-color: var(--gray-100); padding: 1rem 1.5rem; }

/* --------------------------------------------------------------------------
   20. TABLE OVERRIDES
   -------------------------------------------------------------------------- */
.table-responsive { border-radius: var(--radius); overflow: hidden; }
.table { margin-bottom: 0; }

.table th {
    font-weight: 600;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    border-bottom-width: 1px;
}

.table td {
    vertical-align: middle;
    font-size: 0.8125rem;
    color: var(--gray-600);
}

.table-actions { display: flex; gap: 0.375rem; }
.table-actions .btn { padding: 0.25rem 0.5rem; font-size: 0.6875rem; }

/* --------------------------------------------------------------------------
   20b. MOBILE CARD TABLE
   576px altında tablo satırlarını karta dönüştürür.
   Kullanım:
     <div class="table-responsive">
       <table class="table table-card-mobile ...">
         <thead>...</thead>
         <tbody>
           <tr>
             <td data-label="Sütun Adı">...</td>
             <td data-label="Diğer Sütun">...</td>
             <td><!-- İşlem butonları - etiket gösterilmez --></td>
           </tr>
         </tbody>
       </table>
     </div>
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
    /* Wrapper'ın yatay kaymasını kapat, card görünümü bozmasın */
    .table-responsive:has(.table-card-mobile) {
        overflow-x: visible;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .table-card-mobile {
        display: block;
        width: 100%;
    }

    .table-card-mobile thead {
        display: none;
    }

    .table-card-mobile tbody {
        display: block;
    }

    /* Her satır = bir kart */
    .table-card-mobile tbody tr {
        display: block;
        background: #fff;
        border: 1px solid var(--gray-200, #e2e8f0);
        border-radius: var(--radius, 8px);
        margin-bottom: 0.75rem;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    /* Her hücre = kartın bir satırı */
    .table-card-mobile tbody td {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 0.5rem 1rem;
        border: none;
        border-bottom: 1px solid var(--gray-100, #f1f5f9);
        min-height: 2.75rem;
        width: 100%;
        box-sizing: border-box;
        text-align: left;
        font-size: 0.8125rem;
    }

    .table-card-mobile tbody td:last-child {
        border-bottom: none;
    }

    /* data-label varsa sol tarafa sütun başlığını yaz */
    .table-card-mobile tbody td[data-label]::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.6875rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--text-secondary, #64748b);
        flex-shrink: 0;
        margin-right: auto;
        padding-right: 1rem;
        white-space: nowrap;
    }

    /* İşlemler hücresi: butonları sağa hizala */
    .table-card-mobile tbody td:not([data-label]) {
        justify-content: flex-end;
    }
}

/* --------------------------------------------------------------------------
   20c. ROL İZİNLERİ MOBIL GÖRÜNÜM
   Checkbox matrisini 576px altında karta çevirir.
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
    .table-responsive:has(.table-perm-mobile) {
        overflow-x: visible;
    }

    .table-perm-mobile {
        display: block;
        width: 100%;
    }

    .table-perm-mobile thead {
        display: none;
    }

    .table-perm-mobile tbody {
        display: block;
    }

    .table-perm-mobile tbody tr {
        display: block;
        background: #fff;
        border: 1px solid var(--gray-200, #e2e8f0);
        border-radius: var(--radius, 8px);
        margin-bottom: 0.75rem;
        padding: 0.75rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    /* Modül adı — tam genişlik başlık */
    .table-perm-mobile tbody td:first-child {
        display: block;
        width: 100%;
        font-weight: 600;
        font-size: 0.8125rem;
        color: var(--gray-800, #1e293b);
        padding: 0 0 0.625rem 0;
        border-bottom: 1px solid var(--gray-100, #f1f5f9);
        margin-bottom: 0.625rem;
    }

    /* İzin checkbox hücreleri — yan yana */
    .table-perm-mobile tbody td:not(:first-child) {
        display: inline-flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0.375rem 0.75rem;
        border: none;
        min-width: 4rem;
        gap: 0.3rem;
    }

    .table-perm-mobile tbody td:not(:first-child)[data-label]::before {
        content: attr(data-label);
        font-size: 0.625rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--text-secondary, #64748b);
        text-align: center;
    }

    .table-perm-mobile tbody td input[type="checkbox"] {
        width: 1.25rem;
        height: 1.25rem;
        cursor: pointer;
    }
}

/* --------------------------------------------------------------------------
   21. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .public-section { padding: 2.5rem 0; }
    .detail-sidebar { padding-left: 0; margin-top: 1.5rem; }
}

@media (max-width: 767.98px) {
    .home-carousel {
        aspect-ratio: 16 / 9;
        max-height: 450px;
        border-radius: 12px;
        width: calc(100% - 1.5rem);
    }
    .home-carousel-title { font-size: 1.3125rem; }
    .home-carousel-subtitle { font-size: 0.8125rem; -webkit-line-clamp: 1; }
    .home-carousel-content { padding: 1.25rem 1.5rem 1.5rem; }
    .home-carousel-arrow { width: 36px; height: 36px; font-size: 1rem; opacity: 1; }
    .section-title { font-size: 1.25rem; }
    .cta-heading { font-size: 1.25rem; }
    .auth-card { padding: 1.75rem; }
    .page-header { padding: 2rem 0 1.5rem; }
    .page-content { padding: 2rem 0 2.5rem; }
}

@media (max-width: 575.98px) {
    .home-carousel {
        aspect-ratio: 16 / 9;
        max-height: 350px;
        border-radius: 10px;
        width: calc(100% - 1rem);
    }
    .home-carousel-content { padding: 0.75rem 1rem 1.25rem; }
    .home-carousel-title { font-size: 1.0625rem; }
    .home-carousel-subtitle { font-size: 0.75rem; -webkit-line-clamp: 1; margin-top: 0.25rem; }
    .home-carousel-arrow { width: 32px; height: 32px; font-size: 0.875rem; }
    .home-carousel-arrow-prev { left: 0.5rem; }
    .home-carousel-arrow-next { right: 0.5rem; }
}

/* --------------------------------------------------------------------------
   22. MISC UTILITIES
   -------------------------------------------------------------------------- */
.truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

a { color: var(--primary-dark); transition: color var(--transition-fast); }
a:hover { color: var(--primary); }

button, .btn, a, input, select, textarea {
    transition: all var(--transition-fast);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* UI Polish */
.news-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.06) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.news-card:hover .news-card-image::after { opacity: 1; }
.quick-action-card:hover .quick-action-icon { transform: scale(1.08); transition: transform 0.3s ease; }
.announcement-card:hover { border-left-width: 4px; }
.announcement-card.pinned:hover { border-left-color: var(--secondary-dark); }

.news-card-title a,
.announcement-card-title a {
    background-image: linear-gradient(var(--primary), var(--primary));
    background-size: 0 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease, color 0.2s ease;
}
.news-card-title a:hover,
.announcement-card-title a:hover { background-size: 100% 2px; }

.btn:focus-visible,
.btn-cta:focus-visible,
.btn-cta-filled:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   23. ADMIN LAYOUT — Sidebar, Topbar, Wrapper
   -------------------------------------------------------------------------- */
.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    background: #0F172A;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar-header {
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.sidebar-brand:hover,
.sidebar-brand:focus,
.sidebar-brand:active {
    text-decoration: none;
}

.sidebar-brand-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-subtitle {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    flex: 1;
    padding: 0.75rem 0;
    overflow-y: auto;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item { margin: 1px 0.5rem; }

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.875rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.sidebar-link i {
    font-size: 1.125rem;
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    text-decoration: none;
}

.admin-sidebar .sidebar-item.active:not(.has-submenu) > .sidebar-link {
    background: #1e40af;
    color: #fff;
}

.sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-footer .sidebar-link { color: #64748b; }
.sidebar-footer .sidebar-link:hover { color: #e2e8f0; background: rgba(255, 255, 255, 0.06); }

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1035;
}

.admin-wrapper {
    margin-left: 260px;
    min-height: 100vh;
    background: #f1f5f9;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 1.5rem;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topbar-toggle {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #475569;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-toggle:hover { background: #f1f5f9; }

.topbar-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.topbar-user-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #334155;
}

.admin-content { flex: 1; }

@media (max-width: 991.98px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-wrapper { margin-left: 0; }
}

@media (min-width: 992px) {
    .topbar-toggle { display: none; }
}

/* --------------------------------------------------------------------------
   24. ADMIN PAGE HEADERS
   -------------------------------------------------------------------------- */
.admin-content .page-header {
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--gray-100) 100%);
    border-radius: var(--radius-xl);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    text-align: left;
    color: var(--text-primary);
}

.admin-content .page-header::after { display: none; }

.admin-content .page-header .page-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.admin-content .page-header .page-title .icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    background: var(--primary);
    color: var(--white);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.admin-content .page-header .page-pretitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-500);
    font-weight: 600;
    margin-bottom: 0.15rem;
}

/* --------------------------------------------------------------------------
   25. ADMIN SIDEBAR SUB-MENU
   -------------------------------------------------------------------------- */
.admin-sidebar .sidebar-item.has-submenu > .sidebar-link {
    position: relative;
    justify-content: flex-start;
}

.admin-sidebar .sidebar-submenu-arrow {
    margin-left: auto;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.admin-sidebar .sidebar-item.has-submenu.expanded > .sidebar-link .sidebar-submenu-arrow {
    transform: rotate(180deg);
}

.admin-sidebar .sidebar-item.has-submenu.active > .sidebar-link {
    background: rgba(30, 64, 175, 0.5);
    color: #e2e8f0;
}

.admin-sidebar .sidebar-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    border-left: 2px solid rgba(99, 102, 241, 0.4);
    margin-left: 1.75rem;
}

.admin-sidebar .sidebar-item.has-submenu.expanded > .sidebar-submenu {
    max-height: 300px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.admin-sidebar .sidebar-submenu-item { margin: 0; }

.admin-sidebar .sidebar-submenu-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.875rem 0.45rem 0.75rem;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 400;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    margin: 1px 0.25rem;
    cursor: pointer;
}

.admin-sidebar .sidebar-submenu-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
}

.admin-sidebar .sidebar-submenu-item.active .sidebar-submenu-link {
    color: #93c5fd;
    background: rgba(99, 102, 241, 0.15);
    font-weight: 600;
}

.admin-sidebar .sidebar-submenu-link i {
    font-size: 0.85rem;
    width: 1rem;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   26. SITE NAVBAR (Public layout — global, no scoped CSS)
   -------------------------------------------------------------------------- */
.site-navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    transition: box-shadow 0.3s ease;
}

.site-navbar.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    transition: height 0.3s ease;
}

.site-navbar.scrolled .navbar-inner {
    height: 56px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: #1E293B;
    flex-shrink: 0;
}

.navbar-brand:hover {
    color: #1E293B;
    text-decoration: none;
}

.navbar-logo-icon {
    width: 56px;
    height: 56px;
    border-radius: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s ease, height 0.3s ease;
    flex-shrink: 0;
}

.navbar-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sidebar-logo-image {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
}

.site-navbar.scrolled .navbar-logo-icon {
    width: 46px;
    height: 46px;
    font-size: 1rem;
    border-radius: 8px;
}

.navbar-brand-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.navbar-brand-text {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: font-size 0.3s ease;
    line-height: 1.2;
}

.site-navbar.scrolled .navbar-brand-text {
    font-size: 0.875rem;
}

.navbar-brand-subtitle {
    font-size: 0.6875rem;
    color: #64748B;
    font-weight: 400;
    max-height: 1.5em;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.site-navbar.scrolled .navbar-brand-subtitle {
    max-height: 0;
    opacity: 0;
}

/* Desktop Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

.nav-link {
    color: #64748B;
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link:hover {
    color: #1976D2;
    background: #E3F2FD;
    text-decoration: none;
}

.nav-link.active {
    color: #1976D2;
    font-weight: 600;
}

/* Desktop Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: #64748B;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-dropdown-toggle:hover {
    color: #1976D2;
    background: #E3F2FD;
}

.nav-dropdown-icon {
    font-size: 0.625rem;
    margin-left: 0.125rem;
    transition: transform 0.25s ease;
}

.nav-dropdown:hover .nav-dropdown-icon { transform: rotate(180deg); }

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 200px;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.04);
    padding: 0.375rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1050;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0; right: 0;
    height: 10px;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 0.5rem 1.125rem;
    color: #475569;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.nav-dropdown-item:hover {
    background: #E3F2FD;
    color: #1976D2;
    text-decoration: none;
}

/* Auth area */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}

.nav-auth-link {
    color: #64748B;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-auth-link:hover {
    color: #1976D2;
    background: #E3F2FD;
    text-decoration: none;
}

.nav-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 1rem;
    background: #42A5F5;
    color: #fff;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 20px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.nav-auth-btn:hover {
    background: #1976D2;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.nav-auth-btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 1rem;
    background: #fff;
    color: #DC2626;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid #FCA5A5;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.12);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.nav-auth-btn-danger:hover {
    background: #DC2626;
    color: #fff;
    border-color: #DC2626;
    text-decoration: none;
    transform: translateY(-1px);
}

.nav-logout-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0.375rem 0.5rem;
}

/* Mobile Toggle */
.nav-toggler {
    background: none;
    border: none;
    color: #64748B;
    font-size: 1.375rem;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-toggler:hover {
    background: #F1F5F9;
    color: #1E293B;
}

/* Mobile Menu */
.mobile-menu {
    background: #FFFFFF;
    border-top: 1px solid #E2E8F0;
    padding: 0.5rem 0.75rem 0.75rem;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
    color: #475569;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    font-family: inherit;
}

.mobile-link:hover {
    background: #F1F5F9;
    color: #1E293B;
    text-decoration: none;
}

.mobile-link i {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
    color: #94A3B8;
}

.mobile-link-primary { color: #1976D2; font-weight: 600; }
.mobile-link-primary i { color: #1976D2; }
.mobile-link-danger { color: #EF4444; }
.mobile-link-danger i { color: #EF4444; }

.mobile-divider {
    height: 1px;
    background: #E2E8F0;
    margin: 0.375rem 0.75rem;
}

.mobile-dropdown-toggle { justify-content: flex-start; }

.mobile-dropdown-chevron {
    margin-left: auto;
    font-size: 0.875rem;
    color: #94A3B8 !important;
    width: auto !important;
    transition: transform 0.2s ease;
}

.mobile-dropdown-items { padding-left: 1rem; }

.mobile-sub-link { font-size: 0.8125rem; padding: 0.5rem 0.75rem; color: #64748B; }
.mobile-sub-link i { font-size: 0.625rem; }

/* Site Main */
.site-main { min-height: calc(100vh - 72px); }

/* --------------------------------------------------------------------------
   27. SITE FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
    background: #1E293B;
    color: #94A3B8;
    padding-top: 2.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin: 0 auto 0.75rem;
}

.footer-brand-logo {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.footer-brand-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.footer-brand-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: #94A3B8;
    line-height: 1.2;
}

.footer-brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.footer-desc {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #94A3B8;
}

.footer-title {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.375rem;
    border-bottom: 2px solid #42A5F5;
    display: inline-block;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 0.375rem; }

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: #90CAF9; }

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
}

.footer-contact i { color: #42A5F5; font-size: 1rem; }

.footer-social { display: flex; gap: 0.5rem; }

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #94A3B8;
    text-decoration: none;
    font-size: 1.125rem;
    transition: background 0.2s, color 0.2s;
}

.footer-social a:hover { background: #42A5F5; color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 2rem;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.75rem;
    color: #64748B;
}

/* --------------------------------------------------------------------------
   28. SCROLL TO TOP BUTTON
   -------------------------------------------------------------------------- */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1050;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.24);
    transform: translateY(-2px);
}

.scroll-to-top:active { transform: translateY(0); }

/* --------------------------------------------------------------------------
   29. NAVBAR RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .navbar-inner {
        height: 60px;
        padding: 0 1rem;
    }
    .site-navbar.scrolled .navbar-inner { height: 52px; }

    .navbar-logo-icon {
        width: 48px;
        height: 48px;
        font-size: 1.0625rem;
    }

    .site-navbar.scrolled .navbar-logo-icon {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }

    .navbar-brand-text { font-size: 0.9375rem; }
    .site-navbar.scrolled .navbar-brand-text { font-size: 0.8125rem; }
    .navbar-brand-subtitle { font-size: 0.625rem; }
    .mobile-menu { max-height: calc(100vh - 60px); }
}

@media (max-width: 575.98px) {
    .navbar-inner { height: 56px; }
    .site-navbar.scrolled .navbar-inner { height: 48px; }
    .navbar-logo-icon { width: 44px; height: 44px; }
    .navbar-brand-text { font-size: 0.8125rem; }
    .mobile-menu { max-height: calc(100vh - 56px); }
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 42px;
        height: 42px;
        font-size: 1.125rem;
    }
}
