/* ============================================
   ŞANTİYE YÖNETİM SİSTEMİ - CSS
   Modern, Profesyonel, Kurumsal Tasarım
   ============================================ */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1F2937;
    --accent-color: #3B82F6;
    --bg-color: #F3F4F6;
    --text-color: #111827;
    --card-bg: #FFFFFF;
    --border-color: #E5E7EB;
    --success-color: #10B981;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 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);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

/* ============================================
   UTILITIES (Bootstrap-like minimal helpers)
   ============================================ */
.container-fluid {
    padding: 24px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -8px;
    margin-right: -8px;
}

[class^="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.d-flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-4 {
    margin-bottom: 24px;
}

.gap-2 {
    gap: 8px;
}

.h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
}

.text-muted {
    color: #6B7280;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    background: var(--card-bg);
    color: var(--text-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.alert {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
}

.alert-info {
    border-color: rgba(59, 130, 246, 0.25);
    background: rgba(59, 130, 246, 0.06);
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .container-fluid {
        padding: 16px;
    }
}

/* ============================================
   AUTH PAGES (Login)
   ============================================ */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #374151 100%);
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo svg {
    margin: 0 auto 16px;
}

.auth-logo h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    background: var(--card-bg);
    color: var(--text-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background: #2563EB;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--border-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: #D1D5DB;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #DC2626;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* ============================================
   APP LAYOUT
   ============================================ */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--primary-color);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.sidebar-logo-img {
    height: 64px;
    width: auto;
    transition: height 0.2s ease;
}

.sidebar-collapsed .sidebar-logo {
    gap: 0;
    justify-content: center;
}

.sidebar-collapsed .sidebar-logo-img {
    height: 32px;
}

.sidebar-pin-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s, transform 0.2s;
}

.sidebar-pin-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-pin-toggle svg {
    opacity: 0.85;
}

.sidebar-pinned .sidebar-pin-toggle svg {
    opacity: 1;
    transform: rotate(-20deg);
}

.sidebar-toggle {
    display: block;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-item .nav-emoji {
    flex: 0 0 auto;
    justify-content: flex-start !important;
    width: auto !important;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item.active {
    background: rgba(59, 130, 246, 0.2);
    color: white;
    border-left-color: var(--accent-color);
}

.nav-item svg {
    flex-shrink: 0;
}

.nav-item span {
    /*flex: 1;*/
}

/* Nav Group (Alt Menü) */
.nav-group {
    position: relative;
}

.nav-item-parent {
    cursor: pointer;
    user-select: none;
}

.nav-item-parent .submenu-arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.nav-group.active .nav-item-parent .submenu-arrow {
    transform: rotate(90deg);
}

.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
}

.nav-submenu.open {
    max-height: 500px;
}

.nav-item-child {
    font-size: 14px;
}

.nav-item-child:hover {
    background: rgba(255, 255, 255, 0.15);
}

.nav-item-child.active {
    background: rgba(59, 130, 246, 0.2);
    color: white;
    border-left-color: var(--accent-color);
}

.badge-soon {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
    margin-left: auto;
}

/* Sidebar Collapsed State */
.sidebar-collapsed .sidebar {
    width: 80px;
}

.sidebar-collapsed .sidebar-logo span {
    display: none;
}

.sidebar-collapsed .nav-item span {
    display: none;
}

.sidebar-collapsed .nav-item {
    justify-content: center;
    padding: 12px;
    position: relative;
}

.sidebar-collapsed .nav-item:hover::after {
    content: attr(data-title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 10px;
    padding: 8px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 14px;
    z-index: 1001;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.sidebar-collapsed .nav-item-child {
    padding-left: 12px !important;
}

.sidebar-collapsed .submenu-arrow {
    display: none;
}

.sidebar-collapsed .nav-submenu {
    display: none;
}

.sidebar-collapsed .badge-soon {
    display: none;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.sidebar-collapsed .main-content {
    margin-left: 80px;
}

/* Top Navbar */
.top-navbar {
    background: var(--card-bg);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-color);
}

.sidebar-overlay {
    display: none;
}

.page-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
}

    .navbar-right {
        display: flex;
        align-items: center;
        gap: 24px;
        flex-wrap: wrap;
    }

.santiye-selector-wrapper {
    margin-right: 16px;
    position: relative;
}

.santiye-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
}

.santiye-selector:hover {
    background: #E5E7EB;
    border-color: var(--accent-color);
}

.santiye-selector svg:first-child {
    color: var(--accent-color);
    flex-shrink: 0;
}

.santiye-selector svg:last-child {
    flex-shrink: 0;
}

.santiye-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    min-width: 240px;
    max-width: 320px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    padding: 8px;
}

.santiye-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-size: 14px;
    color: var(--text-color);
    position: relative;
}

.santiye-dropdown-item:hover {
    background: var(--bg-color);
}

.santiye-dropdown-item.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    font-weight: 500;
}

