/* style.css - GÜNCELLENMIŞ VE İYİLEŞTİRİLMİŞ */

/* =======================================
   DEĞİŞKENLER
   ======================================= */
:root {
    --primary-color: #4A90E2;
    --primary-hover-color: #357ABD;
    --background-dark: #e9ecef;
    --background-light: #F7F9FC;
    --sidebar-bg: #1E2A3A;
    --sidebar-link: #A9B4C2;
    --sidebar-active-bg: #34495E;
    --card-bg: #FFFFFF;
    --text-primary: #2C3E50;
    --text-secondary: #7F8C9A;
    --border-color: #EAECEF;
    
    --color-income: #2ECC71;
    --color-income-bg: #EAF9F1;
    --color-expense: #E74C3C;
    --color-expense-bg: #FBECEC;
    --color-info: #3498DB;
    --color-info-bg: #EBF5FB;
    --color-checks: #F39C12;
    --color-checks-bg: #FEF5E7;
    --color-success: #27AE60;
    --color-warning: #F39C12;
    --color-error: #E74C3C;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.12);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s ease;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
    background-color: var(--background-light);
    color: var(--text-primary);
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

/* =======================================
   LOADING OVERLAY - YENİ
   ======================================= */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.loading-overlay.show {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay p {
    color: white;
    margin-top: 15px;
    font-size: 16px;
    font-weight: 500;
}

/* =======================================
   TOAST NOTIFICATIONS - YENİ
   ======================================= */
.toast {
    position: fixed;
    top: 20px;
    right: -400px;
    background-color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    z-index: 10000;
    transition: right var(--transition-normal);
    border-left: 4px solid var(--color-info);
}

.toast.show {
    right: 20px;
}

.toast i {
    font-size: 20px;
}

.toast-success {
    border-left-color: var(--color-success);
}

.toast-success i {
    color: var(--color-success);
}

.toast-error {
    border-left-color: var(--color-error);
}

.toast-error i {
    color: var(--color-error);
}

.toast-warning {
    border-left-color: var(--color-warning);
}

.toast-warning i {
    color: var(--color-warning);
}

.toast-info {
    border-left-color: var(--color-info);
}

.toast-info i {
    color: var(--color-info);
}

.toast span {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
}

/* =======================================
   HAMBURGER MENU - YENİ (MOBILE)
   ======================================= */
.hamburger-menu {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: background-color var(--transition-fast);
}

.hamburger-menu:hover {
    background-color: var(--primary-hover-color);
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: var(--transition-fast);
    border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* =======================================
   SIDEBAR (KENAR ÇUBUĞU)
   ======================================= */
.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    color: white;
    padding: 20px 0;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    flex-shrink: 0;
    transition: transform var(--transition-normal);
    position: relative;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    padding: 0 20px 30px;
    color: var(--primary-color);
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 2px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--sidebar-link);
    text-decoration: none;
    font-size: 14px;
    transition: background-color var(--transition-fast), color var(--transition-fast);
    border-left: 5px solid transparent;
}

.sidebar-nav a i {
    margin-right: 10px;
    font-size: 16px;
    width: 20px;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
    color: white;
    background-color: var(--sidebar-active-bg);
    border-left-color: var(--primary-color);
}

.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #1a2431;
    display: none;
    overflow: hidden;
    max-height: 0;
    transition: max-height var(--transition-slow);
}

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

.submenu a {
    padding: 10px 20px 10px 45px;
    font-size: 13px;
    border-left: none;
    color: #90a0b8;
}

.submenu a:hover,
.submenu a.active {
    background-color: #263548;
    color: white;
    border-left: none;
}

/* =======================================
   ANA İÇERİK (MAIN CONTENT)
   ======================================= */
.main-content {
    background-color: var(--background-dark);
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    transition: margin-left var(--transition-normal);
}

.content-section {
    display: none;
}

.content-section.active {
    display: block !important;
    animation: fadeIn 0.3s ease-in;
}

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

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

/* =======================================
   KARTLAR (DASHBOARD CARDS)
   ======================================= */
