@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   DESIGN TOKENS — Light Only
   ============================================ */
:root {
    /* Primary Palette */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --primary-border: #c7d2fe;

    /* Neutral Palette */
    --bg-body: #f1f5f9;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-navbar: rgba(255, 255, 255, 0.85);
    --bg-input: #f8fafc;
    --bg-hero: #ffffff;

    /* Text */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-on-primary: #ffffff;

    /* Borders */
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: all 0.15s ease;
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    /* Sidebar */
    --sidebar-width: 260px;
}

/* ============================================
   BASE RESET
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
}

/* ============================================
   PUBLIC NAVBAR
   ============================================ */
.navbar-custom-public {
    background-color: var(--bg-navbar);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar-brand-public {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.navbar-brand-public:hover {
    color: var(--primary-hover);
}

.nav-link-custom {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.925rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    text-decoration: none;
}

.nav-link-custom:hover {
    color: var(--text-primary);
    background-color: var(--primary-light);
}

.nav-link-custom.active {
    color: var(--primary);
    background-color: var(--primary-light);
    font-weight: 600;
}

.brand-text-public {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* Hamburger button sleek customization */
.navbar-custom-public .navbar-toggler {
    background-color: var(--bg-input) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    padding: 8px 10px !important;
    transition: var(--transition-fast) !important;
    box-shadow: none !important;
    outline: none !important;
}

.navbar-custom-public .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15) !important;
}

.navbar-custom-public .navbar-toggler-icon {
    width: 1.2em !important;
    height: 1.2em !important;
    transition: var(--transition-fast);
}

/* Mobile responsive navigation overrides */
@media (max-width: 991.98px) {
    .brand-text-public {
        font-size: 1.05rem;
    }

    .navbar-custom-public .container {
        position: relative;
    }

    /* Floating Card container for menu links on mobile collapse - positioned absolutely */
    .navbar-custom-public .navbar-collapse.show,
    .navbar-custom-public .navbar-collapse.collapsing {
        position: absolute !important;
        top: 100% !important;
        left: 12px !important;
        right: 12px !important;
        background: var(--bg-card) !important;
        border: 1px solid var(--border) !important;
        border-radius: var(--radius-md) !important;
        padding: 16px 20px !important;
        box-shadow: var(--shadow-lg) !important;
        z-index: 1050 !important;
        display: block !important;
    }
    
    /* Gaps between mobile links */
    .navbar-custom-public .navbar-nav {
        gap: 6px !important;
        margin-bottom: 16px !important;
        flex-direction: column !important;
    }
    
    /* Sleek buttons/links in mobile list */
    .navbar-custom-public .nav-link-custom {
        display: flex !important;
        align-items: center !important;
        padding: 10px 14px !important;
        border-radius: var(--radius-sm) !important;
        font-size: 0.95rem !important;
        font-weight: 500 !important;
        color: var(--text-secondary) !important;
        transition: var(--transition-fast) !important;
        background: transparent !important;
        width: 100% !important;
    }
    
    .navbar-custom-public .nav-link-custom:hover,
    .navbar-custom-public .nav-link-custom.active {
        color: var(--primary) !important;
        background-color: var(--primary-light) !important;
        font-weight: 600 !important;
    }

    /* Action wrapper on mobile */
    .navbar-custom-public .navbar-collapse .d-flex {
        display: block !important;
        width: 100% !important;
        padding-top: 14px !important;
        border-top: 1px dashed var(--border) !important;
        margin-top: 4px !important;
    }
    
    /* Make panel/login buttons full width on mobile */
    .navbar-custom-public .navbar-collapse .btn-premium,
    .navbar-custom-public .navbar-collapse .btn-premium-outline {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 12px !important;
        font-size: 0.95rem !important;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-premium {
    background: var(--primary);
    color: var(--text-on-primary) !important;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.925rem;
    box-shadow: 0 1px 3px rgba(79, 70, 229, 0.3);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
}

.btn-premium:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.btn-premium-outline {
    background: transparent;
    color: var(--text-primary) !important;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 9px 22px;
    font-weight: 600;
    font-size: 0.925rem;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
}

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

.btn-indigo {
    background-color: var(--primary);
    color: var(--text-on-primary) !important;
    transition: var(--transition-fast);
}

.btn-indigo:not(.btn-sm) {
    font-weight: 600;
    padding: 11px 24px;
    border: none;
    border-radius: var(--radius-md);
}

.btn-indigo.btn-sm {
    border: 1px solid transparent;
}

.btn-indigo:hover {
    background-color: var(--primary-hover);
    color: var(--text-on-primary);
    transform: translateY(-1px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 50%, #e0e7ff 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

@media (max-width: 991.98px) {
    .hero-section::before {
        display: none;
    }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 32px;
    max-width: 560px;
}

.hero-icon-block {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary-light), #dbeafe);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--primary-border);
}

.hero-icon-block i {
    font-size: clamp(4rem, 10vw, 7rem);
    color: var(--primary);
    opacity: 0.85;
}

/* ============================================
   SECTION COMMONS
   ============================================ */
.section-badge {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.825rem;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--primary-border);
    margin-bottom: 12px;
}

.section-title {
    font-weight: 800;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    height: 100%;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-xs);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-border);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--text-on-primary);
    transform: scale(1.05);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-icon-block {
    font-size: clamp(5rem, 12vw, 8rem);
    display: block;
    text-align: center;
    line-height: 1;
}

.about-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

/* ============================================
   PORTFOLIO / BLOG CARDS
   ============================================ */
.portfolio-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-xs);
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-border);
}

.portfolio-img-wrapper {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--bg-body);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.03);
}

