:root {
    --primary: #4f46e5;
    --primary-light: #818cf8;
    --primary-dark: #3730a3;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --bg: #f1f5f9;
    --surface: #ffffff;
    --surface-hover: #f8fafc;
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius: 8px;
    --radius-lg: 12px;
    --sidebar-width: 260px;
    --topbar-height: 64px;
    --transition: 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

#app {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    transition: transform var(--transition);
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px 24px;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header i {
    color: var(--primary-light);
    font-size: 1.5rem;
}

.sidebar-nav {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.nav-item.active {
    background: var(--primary);
    color: #fff;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

/* Sidebar Accordion */
.nav-accordion {
    margin: 2px 0;
}

.nav-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: #94a3b8;
    cursor: pointer;
    border-radius: var(--radius);
    transition: all var(--transition);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    user-select: none;
}

.nav-accordion-header:hover {
    background: rgba(255,255,255,0.08);
    color: #cbd5e1;
}

.nav-accordion-header.open {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.accordion-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.accordion-left i {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.accordion-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-accordion-header.open .accordion-arrow {
    transform: rotate(180deg);
}

.nav-accordion-body {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding-left: 12px;
    overflow: hidden;
}

.nav-accordion-body.open {
    display: flex;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.top-bar {
    height: var(--topbar-height);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow);
}

.top-bar h2 {
    font-size: 1.25rem;
    font-weight: 600;
    flex: 1;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text);
    padding: 8px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification-bell {
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background var(--transition);
}

.notification-bell:hover {
    background: var(--bg);
}

.notification-bell .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.content-area {
    padding: 24px;
}

/* Cards */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.card-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
}

.stat-icon.blue { background: var(--info); }
.stat-icon.green { background: var(--success); }
.stat-icon.orange { background: var(--warning); }
.stat-icon.red { background: var(--danger); }
.stat-icon.purple { background: var(--primary); }

.stat-info h4 {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-info .stat-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    background: var(--bg);
    padding: 12px 16px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

tbody tr:hover {
    background: var(--surface-hover);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-success {
    background: var(--success);
    color: #fff;
}
.btn-success:hover { background: #059669; }

.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover { background: #dc2626; }

.btn-warning {
    background: var(--warning);
    color: #fff;
}
.btn-warning:hover { background: #d97706; }

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--border); }

.btn-sm {
    padding: 4px 10px;
    font-size: 0.8rem;
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.85rem;
}

.btn-icon.edit {
    background: #dbeafe;
    color: var(--info);
}
.btn-icon.edit:hover { background: #bfdbfe; }

.btn-icon.delete {
    background: #fee2e2;
    color: var(--danger);
}
.btn-icon.delete:hover { background: #fecaca; }

.btn-icon.view {
    background: #d1fae5;
    color: var(--success);
}
.btn-icon.view:hover { background: #a7f3d0; }

.action-buttons {
    display: flex;
    gap: 6px;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color var(--transition);
    background: var(--surface);
    color: var(--text);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal {
    background: var(--surface);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 4px;
    border-radius: 4px;
}
.btn-close:hover { color: var(--text); background: var(--bg); }

/* Badges / Tags */
.badge-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-secondary { background: #e2e8f0; color: #475569; }

/* Notification Panel */
.notification-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    height: 100vh;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    z-index: 250;
    display: flex;
    flex-direction: column;
}

.notification-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.notification-item {
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 8px;
    cursor: default;
}

.notification-item.urgent {
    border-color: var(--danger);
    background: #fef2f2;
}

.notification-item.warning {
    border-color: var(--warning);
    background: #fffbeb;
}

.notification-item .notif-title {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.notification-item .notif-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.notification-item .notif-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Alert Banner */
.alert-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 10px;
    color: #92400e;
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.alert-banner i { font-size: 1.1rem; }
.alert-banner .btn { white-space: nowrap; }

/* Toast */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 20px;
    border-radius: var(--radius);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease;
    max-width: 360px;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); }
.toast.info { background: var(--info); }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Filters */
.filters-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.filters-bar .form-control {
    width: auto;
    min-width: 180px;
}

.search-input {
    position: relative;
}

.search-input i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.search-input input {
    padding-left: 36px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 16px;
}

/* Dashboard charts area */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.dashboard-grid .card {
    min-height: 200px;
}

/* Dashboard list - alt alta tablolar */
.dashboard-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

/* Pagination - Sayfalama */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background: #eef2ff;
}

.pagination-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .menu-toggle {
        display: block;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .notification-panel {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .content-area {
        padding: 16px;
    }
}

/* Confirm dialog */
.confirm-dialog {
    text-align: center;
    padding: 20px;
}

.confirm-dialog i {
    font-size: 3rem;
    color: var(--warning);
    margin-bottom: 16px;
}

.confirm-dialog p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.confirm-dialog .confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Detail view */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.detail-item {
    padding: 8px 0;
}

.detail-item .detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.detail-item .detail-value {
    font-size: 0.95rem;
    color: var(--text);
    margin-top: 2px;
}

/* Due History Row - Yillik aidat satirlari */
.due-history-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.due-history-row .form-control {
    flex: 1;
}

.due-history-row .due-remove {
    flex-shrink: 0;
}

/* Section Divider - Form icindeki bolum ayirici */
.section-divider {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    padding: 8px 0;
    margin: 8px 0 16px;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section Title - Bolum basliklari */
.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

.section-title i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* Stats Pager - Sayfa gecis butonlari */
.stats-pager {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pager-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.pager-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: #eef2ff;
}

.pager-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.pager-btn i {
    font-size: 0.95rem;
}

.month-selector {
    display: flex;
    gap: 8px;
    margin-left: auto;
    align-items: center;
}

.month-selector .form-control {
    width: auto;
    min-width: 130px;
    padding: 8px 12px;
    font-weight: 500;
}

.month-selector #dashSite {
    min-width: 220px;
}

@media (max-width: 768px) {
    .stats-pager {
        flex-direction: column;
        align-items: stretch;
    }
    .month-selector {
        margin-left: 0;
    }
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 20px;
    gap: 4px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
    font-family: inherit;
}

.tab-btn:hover { color: var(--text); }
.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Summary list */
.summary-list {
    list-style: none;
}

.summary-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.summary-list li:last-child { border-bottom: none; }

.summary-list .label { color: var(--text-secondary); }
.summary-list .value { font-weight: 600; }

/* Dashboard Panels */
.dashboard-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    min-height: calc(100vh - var(--topbar-height) - 48px);
}

.dashboard-panel {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.panel-header {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
}

.panel-header.site-header {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%);
}

.panel-header.rent-header {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 50%, #2dd4bf 100%);
}

.panel-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.panel-title h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.panel-title span {
    font-size: 0.85rem;
    opacity: 0.85;
}

.panel-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.panel-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.panel-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.panel-stat:last-child {
    border-bottom: none;
}

.panel-stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.panel-stat-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.panel-stat-value.green { color: var(--success); }
.panel-stat-value.red { color: var(--danger); }
.panel-stat-value.orange { color: var(--warning); }

.panel-stat-sep {
    color: var(--text-muted);
    font-weight: 400;
}

.panel-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

/* Dashboard Tabs (Genel Bakis / Aylik Finansal) */
.dash-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.dash-tab-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.dash-tab-btn:hover {
    background: var(--bg);
    color: var(--text);
}
.dash-tab-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(74,108,247,0.3);
}

/* Panel Tabs */
.panel-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    background: var(--bg);
}

.panel-tab-btn {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.panel-tab-btn:hover { color: var(--text); background: var(--surface); }
.panel-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--surface);
}

/* Panel Filters */
.panel-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.panel-filters .form-control-sm {
    padding: 7px 10px;
    font-size: 0.8rem;
    min-width: 0;
    flex: 1;
}

/* Panel Mini Tables */
.panel-tables {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.panel-mini-table {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.panel-mini-title {
    padding: 8px 12px;
    background: var(--bg);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-mini-table table {
    width: 100%;
    margin: 0;
}

.panel-mini-table thead th {
    padding: 6px 12px;
    font-size: 0.7rem;
}

.panel-mini-table tbody td {
    padding: 8px 12px;
    font-size: 0.8rem;
}

.panel-mini-empty {
    padding: 16px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Clickable panel */
.clickable-panel {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.clickable-panel:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Full width dashboard panel */
.dashboard-panel.full-width {
    max-width: 100%;
}

/* Dashboard tables grid (aylik finansal alt tablolar) */
.dashboard-tables-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 12px;
    align-items: start;
}
.dashboard-tables-grid .card {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .dashboard-panels {
        grid-template-columns: 1fr;
    }
    .dashboard-tables-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .panel-actions {
        flex-direction: column;
    }
    .panel-actions .btn {
        justify-content: center;
    }
    .panel-filters {
        flex-direction: column;
    }
}