.dashboard-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 25px;
    flex: 1 1 300px;
    min-width: 0;
    box-shadow: var(--shadow-md);
    border: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.top-bar-expense-cards .card {
    background-color: #FFFFFF;
    box-shadow: var(--shadow-sm);
    border: 1px solid #ced4da;
    padding: 10px 15px;
    min-width: 200px;
    cursor: default;
    align-items: flex-start;
    flex-direction: column;
    height: 80%;
    justify-content: center;
    flex-shrink: 0;
}

.top-bar-expense-cards .card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    margin-right: 15px;
    flex-shrink: 0;
}

.card-icon.income { background-color: var(--color-income); }
.card-icon.expense { background-color: var(--color-expense); }
.card-icon.checks { background-color: var(--color-checks); }
.card-icon.info { background-color: var(--color-info); }

.card-content {
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 12px;
    color: #5C6E7E;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 600;
}

.card-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

/* =======================================
   MINI VE SMALL KARTLAR
   ======================================= */
.mini-cards .card {
    padding: 20px;
    flex: 1 1 200px;
    min-width: 180px;
    box-shadow: var(--shadow-md);
    justify-content: flex-start;
    text-align: left;
    display: flex;
    align-items: center;
}

.small-card {
    padding: 15px;
    flex: 1 1 180px;
    min-width: 150px;
    box-shadow: var(--shadow-sm);
}

.mini-cards .card-icon {
    display: flex !important;
    margin-right: 18px;
    width: 48px;
    height: 48px;
    font-size: 20px;
    flex-shrink: 0;
}

.mini-cards .card-content {
    flex-grow: 1;
}

.mini-cards .card-value { font-size: 22px; }
.small-card .card-value { font-size: 18px; }

/* =======================================
   DİĞER BÖLÜMLER
   ======================================= */
.sub-section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
    max-width: 100%;
    box-sizing: border-box;
}

.sub-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.sub-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.sub-section-header h2 {
    margin-bottom: 0;
}

.action-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-group select {
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    background-color: var(--background-light);
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.action-group select:hover,
.action-group select:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* =======================================
   BUTONLAR
   ======================================= */
.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn i {
    margin-right: 8px;
}

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

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-hover-color);
}

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

.btn-secondary:hover:not(:disabled) {
    background-color: #6C7A89;
}

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

.btn-success:hover:not(:disabled) {
    background-color: #229954;
}

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

.btn-danger:hover:not(:disabled) {
    background-color: #C0392B;
}

/* =======================================
   TABLO STİLLERİ - ZEBRA DESENLİ
   ======================================= */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: white;
}

.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
    border-radius: 4px;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: var(--background-light);
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table th:last-child {
    border-right: none;
}

.data-table th.text-right,
.data-table td.text-right {
    text-align: right;
}

.data-table th.text-center,
.data-table td.text-center {
    text-align: center;
}

.data-table td[style*="text-align: center"] {
    text-align: center !important;
}



/* ZEBRA TASARIMI - DAHA BELİRGİN */
.data-table tbody tr,
.data-table tbody td {
    background-color: transparent !important;
}

.data-table tbody tr:nth-child(odd) {
    background-color: #ffffff !important;
}

.data-table tbody tr:nth-child(even) {
    background-color: #f0f3f7 !important; /* Daha koyu gri-mavi ton */
}

