/* Kasa Defteri - Kurumsal Sıcak Tonlar */
/* Border-radius kullanılmıyor - Köşeler Keskin */

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

:root {
    /* Kurumsal Koyu Arkaplan - Sıcak tonlarla uyumlu */
    --bg-dark: #1a1412;          /* Çok koyu kahverengi */
    --bg-darker: #0f0d0c;        /* En koyu */
    --bg-card: #2d2421;          /* Kartlar - warm dark */
    --bg-hover: #3d342f;         /* Hover - hafif açık */
    
    /* Primary - Turuncu/Bakır tonlar */
    --primary: #ea580c;          /* Ana turuncu */
    --primary-dark: #c2410c;     /* Koyu turuncu */
    --primary-light: #f97316;    /* Açık turuncu */
    
    /* Secondary - Sıcak gri */
    --secondary: #44403c;        /* İkincil */
    
    /* Yazılar - Warm tints */
    --text-primary: #fafaf9;     /* Ana yazı - beyaz */
    --text-secondary: #e7e5e4;   /* Alt yazı */
    --text-muted: #a8a29e;       /* Soluk - warm gray */
    
    /* Border */
    --border: #44403c;           /* Çizgiler */
    
    /* Durum renkleri - Sıcak uyumlu */
    --success: #84cc16;          /* Lime yeşil */
    --danger: #dc2626;           /* Kırmızı */
    --warning: #f59e0b;          /* Amber */
    --info: #fb923c;             /* Turuncu */
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Login & Register Container */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 50%, #1f1713 100%);
}

.auth-box {
    background: var(--bg-card);
    padding: 50px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
    border: 2px solid var(--border);
    border-top: 4px solid var(--primary);
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.auth-header h1 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
}

/* Form Stiller */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-darker);
    border: 2px solid var(--border);
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
    font-weight: 400;
}

.form-input:focus {
    border-color: var(--primary);
    background: var(--bg-dark);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
    font-weight: 300;
    font-family: 'Inter', sans-serif;
}