.portfolio-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.portfolio-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.portfolio-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.portfolio-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

/* Form Controls */
.form-control-custom {
    background-color: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 12px 16px;
    font-size: 0.925rem;
    transition: var(--transition-fast);
}

.form-control-custom:focus {
    background-color: #ffffff;
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
    outline: none;
}

.form-control-custom::placeholder {
    color: var(--text-muted);
}

/* ============================================
   GALLERY & LIGHTBOX
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--border);
    cursor: pointer;
    background-color: var(--bg-body);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.04);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 41, 59, 0.7), transparent 60%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.lightbox-modal .modal-content {
    background-color: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.lightbox-img {
    max-height: 80vh;
    object-fit: contain;
    width: 100%;
    border-radius: var(--radius-md);
}

/* ============================================
   PUBLIC FOOTER
   ============================================ */
.footer-public {
    border-top: 1px solid var(--border);
    background-color: var(--bg-card);
    padding: 40px 0 24px;
}

.footer-brand {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.footer-link {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--primary);
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page {
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 50%, #e0e7ff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.login-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.login-brand {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.login-form .form-control {
    background-color: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 0.925rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.login-form .form-control:focus {
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

/* ============================================
   PANEL: SIDEBAR
   ============================================ */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.sidebar-brand {
    padding: 20px 24px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.02em;
}

.sidebar-menu {
    list-style: none;
    padding: 16px 12px;
    margin: 0;
    flex-grow: 1;
}

.sidebar-menu li {
    margin-bottom: 4px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.925rem;
    transition: var(--transition-fast);
}

.sidebar-menu a i {
    margin-right: 10px;
    font-size: 1.15rem;
}

.sidebar-menu a:hover {
    color: var(--text-primary);
    background-color: var(--primary-light);
}

.sidebar-menu li.active a {
    color: var(--primary);
    background-color: var(--primary-light);
    font-weight: 600;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
}

/* ============================================
   PANEL: MAIN WRAPPER
   ============================================ */
.panel-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    margin: 0;
}

.main-wrapper {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    width: calc(100% - var(--sidebar-width));
}

.navbar-custom {
    height: 64px;
    background-color: var(--bg-navbar);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content-body {
    padding: 24px;
    flex-grow: 1;
}

/* ============================================
   PANEL: STAT CARDS & CUSTOM CARDS
   ============================================ */
.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-xs);
    transition: var(--transition-fast);
}

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

.custom-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header-custom {
    background-color: transparent;
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.card-body-custom {
    padding: 20px;
}

/* ============================================
   PANEL: TABLE STYLES
   ============================================ */
.table-custom {
    margin-bottom: 0;
}

.table-custom th {
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom-width: 1px;
    padding: 12px 16px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.table-custom td {
    padding: 12px 16px;
    vertical-align: middle;
    color: var(--text-primary);
    font-size: 0.925rem;
}

/* ============================================
   PANEL: STATUS BADGES
   ============================================ */
.badge-talep {
    background-color: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.badge-hazirlik {
    background-color: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.badge-devam {
    background-color: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-border);
}

.badge-bitti {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.badge-reddedildi {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ============================================
   PANEL: USER AVATAR
   ============================================ */
.user-avatar {
    width: 38px;
    height: 38px;
    background-color: var(--primary);
    color: var(--text-on-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.925rem;
}

/* ============================================
   MICRO-ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* ============================================
   RESPONSIVE — MOBILE FIRST
   ============================================ */

/* Panels: Mobile */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    .sidebar.active {
        transform: translateX(0);
        box-shadow: var(--shadow-xl);
    }

    .main-wrapper {
        margin-left: 0;
        width: 100%;
    }

    .navbar-custom {
        padding: 0 16px;
    }

    .content-body {
        padding: 16px;
    }
}

/* Public pages: Tablet & down */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 60px 0 40px;
    }

    .hero-icon-block {
        max-width: 200px;
    }

    .contact-card {
        padding: 24px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }

    .footer-public {
        padding: 32px 0 20px;
    }
}

/* Small phones */
@media (max-width: 575.98px) {
    .hero-icon-block {
        max-width: 160px;
    }

    .hero-icon-block i {
        font-size: 3.5rem;
    }

    .service-card {
        padding: 24px 20px;
    }

    .contact-card {
        padding: 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 40px 0 24px;
    }

    .hero-icon-block {
        max-width: 140px;
    }

    .login-page {
        padding: 16px 0;
    }
}

/* ============================================
   SIDEBAR BACKDROP (MOBILE)
   ============================================ */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.sidebar-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   UTILITY HELPERS
   ============================================ */
.max-width-600 {
    max-width: 600px;
}

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

.border-section {
    border-top: 1px solid var(--border);
}

.bg-section-alt {
    background-color: var(--bg-card);
}

/* ============================================
   MODAL FIXES — Light background for all modals
   ============================================ */
.modal-content {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
}

.modal-header {
    border-bottom: 1px solid var(--border) !important;
    background-color: var(--bg-card) !important;
}

.modal-footer {
    border-top: 1px solid var(--border) !important;
    background-color: var(--bg-card) !important;
}

.modal-title {
    color: var(--text-primary) !important;
}

.btn-close {
    filter: none !important;
}

/* ============================================
   FILTER BUTTON FIXES — consistent sizing
   ============================================ */
.d-flex.flex-wrap.gap-2 > .btn-sm.rounded-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    white-space: nowrap;
}

/* ============================================
   BLOG MEDIA CARD FIXES — light background
   ============================================ */
.card.bg-slate-900,
.card[style*="background-color: #0f172a"] {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

.card .card-body .form-check-label {
    color: var(--text-secondary) !important;
}

.card .border-top.border-secondary {
    border-color: var(--border) !important;
}

/* ============================================
   SIDEBAR NOTIFICATION BADGE
   ============================================ */
.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-menu a .badge {
    margin-left: auto;
}

/* ============================================
   MOBILE UX/UI ENHANCEMENTS
   ============================================ */

/* 1. Stack table columns into readable cards on mobile (Screen only) */
@media screen and (max-width: 767.98px) {
    .table-responsive:not(.table-nested-responsive) {
        border: none !important;
    }
    
    .table-custom {
        display: block !important;
        width: 100% !important;
        border: none !important;
    }
    
    .table-custom > thead {
        display: none !important; /* Hide column headers */
    }
    
    .table-custom > tbody {
        display: block !important;
        width: 100% !important;
    }
    
    .table-custom > tbody > tr {
        display: block !important;
        width: 100% !important;
        background-color: var(--bg-card) !important;
        border: 1px solid var(--border) !important;
        border-radius: var(--radius-md) !important;
        margin-bottom: 16px !important;
        padding: 12px 16px !important;
        box-shadow: var(--shadow-sm) !important;
    }

    /* Accordion detail row override */
    .table-custom > tbody > tr.detail-row {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: -8px 0 16px 0 !important;
    }
    .table-custom > tbody > tr.detail-row > td {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        border: none !important;
        min-height: 0 !important;
        background: transparent !important;
    }
    .table-custom > tbody > tr.detail-row > td[data-label]::before {
        display: none !important;
    }
    
    .table-custom > tbody > tr:not(.detail-row) > td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 0 !important;
        border-bottom: 1px solid var(--border-light) !important;
        font-size: 0.875rem !important;
        text-align: right !important;
        width: 100% !important;
        min-height: 44px !important;
        background: none !important;
    }
    
    .table-custom > tbody > tr:not(.detail-row) > td:last-child {
        border-bottom: none !important;
        justify-content: flex-end !important;
        padding-top: 12px !important;
    }
    
    /* Inject column header labels using data-label attribute */
    .table-custom > tbody > tr:not(.detail-row) > td[data-label]::before {
        content: attr(data-label) !important;
        font-weight: 600 !important;
        color: var(--text-secondary) !important;
        text-align: left !important;
        font-size: 0.8rem !important;
        text-transform: uppercase !important;
        margin-right: 12px !important;
        flex-shrink: 0 !important;
    }

    /* Custom Personnel Cards on Mobile */
    .table-custom.table-personnel {
        display: block !important;
        border: none !important;
    }
    
    .table-custom.table-personnel tbody {
        display: block !important;
    }
    
    .table-custom.table-personnel tr {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr !important;
        grid-template-rows: auto auto auto auto !important;
        gap: 8px !important;
        padding: 12px !important;
        margin-bottom: 16px !important;
        background-color: var(--bg-card) !important;
        border: 1px solid var(--border) !important;
        border-radius: var(--radius-md) !important;
        box-shadow: var(--shadow-sm) !important;
    }
    
    .table-custom.table-personnel td {
        display: flex !important;
        padding: 4px 0 !important;
        border-bottom: none !important;
        font-size: 0.875rem !important;
        min-height: auto !important;
        background: none !important;
        width: auto !important;
        text-align: left !important;
    }
    
    /* Name & ID cell */
    .table-custom.table-personnel td:nth-child(1) {
        grid-column: 1 / span 2 !important;
        grid-row: 1 !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
    }
    .table-custom.table-personnel td:nth-child(1)[data-label]::before {
        display: none !important;
    }
    .table-custom.table-personnel td:nth-child(1) .text-main {
        font-size: 1rem !important;
        font-weight: 700 !important;
    }
    
    /* Status Badge cell */
    .table-custom.table-personnel td:nth-child(3) {
        grid-column: 3 !important;
        grid-row: 1 !important;
        justify-content: flex-end !important;
        align-items: center !important;
    }
    .table-custom.table-personnel td:nth-child(3)[data-label]::before {
        display: none !important;
    }
    
    /* Phone cell */
    .table-custom.table-personnel td:nth-child(2) {
        grid-column: 1 / span 3 !important;
        grid-row: 2 !important;
        justify-content: flex-start !important;
        align-items: center !important;
        font-size: 0.8rem !important;
        color: var(--text-secondary) !important;
        margin-top: -4px !important;
        margin-bottom: 4px !important;
    }
    .table-custom.table-personnel td:nth-child(2)[data-label]::before {
        content: "📞 " !important;
        font-size: 0.8rem !important;
        color: var(--text-secondary) !important;
        font-weight: normal !important;
        text-transform: none !important;
        margin-right: 4px !important;
    }
    
    /* Financial Info Grid cells (Toplam, Odenen, Kalan) */
    .table-custom.table-personnel td:nth-child(4),
    .table-custom.table-personnel td:nth-child(5),
    .table-custom.table-personnel td:nth-child(6) {
        grid-row: 3 !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        background-color: var(--bg-input) !important;
        border: 1px solid var(--border-light) !important;
        border-radius: var(--radius-sm) !important;
        padding: 8px 4px !important;
        min-height: 52px !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
    }
    
    .table-custom.table-personnel td:nth-child(4) {
        grid-column: 1 !important;
    }
    .table-custom.table-personnel td:nth-child(5) {
        grid-column: 2 !important;
    }
    .table-custom.table-personnel td:nth-child(6) {
        grid-column: 3 !important;
    }
    
    .table-custom.table-personnel td:nth-child(4)[data-label]::before,
    .table-custom.table-personnel td:nth-child(5)[data-label]::before,
    .table-custom.table-personnel td:nth-child(6)[data-label]::before {
        display: block !important;
        font-size: 0.65rem !important;
        font-weight: 700 !important;
        color: var(--text-secondary) !important;
        text-transform: uppercase !important;
        margin-right: 0 !important;
        margin-bottom: 2px !important;
        text-align: center !important;
    }
    
    /* Action buttons cell */
    .table-custom.table-personnel td:nth-child(7) {
        grid-column: 1 / span 3 !important;
        grid-row: 4 !important;
        justify-content: flex-end !important;
        padding-top: 8px !important;
        border-top: 1px dashed var(--border-light) !important;
        margin-top: 4px !important;
        width: 100% !important;
    }
    .table-custom.table-personnel td:nth-child(7)[data-label]::before {
        display: none !important;
    }

    /* Custom Blog Management Cards on Mobile */
    .table-custom.table-blog {
        display: block !important;
        border: none !important;
    }
    
    .table-custom.table-blog tbody {
        display: block !important;
    }
    
    .table-custom.table-blog tr {
        display: grid !important;
        grid-template-columns: 80px 1fr !important;
        grid-template-rows: auto auto auto auto !important;
        gap: 10px !important;
        padding: 14px !important;
        margin-bottom: 16px !important;
        background-color: var(--bg-card) !important;
        border: 1px solid var(--border) !important;
        border-radius: var(--radius-md) !important;
        box-shadow: var(--shadow-sm) !important;
    }
    
    .table-custom.table-blog td {
        display: flex !important;
        padding: 0 !important;
        border-bottom: none !important;
        min-height: auto !important;
        background: none !important;
        width: auto !important;
        text-align: left !important;
        align-items: center !important;
    }
    
    /* Cover Image Cell */
    .table-custom.table-blog td:nth-child(1) {
        grid-column: 1 !important;
        grid-row: 1 / span 2 !important;
        justify-content: center !important;
        align-items: flex-start !important;
        margin-top: 2px !important;
    }
    .table-custom.table-blog td:nth-child(1)[data-label]::before {
        display: none !important;
    }
    .table-custom.table-blog td:nth-child(1) img {
        width: 80px !important;
        height: 60px !important;
        object-fit: cover !important;
        border-radius: var(--radius-sm) !important;
    }
    
    /* Title and description Cell */
    .table-custom.table-blog td:nth-child(2) {
        grid-column: 2 !important;
        grid-row: 1 !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding-left: 4px !important;
    }
    .table-custom.table-blog td:nth-child(2)[data-label]::before {
        display: none !important;
    }
    .table-custom.table-blog td:nth-child(2) strong {
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        color: var(--text-primary) !important;
        line-height: 1.3 !important;
        display: block !important;
        text-align: left !important;
        margin-bottom: 2px !important;
    }
    .table-custom.table-blog td:nth-child(2) .text-muted {
        font-size: 0.8rem !important;
        color: var(--text-secondary) !important;
        max-width: 100% !important;
        text-align: left !important;
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    
    /* Post Date Cell */
    .table-custom.table-blog td:nth-child(4) {
        grid-column: 2 !important;
        grid-row: 2 !important;
        justify-content: flex-start !important;
        font-size: 0.78rem !important;
        color: var(--text-muted) !important;
        padding-left: 4px !important;
        margin-top: 4px !important;
    }
    .table-custom.table-blog td:nth-child(4)[data-label]::before {
        content: "📅 " !important;
        font-size: 0.78rem !important;
        font-weight: normal !important;
        color: var(--text-muted) !important;
        text-transform: none !important;
        margin-right: 4px !important;
    }
    
    /* Related Project Cell */
    .table-custom.table-blog td:nth-child(3) {
        grid-column: 1 / span 2 !important;
        grid-row: 3 !important;
        justify-content: space-between !important;
        font-size: 0.8rem !important;
        padding-top: 8px !important;
        border-top: 1px solid var(--border-light) !important;
        margin-top: 4px !important;
        width: 100% !important;
    }
    .table-custom.table-blog td:nth-child(3)[data-label]::before {
        content: "Proje:" !important;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        color: var(--text-secondary) !important;
        text-transform: uppercase !important;
    }
    
    /* Action Buttons Cell */
    .table-custom.table-blog td:nth-child(5) {
        grid-column: 1 / span 2 !important;
        grid-row: 4 !important;
        justify-content: flex-end !important;
        padding-top: 8px !important;
        border-top: 1px dashed var(--border-light) !important;
        margin-top: 4px !important;
        width: 100% !important;
    }
    .table-custom.table-blog td:nth-child(5)[data-label]::before {
        display: none !important;
    }
    .table-custom.table-blog td:nth-child(5) .btn-group {
        display: flex !important;
        gap: 6px !important;
        width: auto !important;
    }
    .table-custom.table-blog td:nth-child(5) .btn {
        border-radius: var(--radius-sm) !important;
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }
}

/* 2. Compact Stats Cards on Mobile (2 columns instead of 1) */
@media (max-width: 575.98px) {
    .row > .col-sm-6:has(.stat-card),
    .row > .col-md-6:has(.stat-card),
    .row > .col-lg-4:has(.stat-card) {
        flex: 0 0 auto !important;
        width: 50% !important;
    }
    
    .stat-card {
        padding: 12px !important;
        margin-bottom: 0 !important;
        border-radius: var(--radius-md) !important;
        gap: 8px !important;
    }
    
    .stat-card h2, .stat-card h3 {
        font-size: 1.25rem !important;
    }
    
    .stat-card .bg-primary,
    .stat-card .bg-indigo,
    .stat-card .bg-success,
    .stat-card .bg-violet {
        padding: 8px !important;
    }
    
    .stat-card i {
        font-size: 1.25rem !important;
    }
}

.page-wrapper {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* ============================================
   FULLCALENDAR CUSTOM PREMIUM STYLES
   ============================================ */
.fc {
    --fc-border-color: var(--border-light);
    --fc-daygrid-event-dot-width: 8px;
    --fc-today-bg-color: rgba(79, 70, 229, 0.04);
    font-family: inherit;
}

/* Toolbar styling */
.fc .fc-toolbar {
    margin-bottom: 1.5rem !important;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.fc .fc-toolbar-title {
    font-size: 1.25rem !important;
    font-weight: 700;
    color: var(--text-primary);
}

/* Buttons styling */
.fc .fc-button-primary {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-secondary) !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    padding: 0.5rem 0.875rem !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: var(--shadow-xs) !important;
    transition: var(--transition-fast) !important;
}

.fc .fc-button-primary:hover {
    background-color: var(--primary-light) !important;
    color: var(--primary) !important;
    border-color: var(--primary-border) !important;
    transform: translateY(-1px);
}

.fc .fc-button-primary:disabled {
    background-color: var(--border-light) !important;
    color: var(--text-muted) !important;
    border-color: var(--border-light) !important;
    opacity: 0.6;
}

.fc .fc-button-active {
    background-color: var(--primary) !important;
    color: var(--text-on-primary) !important;
    border-color: var(--primary) !important;
}

.fc .fc-button-active:hover {
    background-color: var(--primary-hover) !important;
    color: var(--text-on-primary) !important;
    border-color: var(--primary-hover) !important;
}

/* Header Cells */
.fc .fc-col-header-cell {
    background-color: var(--bg-body);
    padding: 10px 0 !important;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1.5px solid var(--border) !important;
}

/* Grid & Day Cells */
.fc .fc-daygrid-day-number {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 12px !important;
}

.fc .fc-day-today .fc-daygrid-day-number {
    color: var(--primary);
    font-weight: 700;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: inline-block;
    min-width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    padding: 0 !important;
    margin: 8px;
}

/* Event Styling */
.fc-v-event, .fc-h-event {
    border: none !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    font-size: 0.775rem !important;
    font-weight: 550 !important;
    margin: 2.5px 4px !important;
    cursor: pointer;
    transition: var(--transition-fast);
}

.fc-v-event:hover, .fc-h-event:hover {
    filter: brightness(0.95);
    transform: translateY(-0.5px);
    box-shadow: var(--shadow-sm);
}

/* Popover (+ more list) styling */
.fc-popover {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
    overflow: hidden;
    z-index: 1050 !important;
}

.fc-popover .fc-popover-header {
    background-color: var(--bg-body) !important;
    color: var(--text-primary) !important;
    font-weight: 700 !important;
    padding: 8px 12px !important;
    border-bottom: 1px solid var(--border) !important;
}

.fc-popover .fc-popover-body {
    padding: 8px !important;
}

/* List View styling */
.fc .fc-list {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.fc .fc-list-day-cushion {
    background-color: var(--bg-body) !important;
    padding: 10px 16px !important;
}

.fc .fc-list-event {
    cursor: pointer;
}

.fc .fc-list-event:hover td {
    background-color: var(--border-light) !important;
}

/* Mobile responsive adjustments */
@media (max-width: 767.98px) {
    .fc .fc-toolbar-title {
        font-size: 1.1rem !important;
    }
    
    .fc .fc-button-primary {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.8rem !important;
    }
    
    .fc-v-event, .fc-h-event {
        padding: 2px 4px !important;
        font-size: 0.725rem !important;
        margin: 1.5px 2px !important;
    }
}

/* Modal Quick Action custom styles */
#quickActionTabs .nav-link {
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    border-bottom: 1px solid var(--border);
    transition: var(--transition-fast);
}

#quickActionTabs .nav-link.active {
    color: var(--primary) !important;
    background-color: var(--bg-card);
    border-color: var(--border) var(--border) transparent var(--border);
}

#quickActionTabs .nav-link:hover:not(.active) {
    color: var(--text-primary);
    border-bottom-color: var(--primary);
}

/* Print template display rule for screen */
#printTemplate {
    display: none;
}

/* ============================================
   PRINT MEDIA CUSTOM STYLES
   ============================================ */
@media print {
    @page {
        size: landscape;
        margin: 10mm;
    }

    /* Hide ALL layout and screen navigation/widget elements */
    .sidebar,
    .sidebar-backdrop,
    .navbar-custom,
    .d-print-none,
    .row.g-4.mb-4, /* Hide all cards, charts, and interactive calendar grid */
    .modal,
    footer,
    button,
    select,
    .form-check {
        display: none !important;
    }

    /* Expand main area to full width */
    .main-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .content-body {
        padding: 0 !important;
    }

    /* Show and style the print template */
    #printTemplate {
        display: block !important;
        background-color: #ffffff !important;
        color: #000000 !important;
        padding: 10px !important;
        font-family: 'Segoe UI', Arial, sans-serif !important;
        width: 100% !important;
    }

    .print-header {
        border-bottom: 2px solid #1e293b;
        padding-bottom: 8px;
        margin-bottom: 20px;
        text-align: center;
    }

    .print-title {
        font-size: 1.5rem;
        font-weight: 800;
        margin: 0 0 4px 0;
        color: #0f172a;
        letter-spacing: -0.01em;
    }

    .print-subtitle {
        font-size: 0.95rem;
        font-weight: 600;
        margin: 0 0 4px 0;
        color: #334155;
    }

    .print-date {
        font-size: 0.75rem;
        color: #64748b;
    }

    .print-section {
        margin-bottom: 20px;
        page-break-inside: avoid;
    }

    .print-section-title {
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 8px;
        color: #0f172a;
        border-bottom: 1px dashed #cbd5e1;
        padding-bottom: 4px;
    }

    .print-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 8px;
        font-size: 7.5pt;
    }

    .print-table th, .print-table td {
        border: 1px solid #cbd5e1;
        padding: 4px 6px;
        text-align: left;
        vertical-align: middle;
    }

    .print-table th {
        background-color: #f1f5f9 !important;
        font-weight: 700;
        color: #1e293b;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .print-table tr:nth-child(even) {
        background-color: #f8fafc;
    }

    .print-badge {
        display: inline-block;
        padding: 1px 5px;
        font-size: 0.65rem;
        font-weight: 600;
        border-radius: 4px;
        text-transform: uppercase;
        border: 1px solid #cbd5e1;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .print-badge-talep { background-color: #f1f5f9 !important; color: #475569 !important; }
    .print-badge-hazirlik { background-color: #fef3c7 !important; color: #d97706 !important; }
    .print-badge-devam-ediyor { background-color: #dbeafe !important; color: #2563eb !important; }
    .print-badge-bitti { background-color: #d1fae5 !important; color: #059669 !important; }
    .print-badge-reddedildi { background-color: #fee2e2 !important; color: #dc2626 !important; }

    /* Force tables to render as standard table layout in print mode */
    table, .table, .table-custom, .table-personnel, .table-ekstre, .table-blog {
        display: table !important;
        width: 100% !important;
        border-collapse: collapse !important;
    }
    thead, .table-custom > thead {
        display: table-header-group !important;
    }
    tbody, .table-custom > tbody {
        display: table-row-group !important;
    }
    tr, .table-custom > tbody > tr {
        display: table-row !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        page-break-inside: avoid;
    }
    th, td, 
    .table-custom > tbody > tr > td,
    .table-custom > tbody > tr:not(.detail-row) > td {
        display: table-cell !important;
        width: auto !important;
        min-height: 0 !important;
        text-align: inherit !important;
    }
    .table-custom > tbody > tr:not(.detail-row) > td[data-label]::before {
        display: none !important;
    }
}

/* Hide all-day / time column in Agenda (list view) */
.fc-list-event-time {
    display: none !important;
}

/* Custom responsive styles for personnel statement (ekstre) modal */
@media screen and (max-width: 767.98px) {
    #ekstreModal .modal-body {
        padding: 12px 14px !important;
    }
    #ekstreModal .modal-header {
        padding: 12px 14px !important;
    }
    #ekstreModal .modal-title {
        font-size: 1.05rem !important;
    }
    #ekstreModal .row.g-3 {
        --bs-gutter-y: 8px !important;
        --bs-gutter-x: 8px !important;
        margin-bottom: 12px !important;
    }
    #ekstreModal .row.g-3.mb-4 {
        margin-bottom: 12px !important;
    }
    
    /* Balance box */
    .ekstre-balance-box {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 10px 12px !important;
    }
    .ekstre-balance-box span:first-child {
        display: inline !important;
        margin-bottom: 0 !important;
        font-size: 0.75rem !important;
    }
    .ekstre-balance-box #ekstre_bakiye {
        font-size: 1.15rem !important;
    }

    /* Summary cards */
    .ekstre-summary-card {
        padding: 10px 8px !important;
    }
    .ekstre-summary-card small {
        font-size: 0.75rem !important;
    }
    .ekstre-summary-card span.fs-5 {
        font-size: 0.95rem !important;
    }
    
    /* Project distribution card */
    .ekstre-project-card {
        padding: 10px 12px !important;
    }
    .ekstre-project-card small {
        font-size: 0.75rem !important;
    }
    #ekstre_projeler {
        max-height: 90px;
        overflow-y: auto;
    }
    #ekstre_projeler div {
        font-size: 0.75rem !important;
        padding: 3px 0 !important;
    }
    
    /* Form switcher */
    #ekstreModal .form-check.form-switch {
        font-size: 0.8rem;
    }

    /* Ledger table responsive stack layout */
    .table-custom.table-ekstre {
        display: block !important;
        width: 100% !important;
        border: none !important;
    }
    .table-custom.table-ekstre thead {
        display: none !important;
    }
    .table-custom.table-ekstre tbody {
        display: block !important;
        width: 100% !important;
    }
    .table-custom.table-ekstre tr {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
        padding: 10px 12px !important;
        margin-bottom: 10px !important;
        border-radius: 8px !important;
        background-color: var(--bg-card) !important;
        border: 1px solid var(--border) !important;
        box-shadow: var(--shadow-md) !important;
    }
    .table-custom.table-ekstre td {
        display: flex !important;
        padding: 4px 0 !important;
        border: none !important;
        border-bottom: none !important;
        font-size: 0.8rem !important;
        min-height: auto !important;
        background: none !important;
        width: auto !important;
        text-align: left !important;
        align-items: center !important;
    }
    /* Date (Top-left) */
    .table-custom.table-ekstre td:nth-child(1) {
        grid-column: 1 !important;
        grid-row: 1 !important;
        font-weight: 700 !important;
        justify-content: flex-start !important;
    }
    .table-custom.table-ekstre td:nth-child(1)[data-label]::before {
        display: none !important;
    }
    /* Badge / Type (Top-right) */
    .table-custom.table-ekstre td:nth-child(2) {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-content: flex-end !important;
    }
    .table-custom.table-ekstre td:nth-child(2)[data-label]::before {
        display: none !important;
    }
    /* Proje / Açıklama (Middle - full width) */
    .table-custom.table-ekstre td:nth-child(3) {
        grid-column: 1 / span 2 !important;
        grid-row: 2 !important;
        border-top: 1px dashed var(--border) !important;
        padding-top: 6px !important;
        justify-content: flex-start !important;
        text-align: left !important;
        line-height: 1.3 !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .table-custom.table-ekstre td:nth-child(3)[data-label]::before {
        display: none !important;
    }
    /* Miktar (Bottom-left) */
    .table-custom.table-ekstre td:nth-child(4) {
        grid-column: 1 !important;
        grid-row: 3 !important;
        justify-content: flex-start !important;
    }
    .table-custom.table-ekstre td:nth-child(4)[data-label]::before {
        content: "Miktar: " !important;
        font-size: 0.75rem !important;
        color: var(--text-secondary) !important;
        font-weight: 500 !important;
        margin-right: 4px !important;
    }
    /* Bakiye (Bottom-right) */
    .table-custom.table-ekstre td:nth-child(5) {
        grid-column: 2 !important;
        grid-row: 3 !important;
        justify-content: flex-end !important;
    }
    .table-custom.table-ekstre td:nth-child(5)[data-label]::before {
        content: "Bakiye: " !important;
        font-size: 0.75rem !important;
        color: var(--text-secondary) !important;
        font-weight: 500 !important;
        margin-right: 4px !important;
    }
    /* Action buttons (Bottom - full width) */
    .table-custom.table-ekstre td:nth-child(6) {
        grid-column: 1 / span 2 !important;
        grid-row: 4 !important;
        justify-content: flex-end !important;
        border-top: 1px dashed var(--border) !important;
        padding-top: 6px !important;
        margin-top: 2px !important;
        width: 100% !important;
    }
    .table-custom.table-ekstre td:nth-child(6)[data-label]::before {
        display: none !important;
    }
    .table-custom.table-ekstre td:nth-child(6) button {
        font-size: 0.75rem !important;
    }
}