.data-table tbody tr:hover {
    background-color: #d4e7f5 !important; /* Daha belirgin hover rengi */
    transition: background-color var(--transition-fast);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.data-table tbody tr:nth-child(odd) td {
    background-color: transparent !important;
}

.data-table tbody tr:nth-child(even) td {
    background-color: transparent !important;
}

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

.data-table .text-bold {
    font-weight: 700;
}

.data-table .actions-cell {
    text-align: center;
    white-space: nowrap;
    padding: 8px 2px !important;
    width: 80px;
}

/* Durum etiketleri */
.status {
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    min-width: 80px;
    justify-content: center;
}

.status i {
    font-size: 13px;
}

/* Ödeme durumları - Renkli ve ikonlu tasarım */
.status-checks {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-income {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #00b894;
}

.status-expense {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #e17055;
}

.status-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #74b9ff;
}

.status-waiting { 
    background-color: var(--color-checks-bg); 
    color: var(--color-checks); 
}

.status-paid { 
    background-color: var(--color-income-bg); 
    color: var(--color-income); 
}

.status-invoiced { 
    background-color: var(--color-info-bg); 
    color: var(--color-info); 
}

.status-pending-invoice { 
    background-color: var(--color-expense-bg); 
    color: var(--color-expense); 
}

/* İşlemler sütunu ve ikonlar */
.actions-cell {
    white-space: nowrap;
    width: 1px;
    text-align: right;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: #5C6E7E;
    font-size: 16px;
    margin-left: 10px;
    opacity: 1;
    transition: opacity var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
    padding: 5px;
}

.btn-icon:hover {
    transform: scale(1.2);
}

.btn-icon.btn-edit:hover {
    color: var(--primary-color);
}

.btn-icon.btn-delete:hover {
    color: var(--color-expense);
}

.btn-icon.btn-complete:hover {
    color: #1e8449 !important;
    transform: scale(1.2);
}

/* =======================================
   MODAL (PENCERE) STİLLERİ
   ======================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity var(--transition-normal);
    backdrop-filter: blur(3px);
}

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

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

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

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

.modal-header h2 {
    margin: 0;
    font-size: 22px;
}

.close-modal {
    cursor: pointer;
    font-size: 28px;
    color: var(--text-secondary);
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.close-modal:hover {
    color: var(--color-error);
    transform: rotate(90deg);
}

.close-modal-btn {
    cursor: pointer;
}

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

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

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    background-color: var(--background-light);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    font-family: 'Poppins', sans-serif;
}

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

.form-group input.error,
.form-group select.error {
    border-color: var(--color-error);
}

.form-group .error-message {
    color: var(--color-error);
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-group input.error ~ .error-message,
.form-group select.error ~ .error-message {
    display: block;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 10px;
}

/* =======================================
   GRAFİK STİLLERİ
   ======================================= */
.chart-container {
    display: flex;
    height: 300px;                    /* 250px'den 300px'e çıkardık */
    padding-top: 50px;                /* 10px'den 50px'e çıkardık - ÜST BOŞLUK */
    padding-left: 10px;
    position: relative;
    overflow: visible;                /* YENİ SATIR - Taşmaya izin ver */
}
#zero-line {
    position: absolute;
    height: 2px;
    background-color: #dc3545;
    z-index: 5;
    box-shadow: 0 0 3px rgba(220, 53, 69, 0.5);
    display: none;  /* YENİ SATIR - Çizgiyi gizle */
}
.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: right;
    width: 60px;
    font-size: 12px;
    color: var(--text-secondary);
    border-right: 1px solid var(--border-color);
    padding-right: 10px;
    flex-shrink: 0;
}

.chart-bars-container {
    display: flex;
    align-items: flex-end;
    flex-grow: 1;
    gap: 10px;
    padding: 0 10px;
    padding-top: 40px;                /* YENİ SATIR - Üstten boşluk */
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    overflow-y: visible;              /* DEĞİŞTİ - Y ekseninde taşmaya izin ver */
    position: relative;
    min-height: 200px;                /* 230px'den 200px'e düşürdük */
}

.chart-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    min-width: 60px;
    flex: 1;
    position: relative;
}

.chart-bar-group .month {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 8px;
    font-weight: 600;
}

.bar {
    width: 35px;
    background-color: var(--primary-color);
    position: relative;
    transition: height 0.5s ease-out, background-color var(--transition-fast);
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    display: flex;
    justify-content: center;
    min-height: 5px;
}

.bar:hover {
    background-color: var(--primary-hover-color);
}

.bar-value {
    position: absolute;
    top: -32px;                              /* -25px'den -32px'e çıkardık */
    font-size: 10px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    background-color: rgba(255, 255, 255, 0.98);  /* 0.9'dan 0.98'e çıkardık */
    padding: 4px 8px;                        /* 2px 4px'den 4px 8px'e çıkardık */
    border-radius: 4px;                      /* 3px'den 4px'e çıkardık */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);  /* YENİ SATIR - Gölge ekledik */
    z-index: 100;                            /* YENİ SATIR - En üstte görünsün */
}
.bar.empty {
    height: 5px !important;
    background-color: var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
}

.bar.empty span {
    font-size: 10px;
    font-weight: 500;
    opacity: 0.5;
}

.bar-balance {
    width: 30px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: height 0.5s ease-out, background-color var(--transition-fast);
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 3px;
}

.bar-balance:hover {
    opacity: 0.8;
}

