/* ==========================================================================
   Apple / Stripe / Notion Level Premium Dashboard Stylesheet
   Includes Dual Responsive Architecture: Desktop (1920x1080) & Mobile (390x844)
   ========================================================================== */

/* --- CSS Variables & Theme Tokens --- */
:root {
    --bg-main: #F8FAFC;
    --sidebar-bg: #091322;
    --sidebar-active: #2563EB;
    --sidebar-hover: rgba(255, 255, 255, 0.06);
    --sidebar-text: #94A3B8;
    --sidebar-border: rgba(255, 255, 255, 0.07);

    --card-bg: #FFFFFF;
    --card-border: #E2E8F0;
    --card-border-hover: #CBD5E1;
    
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;

    --blue-primary: #2563EB;
    --blue-light: #EFF6FF;
    --green-primary: #10B981;
    --green-light: #ECFDF5;
    --orange-primary: #F59E0B;
    --orange-light: #FFFBEB;
    --purple-primary: #8B5CF6;
    --purple-light: #F5F3FF;
    --red-primary: #EF4444;
    --red-light: #FEF2F2;
    --pink-primary: #EC4899;

    --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.4;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Mobile Drawer Overlay Backdrop */
.sidebar-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* --- Sidebar Navigation --- */
.sidebar {
    width: 230px;
    background-color: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-right: 1px solid var(--sidebar-border);
}

.sidebar-header {
    padding: 16px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 14px;
}

.logo-text h2 {
    color: #FFFFFF;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.15;
}

.logo-text span {
    color: var(--sidebar-text);
    font-size: 10px;
}

.sidebar-menu {
    flex: 1;
    padding: 4px 8px;
    overflow-y: auto;
}

.sidebar-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6.5px 10px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 11.5px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    min-height: 36px;
    transition: all 0.12s ease;
}

.sidebar-menu li a i {
    font-size: 13px;
    width: 16px;
    text-align: center;
    opacity: 0.85;
}

.sidebar-menu li:hover a {
    background-color: var(--sidebar-hover);
    color: #FFFFFF;
}

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

.nav-badge {
    margin-left: auto;
    font-size: 9.5px;
    font-weight: 700;
    background-color: var(--blue-primary);
    color: #FFFFFF;
    padding: 1px 5px;
    border-radius: 8px;
}

.nav-badge.red { background-color: var(--red-primary); }

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

.tenant-box {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tenant-icon {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 12px;
}

.tenant-info { display: flex; flex-direction: column; flex: 1; }
.tenant-name { color: #FFFFFF; font-size: 11.5px; font-weight: 600; }
.tenant-role { color: var(--sidebar-text); font-size: 10px; }
.tenant-chevron { color: var(--sidebar-text); font-size: 10px; }

/* --- Main Wrapper --- */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* --- Top Header --- */
.top-header {
    height: 58px;
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--card-border);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-secondary);
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-title h1 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.15;
}

.header-title p {
    font-size: 11px;
    color: var(--text-muted);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    padding: 5px 10px;
    width: 240px;
}

.search-icon { font-size: 12px; color: var(--text-muted); }
.search-bar input { border: none; background: transparent; outline: none; font-size: 11.5px; color: var(--text-primary); width: 100%; }
.search-shortcut { font-size: 9.5px; font-weight: 600; color: var(--text-muted); background: #FFFFFF; border: 1px solid #CBD5E1; padding: 1px 4px; border-radius: 4px; }

.header-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--card-border);
    background-color: #FFFFFF;
    color: var(--text-secondary);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
}

.badge-btn .badge {
    position: absolute;
    top: 2px; right: 2px;
    color: #FFFFFF;
    font-size: 9px;
    font-weight: 700;
    width: 15px; height: 15px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #FFFFFF;
}

.red-badge { background-color: var(--red-primary); }
.blue-badge { background-color: var(--blue-primary); }