/* Stacked modals backdrop z-index fix */
.modal-backdrop + .modal-backdrop {
    z-index: 1058 !important;
}

/* ============================================
   EXTRACTED & CENTRALIZED COMPONENT STYLES
   ============================================ */

/* --- Defter / Ajanda / Ölçü Notları Stilleri --- */
.notebook-sheet {
    background-color: #faf9f5;
    border: 1px solid #e5dfd3;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md), inset 0 0 40px rgba(0,0,0,0.01);
    padding: 24px;
    color: #3f3a32;
    min-height: 480px;
    position: relative;
}

.notebook-paper {
    background-image: linear-gradient(#e5dfd3 1px, transparent 1px);
    background-size: 100% 2.4rem;
    line-height: 2.4rem;
}

.notebook-textarea {
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    width: 100%;
    line-height: 2.4rem;
    font-size: 1.05rem;
    font-family: inherit;
    color: inherit;
    min-height: 380px;
}

.notebook-textarea::placeholder {
    color: #b0a99a;
}

.notebook-text {
    background: transparent;
    width: 100%;
    line-height: 2.4rem;
    font-size: 1.05rem;
    font-family: inherit;
    color: inherit;
    min-height: 380px;
    white-space: pre-wrap;
    margin: 0;
    padding: 0;
}

/* --- Ajanda ve Çalışan Kartı Stilleri --- */
.agenda-nav-bar {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
}

@media (max-width: 767.98px) {
    .agenda-nav-bar {
        padding: 12px 14px;
    }
    .agenda-nav-bar .btn {
        padding: 6px 12px !important;
        font-size: 0.9rem;
    }
    .agenda-nav-bar input[type="date"] {
        padding: 6px 10px !important;
        font-size: 0.9rem;
        max-width: 140px;
    }
}

@media (max-width: 480px) {
    .agenda-nav-bar {
        padding: 10px 10px;
        gap: 12px !important;
    }
    .agenda-nav-bar .btn {
        padding: 5px 10px !important;
        font-size: 0.85rem;
    }
    .agenda-nav-bar input[type="date"] {
        padding: 5px 6px !important;
        font-size: 0.85rem;
        max-width: 120px;
    }
}

.worker-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-xs);
    transition: var(--transition-smooth);
}