.bar-balance[style*="bottom: 50%"] {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.bar-balance[style*="top: 50%"] {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.chart-bar-group .bar-value {
    color: var(--text-primary);
    font-size: 10px;
    font-weight: 600;
    position: absolute;
    white-space: nowrap;
    z-index: 10;
}

.bar-balance[style*="bottom: 50%"] .bar-value {
    top: -22px;
    bottom: auto;
}

.bar-balance[style*="top: 50%"] .bar-value {
    bottom: -22px;
    top: auto;
}

.chart-flex-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.chart-wrapper {
    flex: 1 1 45%;
    min-width: 400px;
    padding: 20px;
    padding-top: 10px;                  /* YENİ SATIR */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--card-bg);
    box-shadow: var(--shadow-sm);
    overflow: visible;                  /* YENİ SATIR */
}
.chart-wrapper h2,
.chart-wrapper h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: var(--text-primary);
    text-align: center;
}
/* Balance Chart İçin Özel Düzeltmeler */
#chart-bars-container-balance {
    padding-top: 45px;
    min-height: 200px;
}

.bar-balance[style*="bottom: 50%"] .bar-value {
    top: -35px;
    bottom: auto;
}

.bar-balance[style*="top: 50%"] .bar-value {
    bottom: -35px;
    top: auto;
}

/* Çubuk boş olduğunda */
.bar.empty {
    height: 5px !important;
    background-color: var(--border-color);
    position: relative;
}

.bar.empty .bar-value {
    display: none;
}
/* =======================================
   PROGRESS BAR
   ======================================= */
.progress-bar-container {
    background-color: var(--background-light);
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    width: 150px;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.3);
}

.progress-bar {
    height: 100%;
    background-color: var(--color-checks);
    transition: width 0.5s ease;
}

.progress-bar-text {
    position: absolute;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    color: var(--text-primary);
    text-shadow: none;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 2;
}

/* =======================================
   AÇILIR KAPANIR BÖLÜM
   ======================================= */
.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
    user-select: none;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-fast);
}

.collapsible-header:hover {
    background-color: var(--background-light);
    padding-left: 10px;
    padding-right: 10px;
    margin-left: -10px;
    margin-right: -10px;
    border-radius: 4px;
}

.collapsible-header h2 {
    margin: 0;
}

.toggle-icon {
    font-size: 16px;
    color: var(--text-secondary);
    transition: transform var(--transition-normal);
}

.collapsible-section.collapsed .toggle-icon {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: none;
    opacity: 1;
    overflow: visible;
    transition: max-height var(--transition-slow), opacity var(--transition-slow);
    padding-top: 20px;
}

.collapsible-section.collapsed .collapsible-content {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    overflow: hidden;
}
/* =======================================
   SCROLLBAR STİLİ - YENİ
   ======================================= */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 5px;
    transition: background var(--transition-fast);
}

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

/* =======================================
   RESPONSIVE TASARIM - GELİŞTİRİLMİŞ
   ======================================= */