/* Butonlar */
.btn {
    padding: 14px 28px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    width: 100%;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(234, 88, 12, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Alert Messages */
.alert {
    padding: 14px 18px;
    margin-bottom: 24px;
    border: 2px solid transparent;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: rgba(132, 204, 22, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(220, 38, 38, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

.alert-info {
    background: rgba(251, 146, 60, 0.1);
    border-color: var(--info);
    color: var(--info);
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

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

.auth-footer a:hover {
    color: var(--primary-light);
}

/* Buton olarak kullanılan linkler için özel stil */
.auth-footer a.btn,
a.btn-primary {
    color: white !important;
}

.auth-footer a.btn:hover,
a.btn-primary:hover {
    color: white !important;
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-box {
        padding: 35px 25px;
    }
    
    .auth-header h1 {
        font-size: 26px;
    }
}

/* Loading State */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Link Stili */
a {
    color: var(--primary);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-light);
}

/* Şifremi Unuttum Link */
.forgot-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.forgot-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Şifre Göster/Gizle Toggle */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.password-toggle:hover {
    opacity: 1;
}

.password-toggle svg {
    display: block;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    stroke: var(--text-muted);
    transition: all 0.2s ease;
}

.password-toggle:hover svg {
    color: var(--primary);
    stroke: var(--primary);
}

/* ========================================
   DASHBOARD LAYOUT
   ======================================== */

/* Dashboard Body */
.dashboard-body {
    display: flex;
    min-height: 100vh;
    max-height: 100vh;
    background: var(--bg-darker);
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--bg-dark);
    border-right: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-header {
    padding: 30px 25px;
    border-bottom: 2px solid var(--border);
}

.sidebar-header h2 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.user-info {
    background: var(--bg-card);
    padding: 15px;
    border: 1px solid var(--border);
}

.user-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.user-phone {
    font-size: 13px;
    color: var(--text-muted);
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    font-size: 15px;
    font-weight: 500;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--bg-card);
    color: var(--primary);
    border-left-color: var(--primary);
}

.nav-icon {
    font-size: 20px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.nav-text {
    flex: 1;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px 0;
    border-top: 2px solid var(--border);
}

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

.logout-btn:hover {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-y: auto;
}

.content-header {
    background: var(--bg-dark);
    padding: 25px 35px;
    border-bottom: 2px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.content-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    gap: 15px;
}

.content-body {
    flex: 1;
    padding: 35px;
    background: var(--bg-darker);
    overflow-y: auto;
}

/* Empty State */
.empty-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    background: var(--bg-card);
    border: 2px dashed var(--border);
}

.empty-state p {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 968px) {
    .sidebar {
        width: 70px;
    }
    
    .sidebar-header h2,
    .user-info,
    .nav-text {
        display: none;
    }
    
    .nav-item {
        justify-content: center;
        padding: 15px 10px;
    }
    
    .nav-icon {
        margin-right: 0;
    }
    
    .main-content {
        margin-left: 70px;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content-header {
        padding: 20px;
        position: relative;
    }
    
    .content-body {
        padding: 20px;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    padding: 24px;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.1);
}

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

.stat-card-title {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-card-icon {
    font-size: 24px;
}

.stat-card-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.stat-card-change {
    font-size: 13px;
    font-weight: 500;
}

.stat-card-change.positive {
    color: #22c55e;
}

.stat-card-change.negative {
    color: #ef4444;
}

/* Card */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

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

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

/* Table */
.table-container {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

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

table thead th {
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s;
}

table tbody tr:hover {
    background: rgba(234, 88, 12, 0.05);
}

table tbody td {
    padding: 16px;
    font-size: 14px;
    color: var(--text-primary);
}

.table-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.badge-warning {
    background: rgba(234, 88, 12, 0.15);
    color: var(--primary);
}

.badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

/* Tarih seçici ikonunu beyaz yap */
.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
    background: var(--bg-darker);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

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

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

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

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

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Action Buttons */
.btn-group {
    display: flex;
    gap: 8px;
}

.btn-icon {
    padding: 8px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-icon.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
}

.btn-secondary {
    background: var(--bg-dark);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

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

/* Filters */
.filters {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 20px;
    margin-bottom: 20px;
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    align-items: end;
}

/* Alert */
.alert {
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 1px solid;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
    color: #22c55e;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-row {
        grid-template-columns: 1fr;
    }
    
    .content-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .header-actions {
        width: 100%;
    }
    
    .header-actions .btn {
        width: 100%;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   CATEGORIES PAGE
   ======================================== */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.category-item:hover {
    background: var(--bg-hover);
    transform: translateX(4px);
}

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

.category-icon {
    font-size: 24px;
    line-height: 1;
}

.category-name {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-primary);
}

.category-actions {
    display: flex;
    gap: 8px;
}

/* Color Input */
input[type="color"] {
    width: 100%;
    height: 48px;
    padding: 4px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    cursor: pointer;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
}

/* ========================================
   REPORTS & STATS
   ======================================== */

.report-list-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.report-list-item:last-child {
    border-bottom: none;
}

.report-list-value {
    font-weight: 600;
    color: var(--text-primary);
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

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

.chart-container canvas {
    max-height: 100%;
}

.info-box {
    padding: 16px;
    background: var(--bg-dark);
    border-left: 4px solid var(--border);
}

.info-box-title {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.info-box-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.info-box.success {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--success);
}

.info-box.success .info-box-title {
    color: #166534;
}

.info-box.success .info-box-value {
    color: var(--success);
}

.info-box.danger {
    background: rgba(220, 38, 38, 0.1);
    border-color: var(--danger);
}

.info-box.danger .info-box-title {
    color: #991b1b;
}

.info-box.danger .info-box-value {
    color: var(--danger);
}

.info-box.neutral {
    background: rgba(156, 163, 175, 0.1);
    border-color: #9ca3af;
}

.info-box.neutral .info-box-title {
    color: #6b7280;
}

.info-box.neutral .info-box-value {
    color: #9ca3af;
}

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

/* ========================================
   TEXT UTILITIES
   ======================================== */

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

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

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

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

/* ========================================
   RESPONSIVE - MOBILE FIRST
   ======================================== */

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-item {
        padding: 12px;
    }
    
    .category-icon {
        font-size: 20px;
    }
    
    .category-name {
        font-size: 14px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-card-value {
        font-size: 24px;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .content-header {
        position: relative;
    }
}

/* ========================================
   MOBILE HAMBURGER MENU
   ======================================== */

.hamburger-btn {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 22px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

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

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 150;
}

.sidebar-overlay.active {
    display: block;
}

.sidebar.open {
    transform: translateX(0) !important;
    z-index: 200;
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    .sidebar {
        z-index: 200;
        transition: transform 0.3s ease;
    }

    .content-header {
        flex-direction: row !important;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
        padding: 15px 20px;
    }

    .content-header h1 {
        flex: 1;
        font-size: 20px;
    }

    .header-actions {
        order: 3;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .header-actions .btn {
        flex: 1;
        min-width: 130px;
        text-align: center;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .sidebar,
    .header-actions,
    .filters,
    .btn,
    .modal {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card,
    .stat-card {
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}

/* ========================================
   LOADING & SKELETON
   ======================================== */

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

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

/* ========================================
   ACCESSIBILITY
   ======================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Visible for Keyboard Navigation */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ========================================
   SCROLLBAR
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ========================================
   TRANSITIONS
   ======================================== */

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

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

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* ========================================
   DARK MODE ENHANCEMENTS
   ======================================== */

::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
}

/* ========================================
   PARA GİRİŞ MASKESİ (MONEY INPUT)
   ======================================== */

.money-input {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-align: right;
}

.money-input::placeholder {
    text-align: right;
    font-weight: 400;
    color: var(--text-muted);
}

/* ========================================
   Özet kartları border-left etkileri
   ======================================== */

/* Özet kartları border-left etkileri */
.stat-card[style*="border-left"] {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card[style*="border-left"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Filtre temizle butonu */
.filters .btn-secondary {
    white-space: nowrap;
}

/* ========================================
   INLINE EDIT STYLES
   ======================================== */

/* Düzenlenebilir tarih hücresi */
.editable-date {
    transition: background 0.2s ease;
}

.editable-date:hover {
    background: rgba(234, 88, 12, 0.05);
}

.editable-date:hover::after {
    content: '✏️';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: 0.6;
}

.date-input-inline {
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .filters-row[style*="grid-template-columns: repeat(5"] {
        grid-template-columns: 1fr 1fr !important;
    }

    .filters-row[style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
    }
}
}