.worker-card:hover {
    border-color: var(--primary-border) !important;
    box-shadow: var(--shadow-sm);
}

.project-row {
    background-color: var(--bg-body);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--border-light);
}

/* --- Lightbox Görsel Önizleme --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

/* --- Renk ve Buton Sınıfları --- */
.btn-violet {
    background-color: #8b5cf6 !important;
    color: #fff !important;
    border: none;
}
.btn-violet:hover {
    background-color: #7c3aed !important;
    color: #fff !important;
}

.bg-indigo { background-color: rgba(99, 102, 241, var(--bs-bg-opacity, 1)) !important; }
.text-indigo { color: var(--primary) !important; }
.bg-indigo-light { background-color: var(--primary-light) !important; }
.btn-indigo { background-color: var(--primary) !important; color: var(--text-on-primary) !important; }
.btn-outline-indigo { border-color: var(--primary) !important; color: var(--primary) !important; background-color: transparent !important; }
.btn-outline-indigo:hover { background-color: var(--primary) !important; color: var(--text-on-primary) !important; }

.badge-giris {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.badge-cikis {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* --- Mobil ve Tablo Collapse Stilleri --- */
tr[data-bs-toggle="collapse"] { cursor: pointer; }
tr[data-bs-toggle="collapse"]:hover { background-color: rgba(99, 102, 241, 0.04) !important; }
tr[data-bs-toggle="collapse"] .small-chevron { transition: transform 0.2s ease; display: inline-block; }
tr[aria-expanded="true"] .small-chevron { transform: rotate(90deg); }

/* --- Takvim ve Nokta Göstergeleri (Ajanda/Dashboard) --- */
@media (max-width: 768px) {
    .fc .fc-toolbar {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }
    .fc .fc-toolbar-chunk:nth-child(2) { width: 100%; text-align: center; order: 1; margin-bottom: 4px; }
    .fc .fc-toolbar-chunk:nth-child(1) { order: 2; }
    .fc .fc-toolbar-chunk:nth-child(3) { order: 3; }
    .fc .fc-toolbar-title { font-size: 1.05rem !important; font-weight: 700; }
    .fc .fc-button { padding: 4px 8px !important; font-size: 0.72rem !important; }
    
    .fc-daygrid-event {
        font-size: 0.65rem !important;
        padding: 1px 2px !important;
        margin: 1px 0 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .fc .fc-daygrid-body { height: auto !important; }
    .fc-col-header-cell-cushion { font-size: 0.7rem !important; padding: 4px 2px !important; }
    .fc-daygrid-day-number { font-size: 0.7rem !important; padding: 2px 4px !important; }
}

.agenda-mini-calendar#calendar,
.agenda-mini-calendar #calendar {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    padding: 16px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important;
}

.agenda-mini-calendar#calendar table,
.agenda-mini-calendar #calendar table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
}

.agenda-mini-calendar .fc-theme-standard td, .agenda-mini-calendar .fc-theme-standard th { border: none !important; }
.agenda-mini-calendar .fc-theme-standard .fc-scrollgrid { border: none !important; }
.agenda-mini-calendar .fc-scroller-harness, .agenda-mini-calendar .fc-scroller { overflow: visible !important; }
.agenda-mini-calendar .fc-daygrid-body, .agenda-mini-calendar .fc-scrollgrid-sync-table { width: 100% !important; }
.agenda-mini-calendar .fc-scrollgrid-section { height: auto !important; }
.agenda-mini-calendar .fc-scrollgrid-section > td { border: none !important; }
.agenda-mini-calendar .fc-daygrid-event-harness, .agenda-mini-calendar .fc-event { display: none !important; }

.calendar-month-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.calendar-month-wrapper input[type="month"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.001;
    cursor: pointer;
    border: none;
    background: transparent;
    z-index: 1;
}

.agenda-mini-calendar .fc-daygrid-day-frame {
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    background-color: var(--card-bg) !important;
    margin: 2px !important;
    aspect-ratio: 1 / 1 !important;
    position: relative !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
    overflow: hidden !important;
    padding: 0 !important;
}

.agenda-mini-calendar .fc-daygrid-day-frame:hover {
    border-color: #3b82f6 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
}

.agenda-mini-calendar .fc-col-header-cell {
    border: none !important;
    background-color: transparent !important;
    padding-bottom: 6px !important;
}

.agenda-mini-calendar .fc-col-header-cell-cushion {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    color: #94a3b8 !important;
    text-decoration: none !important;
}

.agenda-mini-calendar .fc-daygrid-day-number {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    font-size: 0.88rem !important;
    padding: 8px !important;
    text-decoration: none !important;
    display: block !important;
    text-align: center !important;
    width: 100% !important;
}

.agenda-mini-calendar .fc-daygrid-day.is-selected-date .fc-daygrid-day-frame {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2) !important;
}