@media (max-width: 1200px) {
    .chart-wrapper {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    .dashboard-cards {
        flex-wrap: wrap;
    }
    
    .card {
        flex: 1 1 calc(50% - 10px);
        min-width: 250px;
    }
    
    /* Yaklaşan Ödemeler - Orta ekran için 3 sütun */
    #upcoming-payments-container > div {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }
}

@media (max-width: 992px) {
    .main-content {
        padding: 30px 20px;
    }
    
    .dashboard-cards {
        flex-wrap: wrap;
    }
    
    .card {
        flex: 1 1 calc(50% - 10px);
        min-width: 200px;
    }
    
    .mini-cards .card {
        flex: 1 1 calc(50% - 10px);
    }
    
    /* Tablet için grid düzeltmeleri */
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Grafik konteynerleri */
    .chart-container {
        width: 100%;
        overflow-x: auto;
    }
    
    /* Sub-section'lar tam genişlik */
    .sub-section {
        width: 100% !important;
        box-sizing: border-box;
    }
    
    /* Yaklaşan Ödemeler - Tablet için 2 sütun */
    #upcoming-payments-container > div {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    html {
        overflow-x: hidden !important;
    }
    
    .main-content,
    .page-content,
    .sub-section,
    .dashboard-cards,
    .data-table-container {
        max-width: 100% !important;
        overflow-x: auto !important;
    }
    
    /* Borç/Alacak yan yana tabloları mobilde alt alta */
    #borc-alacak-yonetimi > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Mobil için kasa bakiyesini göster */
    .mobile-cash-balance {
        display: block !important;
    }
    
    /* Desktop kartlarını mobilde gizle */
    .desktop-only-cards {
        display: none !important;
    }
    
    .hamburger-menu {
        display: flex;
        flex-direction: column;
    }
    
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        z-index: 999;
        box-shadow: none;
    }
    
    .sidebar.open {
        left: 0;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    .main-content {
        padding: 70px 15px 20px 15px;
        width: 100%;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-header h1 {
        font-size: 20px;
    }
    
    .dashboard-cards {
        flex-direction: column;
        gap: 15px;
    }
    
    .card {
        flex: 1 1 100%;
        padding: 20px;
    }
    
    .mini-cards .card {
        flex: 1 1 100%;
    }
    
    .card-value {
        font-size: 20px;
    }
    
    .sub-section {
        padding: 15px;
        margin-bottom: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Mobil için tablo optimizasyonu */
    .table-container,
    .data-table-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .data-table {
        font-size: 12px;
        min-width: 600px !important;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 5px;
    }
    
    .data-table .actions-cell {
        position: sticky;
        right: 0;
        background-color: inherit;
    }
    
    /* Mobil için buton optimizasyonu */
    .btn {
        padding: 8px 12px;
        font-size: 13px;
        min-height: 44px; /* iOS touch target */
        touch-action: manipulation;
    }
    
    .action-group {
        width: 100%;
    }
    
    .action-group select,
    .action-group .btn {
        flex: 1;
    }
    
    /* Mobil için modal optimizasyonu */
    .modal-content {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    /* Mobil için form optimizasyonu */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* iOS zoom önleme */
    }
    
    /* TÜM GRID YAPILARINI RESPONSİVE YAP */
    /* Anasayfa grafik grid'i (2 sütun -> 1 sütun) */
    #anasayfa > div[style*="grid-template-columns"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        width: 100% !important;
    }
    
    /* Balance cards container (3 sütun -> 1 sütun) */
    #balance-cards-container {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    /* Bilanço 3 sütunlu grid (3 sütun -> 1 sütun) */
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* Tüm 2 sütunlu grid'ler (2 sütun -> 1 sütun) */
    div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* Yaklaşan Ödemeler Grid - Mobilde 1 Sütun */
    #upcoming-payments-container > div {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    #upcoming-payments-container {
        height: auto !important;
        max-height: 600px !important;
        overflow-x: hidden !important;
    }
    
    /* Yaklaşan ödeme kartları mobilde tam genişlik */
    #upcoming-payments-container .card {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Notlar Bölümü */
    #notes-container {
        max-height: 250px !important;
    }
    
    /* Dashboard Kartları */
    .dashboard-cards {
        width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Mini Kartlar */
    .mini-cards {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .mini-card {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Grafik Container - Mobil Optimizasyonu */
    .chart-wrapper {
        width: 100% !important;
        min-width: 100% !important;
        padding: 15px !important;
        padding-top: 10px !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }
    
    .chart-container {
        height: 250px !important;
        width: 100% !important;
        padding-top: 55px !important;
        overflow: visible !important;
        display: flex !important;
        box-sizing: border-box !important;
    }
    
    .chart-bars-container {
        gap: 5px !important;
        padding-top: 40px !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
        flex: 1 !important;
    }
    
    .bar {
        width: 25px;
    }
    
    .bar-value {
        font-size: 9px;
        padding: 3px 5px;               /* DEĞİŞTİ */
        top: -30px;                     /* DEĞİŞTİ */
    }
    
    .chart-bars-container {
        gap: 5px;
    }
    
    .bar {
        width: 25px;
    }
    
    .chart-bar-group {
        min-width: 40px;
    }
    
    .toast {
        min-width: auto;
        max-width: calc(100% - 40px);
        left: 20px;
        right: 20px;
    }
    
    .toast.show {
        right: 20px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 70px 10px 15px 10px;
    }
    
    .card {
        padding: 15px;
    }
    
    .card-value {
        font-size: 18px;
    }
    
    .card-title {
        font-size: 10px;
    }
    
    .data-table th,
    .data-table td {
        padding: 6px 3px;
        font-size: 11px;
    }
    
    .btn-icon {
        font-size: 14px;
        margin-left: 5px;
    }
    
    .form-group input,
    .form-group select {
        font-size: 13px;
        padding: 8px;
    }
    
    /* Yaklaşan ödeme kartları - Çok küçük ekranlar */
    #upcoming-payments-container .card {
        padding: 10px !important;
    }
    
    #upcoming-payments-container .card div[style*="font-size: 14px"] {
        font-size: 12px !important;
    }
}