.santiye-dropdown-item svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.santiye-dropdown-item span {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.santiye-dropdown-item small {
    font-size: 12px;
    color: #6B7280;
    margin-top: 2px;
}

.exchange-rates {
    display: flex;
    gap: 20px;
    align-items: center;
}

.rate-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.rate-label {
    color: #6B7280;
    font-weight: 500;
}

.rate-value {
    color: var(--accent-color);
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-menu-btn:hover {
    background: var(--bg-color);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.user-menu-dropdown.show {
    display: flex;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--bg-color);
}

/* Page Content */
.page-content {
    flex: 1;
    padding: 24px;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

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

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

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-title svg {
    color: var(--accent-color);
}

/* ============================================
   STATS CARDS (Dashboard)
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

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

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.stat-label {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
}

.stat-change {
    font-size: 12px;
    margin-top: 8px;
    color: var(--success-color);
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.stat-change-positive {
    color: var(--success-color);
}

.stat-change-negative {
    color: var(--danger-color);
}

/* Modern Stat Card Variants */
.stat-card-primary {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
}

.stat-card-primary .stat-label,
.stat-card-primary .stat-value,
.stat-card-primary .stat-change {
    color: white;
}

.stat-card-primary .stat-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.stat-card-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}

.stat-card-success .stat-label,
.stat-card-success .stat-value,
.stat-card-success .stat-change {
    color: white;
}

.stat-card-success .stat-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.stat-card-info {
    background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
    color: white;
}

.stat-card-info .stat-label,
.stat-card-info .stat-value,
.stat-card-info .stat-change {
    color: white;
}

.stat-card-info .stat-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.stat-card-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
}

.stat-card-warning .stat-label,
.stat-card-warning .stat-value,
.stat-card-warning .stat-change {
    color: white;
}

.stat-card-warning .stat-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.stat-card-danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
}

.stat-card-danger .stat-label,
.stat-card-danger .stat-value,
.stat-card-danger .stat-change {
    color: white;
}

.stat-card-danger .stat-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.stat-icon-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.stat-change-negative {
    color: var(--danger-color);
}

.stat-change-warning {
    color: var(--warning-color);
}

.financial-summary {
    margin-bottom: 32px;
}

/* ============================================
   TABLES
   ============================================ */
.table-container {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 16px;
}

.table-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-box input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
}

.search-box svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6B7280;
    width: 18px;
    height: 18px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background: var(--bg-color);
}

.table th {
    padding: 12px 24px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
}

.table tbody tr {
    transition: background 0.2s;
}