.agenda-mini-calendar .fc-daygrid-day.is-selected-date .fc-daygrid-day-number {
    color: #ffffff !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    min-width: auto !important;
    height: auto !important;
    line-height: normal !important;
    margin: 0 !important;
    padding: 8px !important;
}

.agenda-mini-calendar .fc-day-other .fc-daygrid-day-frame {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: default !important;
    pointer-events: none !important;
}
.agenda-mini-calendar .fc-day-other .fc-daygrid-day-number,
.agenda-mini-calendar .fc-day-other .day-dots-container {
    display: none !important;
}

.day-dots-container {
    position: absolute !important;
    bottom: 3px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    gap: 2.5px !important;
    justify-content: center !important;
    align-items: center !important;
    height: 14px !important;
    z-index: 5 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
}

.calendar-dot {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    font-size: 8px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1 !important;
}

.dot-blue { background-color: #3b82f6 !important; }
.dot-green { background-color: #10b981 !important; }
.dot-red { background-color: #ef4444 !important; }
.dot-yellow { background-color: #f59e0b !important; }

.fc-daygrid-day.is-selected-date .day-dots-container {
    left: 50% !important;
    transform: translateX(-50%) !important;
    justify-content: center !important;
}
.fc-daygrid-day.is-selected-date .day-dots-container .calendar-dot {
    display: inline-flex !important;
    border: 1.2px solid #ffffff !important;
}

/* --- Proje Detay Sekme Stilleri --- */
#projectTab.nav-pills .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: transparent !important;
}
#projectTab.nav-pills .nav-link:hover {
    color: var(--text-primary) !important;
    background-color: rgba(0, 0, 0, 0.05) !important;
}
#projectTab.nav-pills .nav-link.active {
    color: #ffffff !important;
    background-color: var(--primary) !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}
#projectTab.nav-pills {
    border: none !important;
    gap: 6px;
}

/* --- Setup Sihirbazı Stilleri --- */
.setup-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.header-gradient {
    background: linear-gradient(135deg, #4f46e5, #8b5cf6);
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
.setup-section-title {
    font-size: 1.1rem;
    color: #c084fc;
    border-bottom: 2px solid #334155;
    padding-bottom: 8px;
    margin-bottom: 20px;
    font-weight: 600;
}
.alert-error {
    background-color: #7f1d1d;
    border: 1px solid #b91c1c;
    color: #fca5a5;
    border-radius: 12px;
}