/* =======================================
   PRINT STYLES - YENİ
   ======================================= */
@media print {
    body {
        background-color: white;
    }
    
    .sidebar,
    .hamburger-menu,
    .btn,
    .btn-icon,
    .actions-cell,
    .export-btn,
    .modal-overlay,
    .toast,
    .loading-overlay {
        display: none !important;
    }
    
    .main-content {
        padding: 0;
        margin: 0;
    }
    
    .page-header {
        border-bottom: 2px solid black;
        margin-bottom: 20px;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .data-table {
        break-inside: avoid;
    }
    
    .data-table th {
        background-color: #f0f0f0 !important;
        color: black !important;
    }
}

/* =======================================
   UTILITY CLASSES - YENİ
   ======================================= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }

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

.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }

.cursor-pointer { cursor: pointer; }

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

.bg-success { background-color: var(--color-income-bg); }
.bg-error { background-color: var(--color-expense-bg); }
.bg-warning { background-color: var(--color-checks-bg); }
.bg-info { background-color: var(--color-info-bg); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-normal { font-weight: 400; }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

/* =======================================
   ANİMASYONLAR - YENİ
   ======================================= */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* =======================================
   ACCESSIBILITY - YENİ
   ======================================= */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.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;
}

/* Klavye navigasyonu için */
button:focus,
a:focus,
input:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Yüksek kontrast modu */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0056b3;
        --text-primary: #000000;
        --text-secondary: #333333;
        --border-color: #000000;
    }
}

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Gelir modallarında ödeme şekli alanını gizle ve required'ı kaldır */
#add-income-modal label[for="income-method"],
#add-income-modal #income-method,
#edit-income-modal label[for="edit-income-method"],
#edit-income-modal #edit-income-method,
#add-income-modal label[for="income-method"] + .form-group,
#edit-income-modal label[for="edit-income-method"] + .form-group {
    display: none !important;
}

/* Ödeme şekli içeren form-group'u gizle */
#add-income-form .form-group:has(#income-method),
#edit-income-form .form-group:has(#edit-income-method) {
    display: none !important;
}


/* =======================================
   DARK MODE HAZIRLIĞI - YENİ (OPSİYONEL)
   ======================================= */
@media (prefers-color-scheme: dark) {
    /* Dark mode stilleri buraya eklenebilir */
}

/* =======================================
   PDF EXPORT İÇİN ÖZEL STİLLER
   ======================================= */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    .card {
        background-color: #FFFFFF !important;
        border: 1px solid #EAECEF !important;
    }
    
    .card-icon.income {
        background-color: #2ECC71 !important;
    }
    
    .card-icon.expense {
        background-color: #E74C3C !important;
    }
    
    .card-icon.checks {
        background-color: #F39C12 !important;
    }
    
    .card-icon.info {
        background-color: #3498DB !important;
    }
    
    .data-table th {
        background-color: #F7F9FC !important;
        color: #7F8C9A !important;
    }
    
    .data-table tbody tr:nth-child(odd) {
        background-color: #ffffff !important;
    }
    
    .data-table tbody tr:nth-child(even) {
        background-color: #f0f3f7 !important;
    }
}

/* =======================================
   BADGE STİLLERİ
   ======================================= */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    text-align: center;
    white-space: nowrap;
}

.badge-info {
    background-color: var(--color-info-bg);
    color: var(--color-info);
    border: 1px solid var(--color-info);
    transition: all 0.2s ease;
}