.table tbody tr:hover {
    background: var(--bg-color);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal {
    background: var(--card-bg);
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: transform 0.3s;
}

.modal-overlay.show .modal {
    transform: scale(1);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #6B7280;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-color);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* ============================================
   CHARTS
   ============================================ */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.chart-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

.chart-container {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-container canvas {
    max-width: 100%;
    height: auto;
    cursor: pointer;
}

.chart-tooltip {
    position: absolute;
    display: none;
    background: rgba(31, 41, 55, 0.95);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    min-width: 150px;
    backdrop-filter: blur(8px);
}

.tooltip-title {
    font-weight: 600;
    margin-bottom: 6px;
    color: white;
    font-size: 14px;
}

.tooltip-value {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.tooltip-percentage {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   CHART NOTIFICATION
   ============================================ */
.chart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.chart-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-content {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 320px;
    max-width: 400px;
    border-left: 4px solid var(--accent-color);
}

.notification-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-text {
    flex: 1;
}

.notification-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
}

.notification-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #6B7280;
}

.notification-details strong {
    color: var(--text-color);
    font-weight: 600;
}

.notification-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #6B7280;
    transition: color 0.2s;
    flex-shrink: 0;
}

.notification-close:hover {
    color: var(--text-color);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: block;
        position: fixed;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(17, 24, 39, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        z-index: 900;
    }

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

    body.sidebar-open {
        overflow: hidden;
        touch-action: none;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Mobilde collapsed state'i devre dışı bırak */
    .sidebar-collapsed .sidebar {
        width: 260px;
    }

    .sidebar-collapsed .sidebar-logo span,
    .sidebar-collapsed .nav-item span {
        display: block;
    }

    .sidebar-collapsed .nav-item {
        justify-content: flex-start;
        padding: 12px 20px;
    }

    .sidebar-collapsed .submenu-arrow {
        display: block;
    }

    .sidebar-collapsed .nav-submenu {
        display: block;
    }

    .exchange-rates {
        display: none;
    }

    .navbar-right {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .santiye-selector-wrapper {
        margin-right: 0;
        width: 100%;
        order: -1;
    }

    .santiye-selector {
        width: 100%;
        justify-content: space-between;
    }

    .santiye-list {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .table-container {
        overflow-x: auto;
    }

    .table {
        min-width: 720px;
    }

    .table-header {
        flex-direction: column;
        align-items: stretch;
    }

    .table-actions {
        width: 100%;
    }

    .search-box {
        width: 100%;
    }

    /* Dashboard Header Mobile */
    .dashboard-header {
        padding: 24px;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .welcome-title {
        font-size: 24px;
    }

    .header-stats {
        width: 100%;
        justify-content: space-between;
    }

    .header-stat-item {
        text-align: left;
        flex: 1;
    }

    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .chart-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .chart-container {
        height: 280px;
    }

    .legend-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .legend-values {
        width: 100%;
        justify-content: space-between;
    }

    .chart-notification {
        right: 10px;
        top: 10px;
    }

    .notification-content {
        min-width: 280px;
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 24px;
    }

    .page-content {
        padding: 16px;
    }

    .card {
        padding: 16px;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gap-2 {
    gap: 16px;
}

.gap-3 {
    gap: 24px;
}

.hidden {
    display: none;
}

/* ============================================
   DASHBOARD HEADER
   ============================================ */
.dashboard-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #374151 100%);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    color: white;
    box-shadow: var(--shadow-lg);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.welcome-section {
    flex: 1;
}

.welcome-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.welcome-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.header-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.header-stat-item {
    text-align: right;
}

.header-stat-label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}

.header-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

/* ============================================
   QUICK ACTIONS
   ============================================ */
.quick-actions {
    margin-bottom: 32px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.action-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
}

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

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.action-icon-primary {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

.action-icon-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.action-icon-info {
    background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
}

.action-icon-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.action-label {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* ============================================
   CHART IMPROVEMENTS
   ============================================ */
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.chart-legend {
    display: flex;
    gap: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6B7280;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.chart-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.total-label {
    font-size: 12px;
    color: #6B7280;
}

.total-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
}

.chart-legend-list {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.legend-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legend-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.legend-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-text {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

.legend-values {
    display: flex;
    align-items: center;
    gap: 16px;
}

.legend-amount {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    min-width: 100px;
    text-align: right;
}

.legend-percentage {
    font-size: 13px;
    color: #6B7280;
    min-width: 50px;
    text-align: right;
}

/* ============================================
   TABLE IMPROVEMENTS
   ============================================ */
.table-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.date-day {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
}

.date-month {
    font-size: 12px;
    color: #6B7280;
    text-transform: uppercase;
}

.table-description {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.table-description strong {
    color: var(--text-color);
    font-weight: 600;
}

.description-sub {
    font-size: 12px;
    color: #6B7280;
}

.text-success {
    color: var(--success-color);
}

.text-danger {
    color: var(--danger-color);
}

/* ============================================
   ŞANTIYE SELECTION MODAL
   ============================================ */
.santiye-selection-modal {
    padding: 8px;
}

.santiye-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    max-height: 500px;
    overflow-y: auto;
    padding: 8px;
}

.santiye-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s;
    cursor: pointer;
}

.santiye-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.santiye-card-content {
    margin-bottom: 16px;
}

.santiye-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.santiye-card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    flex: 1;
}

.santiye-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 12px;
}

.santiye-status-aktif {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.santiye-status-beklemede {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.santiye-status-pasif {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.santiye-location {
    font-size: 13px;
    color: #6B7280;
    margin: 0;
}

.santiye-card .btn {
    width: 100%;
}

.santiye-info-banner {
    background: var(--bg-color);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6B7280;
    border-left: 3px solid var(--accent-color);
}

.santiye-info-banner svg {
    color: var(--accent-color);
    flex-shrink: 0;
}

.santiye-info-banner strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Smooth transitions */
* {
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

/* ============================================
   FOOTER
   ============================================ */
.app-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 20px 24px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-left {
    flex: 1;
}

.footer-copyright {
    margin: 0;
    font-size: 14px;
    color: #6B7280;
}

.footer-copyright strong {
    color: var(--text-color);
    font-weight: 600;
}

.footer-right {
    text-align: right;
}

.footer-developer {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #6B7280;
}

.footer-developer strong {
    color: var(--text-color);
    font-weight: 600;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.footer-link:hover {
    color: #2563EB;
    transform: translateY(-1px);
}

.footer-link svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-right {
        text-align: center;
    }
}

/* ============================================
   NOTIFICATION MENU
   ============================================ */
.notification-menu {
    position: relative;
}

.notification-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-color);
}

.notification-btn:hover {
    background: var(--bg-color);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger-color);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45);
    display: none;
}

.notification-badge.show {
    display: block;
    animation: notificationPulse 1.15s ease-in-out infinite;
}

@keyframes notificationPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.50);
        opacity: 1;
    }
    50% {
        transform: scale(1.12);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
        opacity: 0.92;
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
        opacity: 1;
    }
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 380px;
    max-width: 90vw;
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
}

.notification-dropdown.show {
    display: flex;
}

.notification-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.btn-link {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}

.btn-link:hover {
    color: #2563EB;
    text-decoration: underline;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.notification-item:hover {
    background: var(--bg-color);
}

.notification-item.unread {
    background: rgba(59, 130, 246, 0.05);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-color);
}

.notification-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 6px;
    gap: 12px;
}

.notification-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    flex: 1;
}

.notification-item-time {
    font-size: 11px;
    color: #6B7280;
    flex-shrink: 0;
}

.notification-item-message {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.5;
}

.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: #6B7280;
}

.notification-empty svg {
    margin: 0 auto 16px;
    color: #D1D5DB;
}

.notification-empty p {
    margin: 0;
    font-size: 14px;
}

.notification-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

@media (max-width: 768px) {
    .notification-dropdown {
        width: 320px;
    }
}