.user-profile { display: flex; align-items: center; gap: 8px; cursor: pointer; min-height: 44px; }
.profile-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.profile-info { display: flex; flex-direction: column; }
.profile-name { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.profile-title { font-size: 10px; color: var(--text-muted); }
.profile-chevron { font-size: 10px; color: var(--text-muted); }

/* --- Content Container --- */
.content-container {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-header {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #F1F5F9;
}

.card-header h2 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
}

.header-link {
    font-size: 11px;
    color: var(--blue-primary);
    text-decoration: none;
    font-weight: 600;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.card-body {
    padding: 12px 14px;
    flex: 1;
}

.p-0 { padding: 0 !important; }

/* --- KPI Cards Grid --- */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.kpi-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 12px 14px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.kpi-top { display: flex; align-items: flex-start; justify-content: space-between; }
.kpi-number { font-size: 20px; font-weight: 700; color: var(--text-primary); line-height: 1.1; }
.kpi-number.text-red { color: var(--red-primary); }

.kpi-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.blue-theme { background-color: var(--blue-light); color: var(--blue-primary); }
.green-theme { background-color: var(--green-light); color: var(--green-primary); }
.orange-theme { background-color: var(--orange-light); color: var(--orange-primary); }
.purple-theme { background-color: var(--purple-light); color: var(--purple-primary); }
.red-theme { background-color: var(--red-light); color: var(--red-primary); }

.kpi-body { margin-top: 8px; }
.kpi-title { font-size: 12px; font-weight: 600; color: var(--text-primary); display: block; }
.kpi-subtext { font-size: 10.5px; color: var(--text-muted); margin-top: 1px; }

.kpi-progress-wrap { margin-top: 3px; }
.kpi-progress-info { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-muted); margin-bottom: 2px; }
.badge-percent { font-weight: 700; color: var(--blue-primary); }
.kpi-progress-bar { width: 100%; height: 4.5px; background-color: #E2E8F0; border-radius: 10px; overflow: hidden; }
.kpi-progress-fill { height: 100%; background-color: var(--blue-primary); border-radius: 10px; }

/* --- Revenue Chart & Side Panels --- */
.charts-row {
    display: grid;
    grid-template-columns: 2.3fr 1fr;
    gap: 14px;
}

.chart-card-large { min-height: 360px; }
.chart-title-box h2 { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.sub-desc { font-size: 10.5px; color: var(--text-muted); }
.chart-header-actions { display: flex; align-items: center; gap: 12px; }
.custom-legend-row { display: flex; align-items: center; gap: 10px; }
.legend-chip { display: flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 500; color: var(--text-secondary); }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; }
.legend-chip.blue .chip-dot { background-color: var(--blue-primary); }
.legend-chip.green .chip-dot { background-color: var(--green-primary); }
.legend-chip.orange .chip-dot { background-color: var(--orange-primary); }

.select-pill { position: relative; display: flex; align-items: center; }
.year-select { appearance: none; background-color: #F1F5F9; border: 1px solid var(--card-border); border-radius: var(--radius-sm); padding: 3px 20px 3px 8px; font-size: 11px; font-weight: 600; color: var(--text-primary); cursor: pointer; min-height: 36px; }
.select-pill i { position: absolute; right: 6px; font-size: 8px; color: var(--text-muted); pointer-events: none; }

.chart-summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.summary-card {
    background-color: #F8FAFC;
    border: 1px solid #F1F5F9;
    border-radius: var(--radius-md);
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
}

.sum-label { font-size: 10px; color: var(--text-muted); }
.sum-val { font-size: 13px; font-weight: 700; margin-top: 1px; }

.blue-text { color: var(--blue-primary); }
.green-text { color: var(--green-primary); }
.orange-text { color: var(--orange-primary); }
.dark-text { color: var(--text-primary); }

.chart-canvas-container {
    position: relative;
    height: 250px;
    width: 100%;
}

/* Donut Panels */
.side-donuts-panel { display: flex; flex-direction: column; gap: 14px; }
.mini-donut-card { flex: 1; }
.donut-flex { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.donut-wrapper { position: relative; width: 72px; height: 72px; flex-shrink: 0; }

.donut-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex; flex-direction: column;
    line-height: 1;
}

.d-num { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.d-lbl { font-size: 8.5px; color: var(--text-muted); }

.donut-list { list-style: none; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.donut-list li { display: flex; align-items: center; font-size: 10.5px; }
.indicator { width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; }
.indicator.blue { background-color: var(--blue-primary); }
.indicator.green { background-color: var(--green-primary); }
.indicator.orange { background-color: var(--orange-primary); }
.indicator.pink { background-color: var(--pink-primary); }
.indicator.red { background-color: var(--red-primary); }
.donut-list .name { color: var(--text-secondary); flex: 1; }
.donut-list .percent { font-weight: 600; color: var(--text-primary); }

/* --- Activity & Tables Grids --- */
.activity-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.header-with-badge { display: flex; align-items: center; gap: 6px; }
.pill-count { background-color: var(--blue-light); color: var(--blue-primary); font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 8px; }

.timeline-container {
    position: relative;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 6px; top: 4px; bottom: 4px;
    width: 2px; background-color: #E2E8F0;
}

.timeline-item { position: relative; display: flex; align-items: flex-start; gap: 10px; }
.timeline-node { position: absolute; left: -18px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 9px; z-index: 1; }

.green-node { color: var(--green-primary); }
.orange-node { color: var(--orange-primary); }
.red-node { color: var(--red-primary); }
.grey-node { color: var(--text-muted); }

.timeline-content { flex: 1; background-color: #F8FAFC; border: 1px solid #F1F5F9; border-radius: var(--radius-sm); padding: 6px 10px; }
.t-head { display: flex; align-items: center; justify-content: space-between; }
.t-head h4 { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.t-tag { font-size: 9.5px; font-weight: 600; padding: 1px 6px; border-radius: 4px; }
.green-tag { background-color: var(--green-light); color: #047857; }
.orange-tag { background-color: var(--orange-light); color: #B45309; }
.red-tag { background-color: var(--red-light); color: #DC2626; }
.grey-tag { background-color: #F1F5F9; color: var(--text-secondary); }
.t-desc { font-size: 10.5px; color: var(--text-secondary); margin-top: 1px; }

/* WhatsApp Chat UI */
.chat-header { background-color: #075E54; color: #FFFFFF; border-bottom: none; }
.chat-header h2 { color: #FFFFFF; }
.chat-header .header-link { color: #25D366; }
.chat-header-title { display: flex; align-items: center; gap: 8px; }
.wa-icon { width: 28px; height: 28px; background-color: rgba(255, 255, 255, 0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #25D366; }
.online-status { font-size: 10px; color: rgba(255, 255, 255, 0.8); display: block; }

.chat-list { display: flex; flex-direction: column; }
.chat-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid #F1F5F9; cursor: pointer; min-height: 44px; }
.chat-item.unread { background-color: #F0FDF4; }

.avatar-wrap { position: relative; flex-shrink: 0; }
.chat-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.status-dot { position: absolute; bottom: 0; right: 0; width: 9px; height: 9px; border-radius: 50%; border: 2px solid #FFFFFF; }
.status-dot.online { background-color: #25D366; }
.status-dot.offline { background-color: #CBD5E1; }

.chat-content { flex: 1; min-width: 0; }
.chat-top { display: flex; align-items: center; justify-content: space-between; }
.chat-name { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.chat-time { font-size: 10px; color: var(--text-muted); }
.chat-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 1px; }
.chat-msg { font-size: 11px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 6px; }
.chat-badge { background-color: #25D366; color: #FFFFFF; font-size: 9.5px; font-weight: 700; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.read-check { font-size: 10px; color: #34B7F1; }

.chat-footer-action { padding: 8px 12px; background-color: #F8FAFC; border-top: 1px solid #F1F5F9; }
.btn-whatsapp-style { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 10px; background-color: #25D366; border-radius: var(--radius-md); color: #FFFFFF; font-size: 12px; font-weight: 600; text-decoration: none; min-height: 44px; }

/* Tables Grid */
.tables-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.header-title-icon { display: flex; align-items: center; gap: 6px; }
.header-title-icon i { font-size: 14px; }

.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 11.5px; }
.data-table th { background-color: #F8FAFC; color: var(--text-muted); font-weight: 600; font-size: 10px; text-transform: uppercase; letter-spacing: 0.03em; padding: 6px 12px; border-bottom: 1px solid #F1F5F9; }
.data-table td { padding: 8px 12px; border-bottom: 1px solid #F1F5F9; color: var(--text-secondary); min-height: 44px; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background-color: #F8FAFC; }

.font-bold { font-weight: 600; color: var(--text-primary); }
.text-muted { color: var(--text-muted); }
.text-green { color: var(--green-primary); }
.text-red { color: var(--red-primary); }
.text-orange { color: var(--orange-primary); }
.text-blue { color: var(--blue-primary); }

.status-pill { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 10px; display: inline-block; }
.status-pill.green { background-color: #DCFCE7; color: #15803D; }
.status-pill.red { background-color: #FEE2E2; color: #B91C1C; }
.status-pill.orange { background-color: #FEF3C7; color: #B45309; }
.status-pill.blue { background-color: #DBEAFE; color: #1D4ED8; }
.status-pill.grey { background-color: #F1F5F9; color: #475569; }

.badge-tag { font-size: 9.5px; font-weight: 600; padding: 1px 5px; border-radius: 4px; }
.badge-tag.red { background-color: #FEE2E2; color: #B91C1C; }
.badge-tag.grey { background-color: #F1F5F9; color: #475569; }

/* ==========================================================================
   MOBILE NATIVE ARCHITECTURE (390x844 iPhone / Mobile View)
   ========================================================================== */
@media (max-width: 768px) {
    /* Slide-over Drawer Sidebar */
    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 260px;
        height: 100vh;
        z-index: 100;
        transition: left 0.25s ease-in-out;
        box-shadow: 4px 0 24px rgba(0,0,0,0.3);
    }

    .sidebar.active {
        left: 0;
    }

    /* Top Header for Mobile */
    .top-header {
        padding: 0 14px;
        height: 56px;
    }

    .search-bar {
        display: none; /* Mobile search toggle */
    }

    .profile-info {
        display: none; /* Hide profile name text on small screens */
    }

    .header-title p {
        display: none;
    }

    .header-title h1 {
        font-size: 16px;
    }

    .content-container {
        padding: 12px;
        gap: 12px;
    }

    /* 2-Column KPI Grid for Mobile as Requested */
    .kpi-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .kpi-card:last-child {
        grid-column: span 2; /* 5th card spans full width */
    }

    .kpi-number {
        font-size: 18px;
    }

    /* Single Column Stacks for Charts & Grids */
    .charts-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .chart-header-actions {
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
    }

    .custom-legend-row {
        flex-wrap: wrap;
    }

    .chart-summary-cards {
        grid-template-columns: repeat(2, 1fr); /* 2x2 summary grid on mobile */
        gap: 8px;
    }

    .chart-canvas-container {
        height: 220px;
    }

    .activity-row, .tables-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Mobile Table Scroll / Card View */
    .card-body.p-0 {
        overflow-x: auto;
    }

    .data-table {
        min-width: 320px;
    }
}

/* ==================================================
   GLOBAL PINK SCROLLBAR THEME (ALL PAGES & ELEMENTS)
   ================================================== */

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #e91e63 #f2f2f2;
}

/* Chrome - Edge - Safari */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f2f2f2;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb {
    background: #e91e63;
    border-radius: 20px;
    border: 2px solid #f2f2f2;
}

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

::-webkit-scrollbar-corner {
    background: #f2f2f2;
}


/* ==========================================================================
   ULAWEB NASIL GELİŞTİRİLİYOR? — SIDEBAR DEV CREDITS
   ========================================================================== */
.sidebar, .basit-sidebar {
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: thin;
}

.sidebar-dev-credits-wrapper {
    padding: 10px 12px 14px;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.sidebar-dev-credits {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    width: 100%;
}

.sidebar-dev-credits:hover {
    border-color: rgba(236, 72, 153, 0.4);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.dev-credits-toggle-btn {
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    color: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
    gap: 8px;
    transition: background 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.dev-credits-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.dev-credits-btn-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 700;
    color: #F8FAFC;
    line-height: 1.3;
}

.dev-credits-btn-icon {
    color: var(--pink-accent, #EC4899);
    font-size: 13px;
    flex-shrink: 0;
}

.dev-credits-arrow {
    font-size: 10.5px;
    color: #94A3B8;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.sidebar-dev-credits.open .dev-credits-arrow {
    transform: rotate(180deg);
    color: var(--pink-accent, #EC4899);
}

.dev-credits-collapsible-content {
    padding: 0 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 380px;
    overflow-y: auto;
    overflow-x: hidden;
}

.dev-credits-collapsible-content::-webkit-scrollbar {
    width: 4px;
}
.dev-credits-collapsible-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.dev-credits-card {
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

.dev-credits-person-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 2px;
}

.dev-credits-lead-name {
    font-size: 11.5px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 0.3px;
}

.dev-credits-tel-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #38BDF8;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s ease;
    margin: 2px 0;
}

.dev-credits-tel-link:hover {
    color: #7DD3FC;
    text-decoration: underline;
}

.dev-credits-ai-name {
    font-size: 11.5px;
    font-weight: 800;
    color: #38BDF8;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.dev-credits-lead-role,
.dev-credits-ai-role {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--pink-accent, #EC4899);
    margin-bottom: 3px;
    line-height: 1.3;
}

.dev-credits-lead-desc,
.dev-credits-ai-desc {
    font-size: 10.5px;
    color: #94A3B8;
    line-height: 1.45;
    margin: 0;
}

.dev-credits-highlight-footer {
    font-size: 10.5px;
    font-weight: 700;
    color: #F8FAFC;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(14, 165, 233, 0.15) 100%);
    border: 1px solid rgba(236, 72, 153, 0.25);
    border-radius: 6px;
    padding: 8px 10px;
    text-align: center;
    line-height: 1.4;
    margin-top: 2px;
}


/* ==========================================================================
   6 ANA MODÜL KARTLARI (Mülkler, Aidatlar, Kiracılar, Mesajlar, Arşiv, Kasa)
   ========================================================================== */
.main-dashboard-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.main-module-card {
    background: #FFFFFF;
    border: 1px solid var(--card-border, #E2E8F0);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.main-module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(236,72,153,0.1);
    border-color: #EC4899;
}

.module-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.module-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.module-card-icon.blue-theme { background: #EFF6FF; color: #2563EB; }
.module-card-icon.pink-theme { background: #FDF2F8; color: #EC4899; }
.module-card-icon.green-theme { background: #F0FDF4; color: #16A34A; }
.module-card-icon.purple-theme { background: #FAF5FF; color: #9333EA; }
.module-card-icon.orange-theme { background: #FFF7ED; color: #EA580C; }
.module-card-icon.emerald-theme { background: #ECFDF5; color: #059669; }

.module-card-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    background: #F1F5F9;
    color: #475569;
}

.module-card-badge.pink { background: #FDF2F8; color: #EC4899; }
.module-card-badge.green { background: #F0FDF4; color: #16A34A; }
.module-card-badge.purple { background: #FAF5FF; color: #9333EA; }
.module-card-badge.orange { background: #FFF7ED; color: #EA580C; }
.module-card-badge.emerald { background: #ECFDF5; color: #059669; }

.module-card-body {
    flex: 1;
}

.module-card-title {
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: 0.4px;
    margin: 0 0 4px 0;
}

.module-card-counter {
    font-size: 19px;
    font-weight: 800;
    color: #EC4899;
    margin-bottom: 10px;
    line-height: 1.2;
}

.module-card-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.module-card-features li {
    font-size: 11.5px;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 6px;
}

.module-card-features li i {
    font-size: 10px;
    color: #10B981;
}

.module-kasa-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 6px;
}

.kasa-stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: #F8FAFC;
    border-radius: 8px;
    border: 1px solid #F1F5F9;
    font-size: 12px;
}

.kasa-stat-item .stat-label {
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}

.kasa-stat-item .stat-val {
    font-size: 13px;
    font-weight: 800;
}

.module-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    margin-top: 14px;
    border-top: 1px solid #F1F5F9;
    font-size: 12px;
    font-weight: 700;
    color: #EC4899;
    transition: transform 0.2s ease;
}

.main-module-card:hover .module-card-footer {
    transform: translateX(3px);
}

@media (max-width: 1024px) {
    .main-dashboard-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .main-dashboard-cards-grid {
        grid-template-columns: 1fr;
    }
}