.badge-info:hover {
    background-color: var(--color-info);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

/* =======================================
   ANİMASYONLAR VE GEÇİŞLER - YENİ SİSTEM
   ======================================= */

/* Keyframe Animasyonları */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Sayfa Geçişleri */
.content-section {
    animation: fadeInUp 0.4s ease-out;
}

.content-section.fade-out {
    animation: fadeOut 0.3s ease-in forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Kart Animasyonları */
.card {
    animation: fadeInUp 0.5s ease-out;
    transition: all var(--transition-normal);
}

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

/* Kart yükleme gecikmeleri (stagger effect) */
.dashboard-cards .card:nth-child(1) { animation-delay: 0.1s; }
.dashboard-cards .card:nth-child(2) { animation-delay: 0.2s; }
.dashboard-cards .card:nth-child(3) { animation-delay: 0.3s; }
.dashboard-cards .card:nth-child(4) { animation-delay: 0.4s; }
.dashboard-cards .card:nth-child(5) { animation-delay: 0.5s; }
.dashboard-cards .card:nth-child(6) { animation-delay: 0.6s; }

/* Skeleton Loading Screen */
.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 20%,
        #f0f0f0 40%,
        #f0f0f0 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.skeleton-card {
    height: 120px;
    margin-bottom: 20px;
    border-radius: 12px;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 10px;
    border-radius: 4px;
    width: 100%;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-table {
    width: 100%;
    height: 400px;
}

/* Buton Mikro-etkileşimler */
.btn {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

/* Icon Animasyonları */
.btn i,
.card-icon i {
    transition: transform var(--transition-normal);
}

.btn:hover i {
    transform: scale(1.1);
}

.card-icon:hover i {
    transform: rotate(10deg) scale(1.1);
}

/* Tablo Satır Animasyonları */
.data-table tbody tr {
    animation: fadeInUp 0.3s ease-out;
    transition: all var(--transition-fast);
}

.data-table tbody tr:hover {
    background-color: #f8f9fa !important;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Modal Animasyonları */
.modal-overlay {
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.closing .modal-content {
    animation: scaleOut 0.3s ease-in forwards;
}

@keyframes scaleOut {
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

/* Toast Bildirimleri */
.toast {
    animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.hiding {
    animation: slideOutRight 0.3s ease-in forwards;
}

@keyframes slideOutRight {
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

/* Input Focus Animasyonları */
input:focus,
select:focus,
textarea:focus {
    transform: scale(1.01);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    transition: all var(--transition-fast);
}

/* Progress Bar Animasyonu */
.progress-bar {
    animation: fillProgress 1s ease-out;
}

/* Progress Bar Renklendirme */
.progress-safe {
    background: linear-gradient(90deg, #10b981, #34d399) !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.progress-warning {
    background: linear-gradient(90deg, #f59e0b, #fbbf24) !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.progress-danger {
    background: linear-gradient(90deg, #ef4444, #f87171) !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Kalan Borç Vurgusu */
.kalan-borc-highlight {
    font-weight: 700 !important;
    font-size: 15px !important;
    color: #1e293b !important;
    background: #f8fafc !important;
}

@keyframes fillProgress {
    from {
        width: 0;
    }
}

/* Navbar Link Animasyonları */
.nav-link {
    position: relative;
    transition: all var(--transition-normal);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link.active::after {
    width: 100%;
}

/* Collapsible Animasyonları */
.collapsible-content {
    transition: max-height var(--transition-slow) ease-out,
                opacity var(--transition-normal) ease-out,
                padding var(--transition-normal) ease-out;
}

.toggle-icon {
    transition: transform var(--transition-normal);
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

/* Loading Spinner Gelişmiş */
.spinner {
    animation: spin 1s linear infinite, pulse 2s ease-in-out infinite;
}

/* Hover Glow Effect */
.btn-primary:hover {
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
}

.btn-success:hover {
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.5);
}

.btn-danger:hover {
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.5);
}

/* Status Badge Animasyonları */
.status {
    animation: fadeInUp 0.4s ease-out;
    transition: all var(--transition-normal);
}

.status:hover {
    transform: scale(1.05);
}

/* Sidebar Link Animasyonları */
.sidebar .nav-link {
    transition: all var(--transition-normal);
}

.sidebar .nav-link:hover {
    padding-left: 25px;
    background-color: rgba(255, 255, 255, 0.05);
}

/* Page Header Animasyonu */
.page-header {
    animation: fadeInDown 0.5s ease-out;
}

/* Action Button Grubu */
.action-group button {
    animation: fadeInUp 0.4s ease-out;
}

.action-group button:nth-child(1) { animation-delay: 0.1s; }
.action-group button:nth-child(2) { animation-delay: 0.2s; }
.action-group button:nth-child(3) { animation-delay: 0.3s; }

/* Responsive: Mobilde animasyonları hafiflet */
@media (max-width: 768px) {
    .card {
        animation-duration: 0.3s;
    }
    
    .dashboard-cards .card {
        animation-delay: 0s !important;
    }
    
    .data-table tbody tr {
        animation: none;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Focus Visible (klavye navigasyonu için) */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Prefers Reduced Motion (erişilebilirlik) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =======================================
   RİPPLE EFFECT
   ======================================= */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* =======================================
   EVRENSEL TABLO FİLTRELEME SİSTEMİ
   ======================================= */

.universal-filter-panel {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    animation: fadeInDown 0.4s ease-out;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.filter-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
}

.filter-title i {
    font-size: 16px;
}

.filter-actions {
    display: flex;
    gap: 10px;
}

.filter-toggle-btn,
.filter-clear-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-toggle-btn:hover,
.filter-clear-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.filter-toggle-btn {
    padding: 6px 10px;
}

.filter-body {
    padding: 20px;
    transition: all 0.3s ease;
    max-height: 500px;
    overflow: visible;
}

.filter-body.collapsed {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-input,
.filter-select {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    color: var(--text-primary);
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.filter-input::placeholder {
    color: #adb5bd;
    font-size: 13px;
}

.filter-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-range input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-range input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.filter-range span {
    color: var(--text-secondary);
    font-weight: 600;
}

.filter-info {
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.filter-count {
    font-size: 13px;
    color: var(--text-secondary);
}

.filter-count strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Mobil Responsive */
@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .filter-header {
        padding: 12px 15px;
    }
    
    .filter-body {
        padding: 15px;
    }
    
    .filter-title {
        font-size: 14px;
    }
    
    .filter-actions {
        gap: 8px;
    }
    
    .filter-clear-btn span {
        display: none;
    }
    
    .filter-range {
        flex-direction: column;
        gap: 8px;
    }
    
    .filter-range span {
        display: none;
    }
    
    .filter-range input {
        width: 100%;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop - Büyük ekranlar */
@media (min-width: 1400px) {
    .filter-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Animasyonlar */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark Mode Desteği (gelecek için) */
@media (prefers-color-scheme: dark) {
    .universal-filter-panel {
        background: #1e293b;
        border-color: #334155;
    }
    
    .filter-input,
    .filter-select,
    .filter-range input {
        background: #0f172a;
        border-color: #334155;
        color: #e2e8f0;
    }
    
    .filter-label {
        color: #94a3b8;
    }
    
    .filter-count {
        color: #cbd5e1;
    }
}

/* DOSYA SONU - 2400 satır */
/* =======================================
   FATURA TAK�B� - ��RKET TAB S�STEM�
   ======================================= */
.tab-container {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    bottom: -2px;
}

.tab-btn:hover {
    color: var(--primary-color);
    background: rgba(74, 144, 226, 0.05);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(74, 144, 226, 0.08);
}

.company-invoice-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.company-invoice-panel.active {
    display: block;
}

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

/* Mobil uyumluluk */
@media (max-width: 768px) {
    .tab-container {
        flex-direction: column;
        gap: 5px;
    }
    
    .tab-btn {
        width: 100%;
        text-align: left;
        border-bottom: none;
        border-left: 3px solid transparent;
        bottom: 0;
    }
    
    .tab-btn.active {
        border-bottom: none;
        border-left-color: var(--primary-color);
    }
}

/* =======================================
   FATURA BADGE ST�LLER�
   ======================================= */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-primary {
    background: #cce5ff;
    color: #004085;
}

.badge-secondary {
    background: #e2e3e5;
    color: #383d41;
}

/* K���k butonlar */
.btn-sm {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
    margin: 0 2px;
}

.btn-info {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.btn-info:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
}


/* Filtre Grid Düzeni */
.universal-filter-panel .filter-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 15px !important;
    margin-bottom: 15px !important;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.filter-group select:hover,
.filter-group input:hover {
    border-color: #94a3b8;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}



