/* =========================================================
   ENGİN FİNANS
   ORTAK UYGULAMA CSS
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}


/* =========================================================
   TEMA DEĞİŞKENLERİ
========================================================= */

:root {
    --bg: #f4f6f9;
    --radius-lg: 16px;
    --shadow-sm: 0 8px 25px rgba(0, 0, 0, 0.06);
    --surface: #ffffff;
    --surface-soft: #f9fafb;

    --input-bg: #f9fafb;

    --text: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;

    --border: #e5e7eb;
    --border-input: #d1d5db;

    --primary: #111827;
    --primary-hover: #1f2937;

    --sidebar-bg: #111827;
    --sidebar-hover: #1f2937;
    --sidebar-active: #374151;
    --sidebar-text: #d1d5db;

    --success-bg: #ecfdf5;
    --success-text: #166534;

    --error-bg: #fef2f2;
    --error-text: #991b1b;

    --danger-bg: #451a1a;
    --danger-text: #fecaca;

    --shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}


/* =========================================================
   DARK TEMA
========================================================= */

body.theme-dark {
    --bg: #0f172a;

    --surface: #1e293b;
    --surface-soft: #263449;

    --input-bg: #172033;

    --text: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border: #334155;
    --border-input: #475569;

    --primary: #f8fafc;
    --primary-hover: #e2e8f0;

    --sidebar-bg: #020617;
    --sidebar-hover: #1e293b;
    --sidebar-active: #334155;
    --sidebar-text: #cbd5e1;

    --success-bg: #052e1b;
    --success-text: #86efac;

    --error-bg: #450a0a;
    --error-text: #fca5a5;

    --danger-bg: #450a0a;
    --danger-text: #fecaca;

    --shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}


/* =========================================================
   HTML / BODY
========================================================= */

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: Arial, sans-serif;

    background: var(--bg);
    color: var(--text);

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


/* =========================================================
   LAYOUT
========================================================= */

.app {
    min-height: 100vh;
}

.main {
    margin-left: 240px;

    min-height: 100vh;
}

.container {
    width: 100%;

    max-width: 1200px;

    margin: 0 auto;

    padding: 35px 25px;
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    width: 240px;

    background: var(--sidebar-bg);
    color: #ffffff;

    padding: 25px 16px;

    display: flex;
    flex-direction: column;

    z-index: 1000;

    overflow-y: auto;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.25s ease;
}


/* =========================================================
   SIDEBAR LOGO
========================================================= */

.sidebar-logo {
    padding: 0 12px 30px;

    font-size: 21px;
    font-weight: 700;

    letter-spacing: 0.3px;
}


/* =========================================================
   SIDEBAR SECTION
========================================================= */

.sidebar-section-title {
    padding: 0 12px;

    margin-bottom: 8px;

    color: #9ca3af;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.8px;
}


/* =========================================================
   SIDEBAR MENU
========================================================= */

.sidebar-menu {
    display: flex;

    flex-direction: column;

    gap: 4px;
}

.sidebar-menu a {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px;

    color: var(--sidebar-text);

    text-decoration: none;

    border-radius: 10px;

    font-size: 14px;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.sidebar-menu a:hover {
    background: var(--sidebar-hover);

    color: #ffffff;
}

.sidebar-menu a.active {
    background: var(--sidebar-active);

    color: #ffffff;
}


/* =========================================================
   SIDEBAR ICON
========================================================= */

.menu-icon {
    width: 24px;

    text-align: center;

    font-size: 17px;

    flex-shrink: 0;
}


/* =========================================================
   SIDEBAR ALT
========================================================= */

.sidebar-bottom {
    margin-top: auto;

    padding-top: 25px;
}

.sidebar-divider {
    height: 1px;

    background: #374151;

    margin-bottom: 15px;
}

.sidebar-user {
    padding: 10px 12px 15px;

    color: #9ca3af;

    font-size: 12px;
}

.sidebar-user strong {
    display: block;

    margin-top: 4px;

    color: #ffffff;

    font-size: 14px;
}


/* =========================================================
   ÇIKIŞ
========================================================= */

.logout-link {
    color: #fca5a5 !important;
}

.logout-link:hover {
    background: var(--danger-bg) !important;

    color: var(--danger-text) !important;
}


/* =========================================================
   MOBİL TOPBAR
========================================================= */

.mobile-topbar {
    display: none;

    height: 64px;

    background: var(--sidebar-bg);

    color: #ffffff;

    align-items: center;

    justify-content: space-between;

    padding: 0 18px;

    position: sticky;

    top: 0;

    z-index: 900;
}

.mobile-logo {
    font-size: 18px;

    font-weight: 700;
}

.menu-toggle {
    border: none;

    background: var(--sidebar-hover);

    color: #ffffff;

    width: 42px;
    height: 42px;

    border-radius: 9px;

    font-size: 22px;

    cursor: pointer;
}


/* =========================================================
   MOBİL OVERLAY
========================================================= */

.sidebar-overlay {
    display: none;

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.45);

    z-index: 950;
}


/* =========================================================
   SAYFA BAŞLIĞI
========================================================= */

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    margin: 0 0 8px;

    font-size: 28px;

    color: var(--text);
}

.page-header p {
    margin: 0;

    color: var(--text-secondary);
}


/* =========================================================
   MESAJLAR
========================================================= */

.message {
    margin-bottom: 20px;

    padding: 14px 16px;

    border-radius: 10px;

    background: var(--success-bg);

    color: var(--success-text);
}

.error {
    margin-bottom: 20px;

    padding: 14px 16px;

    border-radius: 10px;

    background: var(--error-bg);

    color: var(--error-text);
}


/* =========================================================
   FORM KARTI
========================================================= */

.form-card {
    background: var(--surface);

    border-radius: 16px;

    padding: 25px;

    margin-bottom: 30px;

    box-shadow: var(--shadow);

    transition:
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.form-card h2 {
    margin: 0 0 20px;

    font-size: 20px;

    color: var(--text);
}


/* =========================================================
   FORM GRID
========================================================= */

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;
}

.form-group {
    display: flex;

    flex-direction: column;

    gap: 7px;
}

.form-group.full {
    grid-column: 1 / -1;
}


/* =========================================================
   FORM LABEL
========================================================= */

.form-group label {
    font-size: 13px;

    font-weight: 600;

    color: var(--text);
}


/* =========================================================
   FORM INPUT
========================================================= */

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    padding: 12px 13px;

    border: 1px solid var(--border-input);

    border-radius: 9px;

    font-size: 14px;

    font-family: inherit;

    outline: none;

    background: var(--input-bg);

    color: var(--text);

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}


/* =========================================================
   FORM FOCUS
========================================================= */

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(17, 24, 39, 0.08);
}

body.theme-dark .form-group input:focus,
body.theme-dark .form-group select:focus,
body.theme-dark .form-group textarea:focus {
    box-shadow:
        0 0 0 3px rgba(248, 250, 252, 0.08);
}


/* =========================================================
   SELECT OPTION
========================================================= */

.form-group select option {
    background: var(--surface);

    color: var(--text);
}


/* =========================================================
   TEXTAREA
========================================================= */

.form-group textarea {
    min-height: 90px;

    resize: vertical;
}


/* =========================================================
   FORM ACTIONS
========================================================= */

.form-actions {
    margin-top: 20px;

    display: flex;

    align-items: center;

    gap: 10px;
}


/* =========================================================
   BUTON
========================================================= */

.button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 11px 18px;

    border-radius: 10px;

    background: var(--primary);

    color: var(--bg);

    text-decoration: none;

    border: none;

    cursor: pointer;

    font-size: 14px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        opacity 0.2s ease;
}

.button:hover {
    background: var(--primary-hover);
}


/* =========================================================
   İPTAL BUTONU
========================================================= */

.cancel-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 11px 18px;

    border-radius: 10px;

    background: var(--surface-soft);

    color: var(--text-secondary);

    text-decoration: none;

    font-size: 14px;

    border: 1px solid var(--border);

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.cancel-button:hover {
    background: var(--border);

    color: var(--text);
}


/* =========================================================
   GENEL KART
========================================================= */

.card {
    background: var(--surface);

    border-radius: 16px;

    padding: 25px;

    box-shadow: var(--shadow);

    transition:
        background 0.2s ease,
        box-shadow 0.2s ease;
}


/* =========================================================
   BOŞ DURUM
========================================================= */

.empty {
    background: var(--surface);

    border-radius: 16px;

    padding: 40px;

    text-align: center;

    color: var(--text-secondary);

    box-shadow: var(--shadow);
}


/* =========================================================
   GELİR KARTLARI
========================================================= */

.incomes-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;
}


.income-card {
    background: var(--surface);

    border-radius: 16px;

    padding: 22px;

    box-shadow: var(--shadow);

    transition:
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.income-top {
    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 15px;
}


.income-type {
    margin: 0 0 6px;

    font-size: 19px;

    color: var(--text);
}


.income-account {
    color: var(--text-secondary);

    font-size: 13px;
}


.income-amount {
    margin-top: 25px;

    font-size: 26px;

    font-weight: 700;

    color: var(--text);
}


.income-date {
    margin-top: 5px;

    color: var(--text-secondary);

    font-size: 13px;
}


.income-description {
    margin-top: 18px;

    padding-top: 18px;

    border-top: 1px solid var(--border);

    color: var(--text-secondary);

    font-size: 13px;

    line-height: 1.5;
}


.income-actions {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 20px;

    padding-top: 18px;

    border-top: 1px solid var(--border);
}


.edit-button,
.delete-button {
    padding: 9px 14px;

    border: 1px solid var(--border-input);

    border-radius: 8px;

    background: var(--surface);

    color: var(--text-secondary);

    text-decoration: none;

    cursor: pointer;

    font-size: 13px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


.edit-button:hover,
.delete-button:hover {
    background: var(--surface-soft);

    color: var(--text);
}


/* =========================================================
   LOADING BUTON
========================================================= */

.button.loading,
.delete-button.loading {
    position: relative;

    pointer-events: none;

    opacity: 0.75;

    cursor: wait;
}

.button.loading::after,
.delete-button.loading::after {
    content: "";

    width: 14px;
    height: 14px;

    margin-left: 9px;

    display: inline-block;

    vertical-align: -2px;

    border: 2px solid rgba(255, 255, 255, 0.45);

    border-top-color: #ffffff;

    border-radius: 50%;

    animation: buttonSpinner 0.7s linear infinite;
}

@keyframes buttonSpinner {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .container {
        max-width: 100%;
    }

    .incomes-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   MOBİL
========================================================= */

@media (max-width: 800px) {

    .sidebar {
        transform: translateX(-100%);

        transition:
            transform 0.25s ease;

        width: 250px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay.open {
        display: block;
    }

    .main {
        margin-left: 0;
    }

    .mobile-topbar {
        display: flex;
    }

    .container {
        padding: 25px 15px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: auto;
    }

    .form-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .button,
    .cancel-button {
        width: 100%;
    }

}


/* =========================================================
   KÜÇÜK MOBİL
========================================================= */

@media (max-width: 550px) {

    .page-header h1 {
        font-size: 24px;
    }

    .form-card {
        padding: 18px;
    }

    .card {
        padding: 18px;
    }

    .income-card {
        padding: 18px;
    }

}

/* =========================================================
   GELİR KARTLARI
========================================================= */

.incomes-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
}


.income-card {
    background: var(--surface);

    border-radius: 16px;

    padding: 22px;

    box-shadow: var(--shadow);

    transition:
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.income-top {
    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 15px;
}


.income-type {
    margin: 0 0 6px;

    font-size: 19px;

    color: var(--text);
}


.income-account {
    color: var(--text-secondary);

    font-size: 13px;
}


.income-amount {
    margin-top: 25px;

    font-size: 26px;

    font-weight: 700;

    color: var(--text);
}


.income-date {
    margin-top: 5px;

    color: var(--text-secondary);

    font-size: 13px;
}


.income-description {
    margin-top: 18px;

    padding-top: 18px;

    border-top: 1px solid var(--border);

    color: var(--text-secondary);

    font-size: 13px;

    line-height: 1.5;
}


.income-actions {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 20px;

    padding-top: 18px;

    border-top: 1px solid var(--border);
}


.edit-button,
.delete-button {
    padding: 9px 14px;

    border: 1px solid var(--border-input);

    border-radius: 8px;

    background: var(--surface);

    color: var(--text-secondary);

    text-decoration: none;

    cursor: pointer;

    font-size: 13px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


.edit-button:hover,
.delete-button:hover {
    background: var(--surface-soft);

    color: var(--text);
}


/* =========================================================
   GELİR KARTLARI - TABLET
========================================================= */

@media (max-width: 1100px) {

    .incomes-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   GELİR KARTLARI - KÜÇÜK MOBİL
========================================================= */

@media (max-width: 550px) {

    .income-card {
        padding: 18px;
    }

}

/* =========================================================
   GELİR LİSTESİ
========================================================= */

.incomes-grid {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;
}


/* =========================================================
   GELİR KARTI
========================================================= */

.income-card {
    width: 100%;

    min-width: 0;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 16px;

    padding: 22px;

    box-shadow: var(--shadow);

    color: var(--text);

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* =========================================================
   GELİR ÜST ALAN
========================================================= */

.income-top {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 15px;
}


.income-type {
    margin: 0 0 6px;

    font-size: 19px;

    font-weight: 700;

    color: var(--text);
}


.income-account {
    font-size: 13px;

    color: var(--text-secondary);
}


/* =========================================================
   GELİR TUTARI
========================================================= */

.income-amount {
    margin-top: 25px;

    font-size: 26px;

    font-weight: 700;

    line-height: 1.2;

    color: var(--text);
}


.income-date {
    margin-top: 5px;

    font-size: 13px;

    color: var(--text-secondary);
}


/* =========================================================
   GELİR AÇIKLAMA
========================================================= */

.income-description {
    margin-top: 18px;

    padding-top: 18px;

    border-top: 1px solid var(--border);

    font-size: 13px;

    line-height: 1.5;

    color: var(--text-secondary);

    overflow-wrap: anywhere;
}


/* =========================================================
   GELİR BUTONLARI
========================================================= */

.income-actions {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 20px;

    padding-top: 18px;

    border-top: 1px solid var(--border);
}


.income-actions form {
    margin: 0;

    padding: 0;
}


.edit-button,
.delete-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 9px 14px;

    border: 1px solid var(--border-input);

    border-radius: 8px;

    background: var(--surface);

    color: var(--text-secondary);

    text-decoration: none;

    font-family: inherit;

    font-size: 13px;

    line-height: 1.2;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


.edit-button:hover,
.delete-button:hover {
    background: var(--surface-soft);

    color: var(--text);

    border-color: var(--border);
}


/* =========================================================
   GELİR KARTLARI - TABLET
========================================================= */

@media (max-width: 1100px) {

    .incomes-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   GELİR KARTLARI - MOBİL
========================================================= */

@media (max-width: 550px) {

    .income-card {
        padding: 18px;
    }

    .income-amount {
        font-size: 23px;
    }

}

/* =========================================================
   HESAP KARTLARI
========================================================= */

.accounts-grid {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;
}


/* =========================================================
   HESAP KARTI
========================================================= */

.account-card {
    width: 100%;

    min-width: 0;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 16px;

    padding: 22px;

    box-shadow: var(--shadow);

    color: var(--text);

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* =========================================================
   HESAP ÜST ALANI
========================================================= */

.account-top {
    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 15px;
}


.account-name {
    margin: 0 0 6px;

    font-size: 19px;

    color: var(--text);
}


.account-type {
    color: var(--text-secondary);

    font-size: 13px;
}


/* =========================================================
   HESAP DURUMU
========================================================= */

.account-status {
    font-size: 12px;

    padding: 5px 9px;

    border-radius: 20px;

    background: var(--success-bg);

    color: var(--success-text);

    white-space: nowrap;
}


/* =========================================================
   HESAP BAKİYESİ
========================================================= */

.account-balance {
    margin-top: 25px;

    font-size: 26px;

    font-weight: 700;

    color: var(--text);
}


/* =========================================================
   HESAP AÇIKLAMASI
========================================================= */

.account-description {
    margin-top: 18px;

    padding-top: 18px;

    border-top: 1px solid var(--border);

    color: var(--text-secondary);

    font-size: 13px;

    line-height: 1.5;

    overflow-wrap: anywhere;
}


/* =========================================================
   HESAP AKSİYONLARI
========================================================= */

.account-actions {
    margin-top: 20px;

    padding-top: 18px;

    border-top: 1px solid var(--border);

    display: flex;

    align-items: center;

    gap: 10px;
}


.account-actions form {
    margin: 0;

    padding: 0;
}


/* =========================================================
   HESAP BUTONLARI
========================================================= */

.account-actions .edit-button,
.account-actions .delete-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 9px 14px;

    border: 1px solid var(--border-input);

    border-radius: 8px;

    background: var(--surface);

    color: var(--text-secondary);

    text-decoration: none;

    font-family: inherit;

    font-size: 13px;

    line-height: 1.2;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


.account-actions .edit-button:hover,
.account-actions .delete-button:hover {
    background: var(--surface-soft);

    color: var(--text);

    border-color: var(--border);
}


/* =========================================================
   HESAPLAR - TABLET
========================================================= */

@media (max-width: 1100px) {

    .accounts-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   HESAPLAR - MOBİL
========================================================= */

@media (max-width: 550px) {

    .account-card {
        padding: 18px;
    }

    .account-top {
        flex-direction: column;
    }

    .account-status {
        align-self: flex-start;
    }

    .account-actions {
        flex-wrap: wrap;
    }

}

/* =========================================================
   EXPENSES - GİDER KARTLARI
========================================================= */

.expenses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}


.expense-card {
    background: var(--surface);

    border-radius: 16px;

    padding: 22px;

    box-shadow: var(--shadow);

    transition:
        background 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease;
}


.expense-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.08);
}


.expense-top {
    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 15px;
}


.expense-type {
    margin: 0 0 6px;

    font-size: 19px;

    color: var(--text);
}


.expense-account {
    color: var(--text-secondary);

    font-size: 13px;
}


.expense-amount {
    margin-top: 25px;

    font-size: 26px;

    font-weight: 700;

    color: var(--text);
}


.expense-date {
    margin-top: 5px;

    color: var(--text-secondary);

    font-size: 13px;
}


.expense-description {
    margin-top: 18px;

    padding-top: 18px;

    border-top: 1px solid var(--border);

    color: var(--text-secondary);

    font-size: 13px;

    line-height: 1.5;
}


.expense-actions {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 20px;

    padding-top: 18px;

    border-top: 1px solid var(--border);
}


.expense-actions form {
    margin: 0;
}


/* =========================================================
   EXPENSES - BUTONLAR
========================================================= */

.delete-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    min-width: 62px;
}


.edit-button:hover,
.delete-button:hover {
    background: var(--surface-soft);

    border-color: var(--border-input);

    color: var(--text);
}


/* =========================================================
   EXPENSES - LOADING
========================================================= */

.button-spinner,
.delete-spinner {
    width: 15px;
    height: 15px;

    border: 2px solid rgba(255, 255, 255, 0.35);

    border-top-color: #ffffff;

    border-radius: 50%;

    animation: buttonSpin 0.7s linear infinite;

    display: none;

    flex-shrink: 0;
}


.button.loading .button-spinner,
.delete-button.loading .delete-spinner {
    display: inline-block;
}


@keyframes buttonSpin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   EXPENSES - RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .expenses-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 800px) {

    .expenses-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-wrap: wrap;
    }

}


@media (max-width: 550px) {

    .expense-card {
        padding: 18px;
    }

    .expense-amount {
        font-size: 23px;
    }

    .expense-actions {
        flex-wrap: wrap;
    }

}

/* =========================================================
   TRANSACTIONS - FİLTRE
========================================================= */

.filter-card {
    background: var(--surface);

    border-radius: 16px;

    padding: 25px;

    margin-bottom: 30px;

    border: 1px solid var(--border);

    box-shadow: var(--shadow);

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.filter-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}


/* =========================================================
   TRANSACTIONS - FİLTRE BUTONLARI
========================================================= */

.filter-actions {
    margin-top: 20px;

    display: flex;

    align-items: center;

    gap: 10px;
}


.clear-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 100px;

    padding: 11px 18px;

    border-radius: 10px;

    background: var(--surface-soft);

    color: var(--text-secondary);

    border: 1px solid var(--border);

    text-decoration: none;

    font-size: 14px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


.clear-button:hover {
    background: var(--border);

    color: var(--text);

    border-color: var(--border-input);
}


/* =========================================================
   TRANSACTIONS - ÖZET KARTLARI
========================================================= */

.summary-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;

    margin-bottom: 30px;
}


.summary-card {
    background: var(--surface);

    border-radius: 16px;

    padding: 22px;

    border: 1px solid var(--border);

    box-shadow: var(--shadow);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.summary-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.08);
}


.summary-label {
    color: var(--text-secondary);

    font-size: 13px;
}


.summary-value {
    margin-top: 10px;

    font-size: 25px;

    font-weight: 700;

    color: var(--text);
}


/* =========================================================
   TRANSACTIONS - HAREKETLER
========================================================= */

.transactions-card {
    background: var(--surface);

    border-radius: 16px;

    padding: 25px;

    border: 1px solid var(--border);

    box-shadow: var(--shadow);

    overflow-x: auto;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.transactions-card h2 {
    margin: 0 0 20px;

    font-size: 20px;

    color: var(--text);
}


/* =========================================================
   TRANSACTIONS - TABLO
========================================================= */

.transactions-card table {
    width: 100%;

    border-collapse: separate;

    border-spacing: 0;

    min-width: 750px;
}


.transactions-card th {
    text-align: left;

    padding: 13px 12px;

    background: var(--surface-soft);

    color: var(--text-secondary);

    font-size: 12px;

    font-weight: 600;

    white-space: nowrap;
}


.transactions-card th:first-child {
    border-radius: 9px 0 0 9px;
}


.transactions-card th:last-child {
    border-radius: 0 9px 9px 0;
}


.transactions-card td {
    padding: 15px 12px;

    border-top:
        1px solid var(--border);

    font-size: 14px;

    vertical-align: middle;

    color: var(--text);
}


.transactions-card tbody tr {
    transition:
        background 0.15s ease;
}


.transactions-card tbody tr:hover {
    background: var(--surface-soft);
}


/* =========================================================
   TRANSACTIONS - TÜR ROZETLERİ
========================================================= */

.transactions-card .type-badge {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 5px 9px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: 600;

    white-space: nowrap;
}


.transactions-card .income-badge {
    background: var(--success-bg);

    color: var(--success-text);
}


.transactions-card .expense-badge {
    background: var(--error-bg);

    color: var(--error-text);
}


/* =========================================================
   TRANSACTIONS - TUTARLAR
========================================================= */

/*
   ÖNEMLİ:
   Burada .income-amount / .expense-amount
   GLOBAL olarak kullanılmıyor.

   Böylece Gelirler ve Giderler sayfasındaki
   kart tutarlarının rengi bozulmaz.
*/

.transactions-card .income-amount {
    color: var(--success-text);

    font-weight: 700;

    white-space: nowrap;
}


.transactions-card .expense-amount {
    color: var(--error-text);

    font-weight: 700;

    white-space: nowrap;
}


/* =========================================================
   TRANSACTIONS - AÇIKLAMA
========================================================= */

.transactions-card .description {
    color: var(--text-secondary);

    max-width: 250px;

    line-height: 1.45;
}


/* =========================================================
   TRANSACTIONS - BOŞ DURUM
========================================================= */

.transactions-card .empty {
    color: var(--text-secondary);
}


/* =========================================================
   TRANSACTIONS - TABLET
========================================================= */

@media (max-width: 1100px) {

    .filter-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .summary-grid {
        grid-template-columns:
            1fr;
    }

}


/* =========================================================
   TRANSACTIONS - MOBİL
========================================================= */

@media (max-width: 800px) {

    .filter-grid {
        grid-template-columns:
            1fr;
    }


    .filter-actions {
        flex-direction: column;

        align-items: stretch;
    }


    .filter-actions .button,
    .filter-actions .clear-button {
        width: 100%;

        text-align: center;
    }


    .summary-grid {
        grid-template-columns:
            1fr;

        gap: 15px;
    }


    .transactions-card {
        padding: 18px;
    }

}
.summary-grid {
    grid-template-columns: 1fr;
    gap: 15px;
}

.transactions-card {
    padding: 18px;
}

/* =========================================================
   TRANSACTIONS - KÜÇÜK MOBİL
========================================================= */

@media (max-width: 550px) {

    .filter-card,
    .summary-card,
    .transactions-card {
        padding: 18px;
    }


    .summary-value {
        font-size: 23px;
    }

}

/* =========================================================
   BORÇLAR - LİSTE
========================================================= */

.debts-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}


/* =========================================================
   BORÇ KARTI
========================================================= */

.debt-card {
    width: 100%;

    min-width: 0;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 16px;

    padding: 22px;

    box-shadow: var(--shadow);

    color: var(--text);

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* =========================================================
   BORÇ ÜST ALANI
========================================================= */

.debt-top {
    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 15px;
}


.debt-type {
    margin: 0 0 6px;

    font-size: 19px;

    color: var(--text);
}


.debt-creditor {
    color: var(--text-secondary);

    font-size: 13px;
}


/* =========================================================
   BORÇ DURUMU
========================================================= */

.debt-status {
    padding: 6px 9px;

    border-radius: 7px;

    background: var(--surface-soft);

    color: var(--text-secondary);

    border: 1px solid var(--border);

    font-size: 12px;

    white-space: nowrap;
}


/* =========================================================
   BORÇ TUTARI
========================================================= */

.debt-amount {
    margin-top: 25px;

    font-size: 26px;

    font-weight: 700;

    color: var(--text);
}


/* =========================================================
   TAKSİT
========================================================= */

.debt-installment {
    margin-top: 10px;

    color: var(--text-secondary);

    font-size: 13px;
}


/* =========================================================
   AÇIKLAMA
========================================================= */

.debt-description {
    margin-top: 18px;

    padding-top: 18px;

    border-top: 1px solid var(--border);

    color: var(--text-secondary);

    font-size: 13px;

    line-height: 1.5;

    overflow-wrap: anywhere;
}


/* =========================================================
   AKSİYONLAR
========================================================= */

.debt-actions {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 20px;

    padding-top: 18px;

    border-top: 1px solid var(--border);
}


.debt-actions form {
    margin: 0;

    padding: 0;
}


/* =========================================================
   BORÇLAR - TABLET
========================================================= */

@media (max-width: 1100px) {

    .debts-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   BORÇLAR - MOBİL
========================================================= */

@media (max-width: 550px) {

    .debt-card {
        padding: 18px;
    }

    .debt-top {
        flex-direction: column;
    }

    .debt-status {
        align-self: flex-start;
    }

    .debt-amount {
        font-size: 23px;
    }

    .debt-actions {
        flex-wrap: wrap;
    }

}

/* =========================================================
   USERS - KULLANICI YÖNETİMİ
========================================================= */

.users-top {
    margin-bottom: 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}


.user-count {
    color: var(--text-secondary);
    font-size: 14px;
}


.user-count strong {
    color: var(--text);
}


/* =========================================================
   YENİ KULLANICI
========================================================= */

.add-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 11px 18px;

    border-radius: 10px;

    background: var(--primary);
    color: var(--bg);

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.add-button:hover {
    background: var(--primary-hover);
    color: var(--bg);
}


/* =========================================================
   USERS KART
========================================================= */

.users-card {
    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 16px;

    box-shadow: var(--shadow);

    overflow: hidden;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}
.users-card table {
    width: 100%;
    border-collapse: collapse;
}

.users-card th {
    background: var(--surface-soft);
    color: var(--text-secondary);
}

.users-card td {
    color: var(--text);
    border-color: var(--border);
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}


.users-card table {
    width: 100%;

    border-collapse: collapse;

    min-width: 760px;
}


/* =========================================================
   TABLO BAŞLIĞI
========================================================= */

.users-card thead {
    background: var(--surface-soft);
}


.users-card th {
    padding: 15px 18px;

    text-align: left;

    font-size: 12px;
    font-weight: 700;

    color: var(--text-secondary);

    text-transform: uppercase;

    letter-spacing: 0.03em;

    border-bottom: 1px solid var(--border);
}


/* =========================================================
   TABLO SATIRLARI
========================================================= */

.users-card td {
    padding: 17px 18px;

    border-bottom: 1px solid var(--border);

    font-size: 14px;

    vertical-align: middle;

    color: var(--text);
}


.users-card tbody tr:last-child td {
    border-bottom: none;
}


.users-card tbody tr {
    transition: background 0.15s ease;
}


.users-card tbody tr:hover {
    background: var(--surface-soft);
}


/* =========================================================
   KULLANICI BİLGİSİ
========================================================= */

.user-name {
    margin-bottom: 4px;

    font-weight: 700;

    color: var(--text);
}


.user-email {
    color: var(--text-secondary);

    font-size: 13px;
}


/* =========================================================
   ROL ROZETLERİ
========================================================= */

.role-badge {
    display: inline-flex;

    align-items: center;

    padding: 6px 10px;

    border-radius: 20px;

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;
}


.role-super-admin {
    background: #ede9fe;
    color: #6d28d9;
}


.role-user {
    background: #eff6ff;
    color: #1d4ed8;
}


/* =========================================================
   DURUM ROZETLERİ
========================================================= */

.status-badge {
    display: inline-flex;

    align-items: center;

    padding: 6px 10px;

    border-radius: 20px;

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;
}


.status-active {
    background: var(--success-bg);
    color: var(--success-text);
}


.status-passive {
    background: var(--error-bg);
    color: var(--error-text);
}


/* =========================================================
   İŞLEMLER
========================================================= */

.actions {
    display: flex;

    align-items: center;

    gap: 8px;

    flex-wrap: wrap;
}


.actions form {
    margin: 0;
    padding: 0;
}


/* =========================================================
   DÜZENLE / SİL
========================================================= */

.actions .edit-button,
.actions .delete-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 8px 12px;

    border: 1px solid var(--border-input);

    border-radius: 8px;

    background: var(--surface);

    color: var(--text-secondary);

    text-decoration: none;

    font-family: inherit;

    font-size: 12px;

    line-height: 1.2;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


.actions .edit-button:hover {
    background: var(--surface-soft);

    color: var(--text);

    border-color: var(--border);
}


.actions .delete-button {
    color: var(--error-text);
}


.actions .delete-button:hover {
    background: var(--error-bg);

    color: var(--error-text);

    border-color: var(--border);
}


/* =========================================================
   MEVCUT KULLANICI
========================================================= */

.current-user {
    display: inline-flex;

    align-items: center;

    padding: 6px 10px;

    border-radius: 20px;

    background: var(--surface-soft);

    color: var(--text-secondary);

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;
}


/* =========================================================
   USERS BOŞ DURUM
========================================================= */

.users-card .empty {
    background: transparent;

    box-shadow: none;

    color: var(--text-secondary);
}


/* =========================================================
   USERS - MOBİL
========================================================= */

@media (max-width: 800px) {

    .users-top {
        flex-direction: column;

        align-items: stretch;
    }


    .add-button {
        width: 100%;
    }


    .users-card {
        border-radius: 12px;
    }

}


@media (max-width: 550px) {

    .users-card th,
    .users-card td {
        padding-left: 14px;
        padding-right: 14px;
    }

}

/* =========================================================
   BORÇLAR - TOPLAM BORÇ
========================================================= */

.debt-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.page-header-content {
    min-width: 0;
}

.total-debt-box {
    flex-shrink: 0;
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    text-align: right;
}

.total-debt-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.total-debt-value {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
}


/* =========================================================
   MOBİL
========================================================= */

@media (max-width: 800px) {

    .debt-page-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .total-debt-box {
        width: 100%;
        text-align: left;
        margin-bottom: 20px;
    }

    .total-debt-value {
        font-size: 18px;
    }

}


/* =========================================================
   GELİRLER - TOPLAM GELİR
========================================================= */

.income-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.income-page-header-content {
    min-width: 0;
}

.total-income-box {
    flex-shrink: 0;
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    text-align: right;
}

.total-income-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.total-income-value {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
}


/* =========================================================
   GELİRLER - MOBİL
========================================================= */

@media (max-width: 800px) {

    .income-page-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .total-income-box {
        width: 100%;
        text-align: left;
    }

    .total-income-value {
        font-size: 18px;
    }

}


/* =========================================================
   GİDERLER - TOPLAM GİDER
========================================================= */

.expense-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.expense-page-header-content {
    min-width: 0;
}

.total-expense-box {
    flex-shrink: 0;
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    text-align: right;
}

.total-expense-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.total-expense-value {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
}


/* =========================================================
   GİDERLER - MOBİL
========================================================= */

@media (max-width: 800px) {

    .expense-page-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .total-expense-box {
        width: 100%;
        text-align: left;
    }

    .total-expense-value {
        font-size: 18px;
    }

}




/* =========================================================
   DASHBOARD
========================================================= */


/* =========================================================
   WELCOME
========================================================= */

.welcome {
    margin-bottom: 30px;
}

.welcome h1 {
    margin: 0 0 8px;
    font-size: 28px;
}

.welcome p {
    margin: 0;
    color: var(--text-muted);
}


/* =========================================================
   SECTION
========================================================= */

.section-title {
    margin: 35px 0 15px;
    font-size: 20px;
    color: var(--text);
}


/* =========================================================
   FİNANSAL ÖZET
========================================================= */

.financial-summary {
    margin-bottom: 35px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.summary-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.summary-label {
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 13px;
}

.summary-value {
    color: var(--text);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.2;
}


/* =========================================================
   PİYASA KARTLARI
========================================================= */

.market-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.market-grid .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.market-grid .card-title {
    margin: 0 0 18px;
    color: var(--text);
    font-size: 18px;
}

.prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.price-label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 13px;
}

.price-value {
    color: var(--text);
    font-size: 20px;
    font-weight: 700;
}

.change {
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 14px;
}

.update {
    margin-top: 30px;
    color: var(--text-muted);
    font-size: 13px;
}


/* =========================================================
   GRAFİK
========================================================= */

.chart-card {
    margin-top: 30px;
    padding: 25px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.chart-card h2 {
    margin: 0 0 20px;
    color: var(--text);
    font-size: 20px;
}

.chart-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .summary-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .market-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 800px) {

    .summary-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .summary-card {
        padding: 18px;
    }

    .summary-value {
        font-size: 19px;
    }

    .market-grid {
        grid-template-columns: 1fr 1fr;
    }

    .chart-wrapper {
        height: 280px;
    }

}


@media (max-width: 550px) {

    .market-grid {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .welcome h1 {
        font-size: 24px;
    }

    .chart-card {
        padding: 18px;
    }

    .chart-card h2 {
        font-size: 18px;
    }

}


@media (max-width: 400px) {

    .summary-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   SIDEBAR TEMA SEÇİMİ
========================================================= */

.sidebar-theme {
    margin-bottom: 16px;
}

.sidebar-theme-title {
    margin-bottom: 8px;
    padding-left: 4px;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.9px;

    color: var(--text-muted);
}

.theme-switch {
    width: 100%;
    min-height: 44px;

    padding: 0 12px;

    display: flex;
    align-items: center;
    gap: 10px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--surface-soft);
    color: var(--text);

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    text-align: left;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.theme-switch:hover {
    background: var(--surface);
    border-color: var(--primary);
}

.theme-switch:active {
    transform: scale(0.98);
}

.theme-switch-icon {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 17px;

    flex-shrink: 0;
}

.theme-switch-text {
    flex: 1;
}



/* =========================================================
   TRANSACTIONS - MOBİL KARTLAR
========================================================= */

.mobile-transactions {
    display: none;
}


@media (max-width: 800px) {

    .desktop-transactions {
        display: none;
    }

    .mobile-transactions {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .transaction-mobile-card {
        padding: 16px;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: var(--surface);
    }

    .transaction-mobile-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 12px;
        font-size: 13px;
        color: var(--text-muted);
    }

    .transaction-mobile-name {
        font-size: 16px;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 14px;
    }

    .transaction-mobile-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        padding: 8px 0;
        border-top: 1px solid var(--border);
        font-size: 14px;
    }

    .transaction-mobile-row span {
        color: var(--text-muted);
    }

    .transaction-mobile-row strong {
        color: var(--text);
        text-align: right;
    }

    .transaction-mobile-note {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--border);
        font-size: 13px;
    }

    .transaction-mobile-note > span {
        display: block;
        margin-bottom: 5px;
        color: var(--text-muted);
        font-weight: 600;
    }

    .transaction-mobile-note > div {
        color: var(--text);
        line-height: 1.5;
    }

}


/* =========================================================
   USERS - MOBİL KART
========================================================= */

.mobile-users {
    display: none;
}


@media (max-width: 800px) {

    .table-wrapper {
        overflow: visible;
    }

    .users-table {
        display: none;
    }

    .mobile-users {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .user-mobile-card {
        padding: 16px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 14px;
        box-shadow: var(--shadow);
    }

    .user-mobile-top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
    }

    .user-mobile-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 0;
        border-top: 1px solid var(--border);
        font-size: 14px;
    }

    .user-mobile-row > span:first-child {
        color: var(--text-secondary);
    }

    .user-mobile-row strong {
        color: var(--text);
        text-align: right;
    }

    .user-mobile-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid var(--border);
    }

    .user-mobile-actions .edit-button,
    .user-mobile-actions .delete-button {
        flex: 1;
    }

    .user-mobile-actions form {
        flex: 1;
        margin: 0;
    }

}






/* =========================================================
   LOGIN PAGE
========================================================= */

.login-page {
    min-height: 100vh;
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background: var(--bg);
    color: var(--text);
}


.login-wrapper {
    width: 100%;
    max-width: 420px;
}


.login-card {
    width: 100%;

    padding: 40px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 20px;

    box-shadow: var(--shadow);
}


.login-logo {
    margin-bottom: 8px;

    text-align: center;

    font-size: 27px;
    font-weight: 800;

    color: var(--text);
}


.login-subtitle {
    margin-bottom: 30px;

    text-align: center;

    color: var(--text-secondary);

    font-size: 14px;
}


.login-message,
.login-error {
    margin-bottom: 20px;

    padding: 12px 14px;

    border-radius: 10px;

    font-size: 14px;

    text-align: center;
}


.login-message {
    background: var(--success-soft);
    color: var(--success);
}


.login-error {
    background: var(--danger-soft);
    color: var(--danger);
}


.login-form-group {
    margin-bottom: 20px;
}


.login-form-group label {
    display: block;

    margin-bottom: 8px;

    color: var(--text);

    font-size: 14px;
    font-weight: 600;
}


.login-form-group input {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: var(--surface);

    color: var(--text);

    font: inherit;

    outline: none;

    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}


.login-form-group input::placeholder {
    color: var(--text-muted);
}


.login-form-group input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px var(--primary-soft);
}


.login-button {
    width: 100%;

    padding: 14px;

    border: none;

    border-radius: 10px;

    background: #2563eb;

    color: #ffffff;

    font: inherit;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


.login-button:hover {
    opacity: 0.92;

    transform: translateY(-1px);
}


/* =========================================================
   LOGIN TEMA
========================================================= */

.login-theme {
    margin-top: 18px;

    display: flex;

    justify-content: center;
}


.login-theme-toggle {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 9px 14px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: var(--surface-soft);

    color: var(--text);

    font: inherit;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition: all 0.2s ease;
}


.login-theme-toggle:hover {
    background: var(--surface);

    border-color: var(--primary);
}


.login-theme-icon {
    font-size: 16px;
}


.login-register {
    margin-top: 22px;

    padding-top: 20px;

    border-top: 1px solid var(--border);

    text-align: center;

    color: var(--text-secondary);

    font-size: 14px;
}


.login-register a {
    color: var(--primary);

    font-weight: 700;

    text-decoration: none;
}


.login-register a:hover {
    text-decoration: underline;
}


/* =========================================================
   LOGIN MOBİL
========================================================= */

@media (max-width: 600px) {

    .login-page {
        padding: 16px;
    }


    .login-card {
        padding: 28px 22px;

        border-radius: 16px;
    }


    .login-logo {
        font-size: 24px;
    }

}
/* =========================================================
   LOGIN
========================================================= */

.login-page {
    background: var(--bg);
    color: var(--text);
}

.login-box {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.login-box h1 {
    color: var(--text);
}

.login-box .subtitle {
    color: var(--text-muted);
}

.login-box label {
    color: var(--text);
}

.login-box input {
    background: var(--surface-soft);
    color: var(--text);
    border: 1px solid var(--border);
}

.login-box input::placeholder {
    color: var(--text-muted);
}

.login-box input:focus {
    border-color: var(--primary);
}

.login-box .register-link {
    color: var(--text-muted);
    border-color: var(--border);
}

.login-box .register-link a {
    color: var(--primary);
}

/* =========================================================
   BORÇ ÖDEME BİLGİLERİ
========================================================= */

.debt-payment-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}


.debt-paid,
.debt-remaining {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}


/* ÖDENEN */

.debt-paid {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}


.debt-paid strong {
    display: block;
    margin-top: 4px;
    font-size: 15px;
    color: #059669;
}


/* KALAN */

.debt-remaining {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #c2410c;
}


.debt-remaining strong {
    display: block;
    margin-top: 4px;
    font-size: 15px;
    color: #ea580c;
}


/* =========================================================
   BORÇ KARTI - TAMAMLANAN BORÇ
========================================================= */

.debt-card.debt-completed {
    opacity: 0.85;
    border-color: #fecaca;
    background: #fff5f5;
}


.debt-card.debt-completed .debt-status {
    background: #fee2e2;
    color: #b91c1c;
}


/* =========================================================
   DARK MODE
========================================================= */

.theme-dark .debt-paid {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(52, 211, 153, 0.25);
    color: #6ee7b7;
}


.theme-dark .debt-paid strong {
    color: #34d399;
}


.theme-dark .debt-remaining {
    background: rgba(249, 115, 22, 0.12);
    border-color: rgba(251, 146, 60, 0.25);
    color: #fdba74;
}


.theme-dark .debt-remaining strong {
    color: #fb923c;
}


.theme-dark .debt-card.debt-completed {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(248, 113, 113, 0.25);
}


.theme-dark .debt-card.debt-completed .debt-status {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}


/* =========================================================
   MOBİL
========================================================= */

@media (max-width: 600px) {

    .debt-payment-info {
        grid-template-columns: 1fr;
    }

}




/* =========================================================
   BORÇ DURUM RENKLERİ
========================================================= */

.debt-card-active {
    border-left: 5px solid #2563eb;
}

.debt-card-completed {
    border-left: 5px solid #dc2626;
    background: #fff5f5;
}

.debt-card-cancelled {
    border-left: 5px solid #6b7280;
    background: #f3f4f6;
}


/* =========================================================
   BORÇ DURUM ETİKETLERİ
========================================================= */

.debt-status-active {
    background: #dcfce7;
    color: #166534;
}

.debt-status-completed {
    background: #fee2e2;
    color: #991b1b;
}

.debt-status-cancelled {
    background: #e5e7eb;
    color: #374151;
}


/* =========================================================
   DARK MODE - BORÇ DURUMLARI
========================================================= */

.theme-dark .debt-card-completed {
    background: #2a1719;
    border-left-color: #ef4444;
}

.theme-dark .debt-card-cancelled {
    background: #252525;
}

.theme-dark .debt-status-completed {
    background: #4c1d1d;
    color: #fca5a5;
}

.theme-dark .debt-status-cancelled {
    background: #374151;
    color: #d1d5db;
}


/* =========================================================
   BORÇ ÖDEME DURUM ETİKETLERİ
========================================================= */

.debt-paid-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 10px;
    background: #fee2e2;
    color: #991b1b;
    font-weight: 700;
    font-size: 14px;
}

.debt-cancelled-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 10px;
    background: #e5e7eb;
    color: #374151;
    font-weight: 700;
    font-size: 14px;
}

.theme-dark .debt-paid-badge {
    background: #4c1d1d;
    color: #fca5a5;
}

.theme-dark .debt-cancelled-badge {
    background: #374151;
    color: #d1d5db;
}

/* =========================================================
   BORÇ ÖDEME ALANI
========================================================= */

.debt-pay-form {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.payment-account-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.payment-account-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.payment-account-group select,
.debt-pay-form input[name="payment_amount"] {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.payment-account-group select:focus,
.debt-pay-form input[name="payment_amount"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.payment-account-group select {
    cursor: pointer;
    appearance: auto;
}


/* =========================================================
   ÖDEME TUTARI + BUTON
========================================================= */

.debt-pay-form form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.debt-pay-form input[name="payment_amount"] {
    font-weight: 600;
}

.debt-pay-form input[name="payment_amount"]::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.pay-button {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 12px;
    padding: 0 18px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.pay-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.pay-button:active {
    transform: translateY(0);
}


/* =========================================================
   DARK TEMA
========================================================= */

.theme-dark .payment-account-group select,
.theme-dark .debt-pay-form input[name="payment_amount"] {
    background: var(--surface-soft);
    color: var(--text);
    border-color: var(--border);
}

.theme-dark .payment-account-group select:focus,
.theme-dark .debt-pay-form input[name="payment_amount"]:focus {
    border-color: var(--primary);
}


/* =========================================================
   MOBİL
========================================================= */

@media (max-width: 800px) {

    .debt-pay-form {
        margin-top: 16px;
        padding-top: 16px;
    }

    .payment-account-group select,
    .debt-pay-form input[name="payment_amount"],
    .pay-button {
        min-height: 48px;
        font-size: 15px;
    }

}


/* =========================================================
   AYLIK TAKİP - FİNANSAL DÖNEM
========================================================= */

.month-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 20px;
    padding: 16px 18px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;

    box-shadow: var(--shadow-sm);
}

.month-selector-label {
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.month-selector form {
    margin: 0;
}

.month-selector select {
    min-width: 170px;
    height: 42px;

    padding: 0 38px 0 13px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--surface-soft);
    color: var(--text);

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.month-selector select:hover {
    border-color: var(--primary);
    background: var(--surface);
}

.month-selector select:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px var(--primary-soft);
}


/* =========================================================
   AYLIK TAKİP - MOBİL
========================================================= */

@media (max-width: 800px) {

    .month-selector {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;

        padding: 15px;
    }

    .month-selector-label {
        font-size: 13px;
    }

    .month-selector form {
        width: 100%;
    }

    .month-selector select {
        width: 100%;
        min-width: 0;
        height: 46px;
    }

}

/* =========================================================
   BORÇ KARTI - AKSİYON BUTONLARI
========================================================= */


/* =========================================================
   ÖDE / DÜZENLE / SİL
========================================================= */

.debt-pay-form .pay-button,
.debt-actions .edit-button,
.debt-actions .delete-button {
    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--surface);
    color: var(--text);

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
    text-decoration: none;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


/* =========================================================
   ÖDE
========================================================= */

.debt-pay-form .pay-button {
    width: 100%;
    min-height: 58px;
    padding: 14px 20px;

    font-size: 17px;
    font-weight: 700;
}

.debt-pay-form .pay-button:hover {
    background: var(--surface-soft);
    border-color: var(--border);
    color: var(--text);

    transform: translateY(-1px);
}


/* =========================================================
   DÜZENLE / SİL
========================================================= */

.debt-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.debt-actions .edit-button,
.debt-actions .delete-button {
    min-height: 44px;
    padding: 10px 18px;
}


/* =========================================================
   DÜZENLE HOVER
========================================================= */

.debt-actions .edit-button:hover {
    background: var(--surface-soft);
    border-color: #3b82f6;
    color: var(--text);

    transform: translateY(-1px);
}


/* =========================================================
   SİL HOVER
========================================================= */

.debt-actions .delete-button:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: #ef4444;
    color: #ef4444;

    transform: translateY(-1px);
}


/* =========================================================
   MOBİL
========================================================= */

@media (max-width: 600px) {

    .debt-pay-form .pay-button {
        min-height: 56px;
        font-size: 16px;
    }

    .debt-actions {
        gap: 10px;
    }

    .debt-actions .edit-button,
    .debt-actions .delete-button {
        min-height: 44px;
        padding: 10px 16px;
    }
}

/* =========================================================
   ÖDE - BİRAZ DAHA KOYU
========================================================= */

.debt-pay-form .pay-button {
    background: var(--surface-soft);
    border-color: var(--border);
}

.debt-pay-form .pay-button:hover {
    background: var(--surface);
    border-color: var(--border);
}




/* =========================================================
   BORÇ GRAFİĞİ
========================================================= */

.debt-chart-card {
    margin-bottom: 24px;
    padding: 28px;
    border-radius: 20px;

    background: var(--surface);
    border: 1px solid var(--border);

    box-shadow: var(--shadow);
}

.debt-chart-header h2 {
    margin: 0 0 6px;
}

.debt-chart-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.debt-chart {
    position: relative;

    width: 100%;
    max-width: 340px;
    height: 280px;

    margin: 20px auto;
}

.debt-chart-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.debt-chart-item {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 14px;

    border-radius: 14px;

    background: var(--surface-soft);
}

.debt-chart-item small {
    display: block;

    margin-bottom: 3px;

    color: var(--text-muted);
    font-size: 12px;
}

.debt-chart-item strong {
    display: block;

    font-size: 15px;
}

.debt-chart-dot {
    width: 11px;
    height: 11px;

    flex: 0 0 11px;

    border-radius: 50%;
}

.debt-chart-dot.total {
    background: #64748b;
}

.debt-chart-dot.paid {
    background: #22c55e;
}

.debt-chart-dot.remaining {
    background: #f59e0b;
}


@media (max-width: 600px) {

    .debt-chart-card {
        padding: 20px;
    }

    .debt-chart {
        height: 240px;
    }

    .debt-chart-summary {
        grid-template-columns: 1fr;
    }

}




/* =========================================================
   BAKIM MODU
========================================================= */

.maintenance-page {
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    color: var(--text);
}

.maintenance-container {
    width: 100%;
    max-width: 520px;
}

.maintenance-card {
    padding: 45px 35px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.maintenance-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface-soft);
    font-size: 36px;
}

.maintenance-card h1 {
    margin: 0 0 14px;
    font-size: 28px;
    font-weight: 700;
}

.maintenance-card p {
    margin: 0 auto;
    max-width: 420px;
    line-height: 1.7;
    color: var(--text-muted);
}

.maintenance-subtitle {
    margin-top: 8px !important;
}

.maintenance-status {
    margin-top: 28px;
    padding: 12px 16px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border-radius: 12px;
    background: var(--surface-soft);
    font-size: 14px;
    font-weight: 600;
}

.maintenance-dot {
    width: 9px;
    height: 9px;
    display: inline-block;
    border-radius: 50%;
    background: #f59e0b;
}


/* =========================================================
   BAKIM MODU - MOBİL
========================================================= */

@media (max-width: 600px) {

    .maintenance-page {
        padding: 16px;
    }

    .maintenance-card {
        padding: 35px 22px;
        border-radius: 20px;
    }

    .maintenance-icon {
        width: 68px;
        height: 68px;
        font-size: 30px;
    }

    .maintenance-card h1 {
        font-size: 24px;
    }

}




 

/* =========================================================
   TÜM BORÇLAR BUTONU
========================================================= */

.all-debts-trigger-card {
    margin: 22px 0;
}

.all-debts-trigger {
    width: 100%;
    border: 1px solid var(--border-color, #e5e7eb);
    background: var(--card-bg, #ffffff);
    color: inherit;
    border-radius: 18px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    cursor: pointer;
    transition: .2s ease;
}

.all-debts-trigger:hover {
    transform: translateY(-2px);
    border-color: #2563eb;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.all-debts-trigger-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37,99,235,.10);
    font-size: 21px;
    flex-shrink: 0;
}

.all-debts-trigger-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.all-debts-trigger-text strong {
    font-size: 15px;
}

.all-debts-trigger-text small {
    color: #6b7280;
    font-size: 12px;
}

.all-debts-trigger-arrow {
    font-size: 27px;
    color: #9ca3af;
}


/* =========================================================
   POPUP
========================================================= */

.debts-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.debts-modal.open {
    display: flex;
}

.debts-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.58);
    backdrop-filter: blur(4px);
}

.debts-modal-content {
    position: relative;
    z-index: 2;
    width: min(1100px, 100%);
    max-height: min(760px, 90vh);
    background: var(--card-bg, #fff);
    border-radius: 22px;
    box-shadow: 0 25px 70px rgba(0,0,0,.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.debts-modal-header {
    padding: 20px 22px 15px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.debts-modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.debts-modal-header p {
    margin: 5px 0 0;
    color: #6b7280;
    font-size: 13px;
}

.debts-modal-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: rgba(100,116,139,.10);
    color: inherit;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.debts-modal-search {
    margin: 15px 20px;
    height: 46px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
}

.debts-modal-search span {
    opacity: .65;
}

.debts-modal-search input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    font-size: 14px;
}

.debts-modal-list {
    overflow-y: auto;
    padding: 0 20px 20px;
}


/* =========================================================
   MASAÜSTÜ TABLO
========================================================= */

.debts-modal-table-header,
.debt-modal-row {
    display: grid;
    grid-template-columns:
        minmax(130px, 1.2fr)
        minmax(110px, 1fr)
        minmax(125px, 1fr)
        minmax(125px, 1fr)
        minmax(130px, 1.1fr)
        90px;
    align-items: center;
    column-gap: 12px;
}

.debts-modal-table-header {
    min-height: 38px;
    padding: 0 14px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.debt-modal-row {
    width: 100%;
    min-height: 58px;
    padding: 9px 14px;
    margin: 4px 0;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: .18s ease;
    font: inherit;
}

.debt-modal-row:hover {
    background: rgba(37,99,235,.06);
    border-color: rgba(37,99,235,.18);
    transform: translateX(2px);
}

.debt-modal-cell {
    min-width: 0;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.debt-modal-type strong {
    font-weight: 700;
}

.debt-modal-remaining {
    font-weight: 600;
}

.debt-modal-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.debt-modal-status.active {
    background: rgba(34,197,94,.12);
    color: #16a34a;
}

.debt-modal-status.completed {
    background: rgba(59,130,246,.12);
    color: #2563eb;
}

.debt-modal-status.cancelled {
    background: rgba(239,68,68,.12);
    color: #dc2626;
}

.debt-modal-mobile,
.debt-modal-row-arrow {
    display: none;
}

.debt-modal-empty {
    display: none;
    text-align: center;
    padding: 35px 15px;
    color: #6b7280;
    font-size: 14px;
}


/* =========================================================
   KARTA KAYINCA VURGU
========================================================= */

.debt-card.debt-card-highlight {
    animation: debtCardHighlight 1.4s ease;
}

@keyframes debtCardHighlight {

    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37,99,235,0);
    }

    25% {
        transform: scale(1.015);
        box-shadow: 0 0 0 5px rgba(37,99,235,.22);
    }

    70% {
        transform: scale(1.01);
        box-shadow: 0 0 0 4px rgba(37,99,235,.12);
    }

    100% {
        transform: scale(1);
        box-shadow: none;
    }

}


/* =========================================================
   MOBİL
========================================================= */

@media (max-width: 800px) {

    .debts-modal {
        padding: 10px;
        align-items: flex-end;
    }

    .debts-modal-content {
        width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
    }

    .debts-modal-header {
        padding: 17px 16px 13px;
    }

    .debts-modal-header h2 {
        font-size: 18px;
    }

    .debts-modal-search {
        margin: 12px 15px;
    }

    .debts-modal-list {
        padding: 0 12px 15px;
    }

    .debts-modal-table-header {
        display: none;
    }

    .debt-modal-row {
        display: block;
        position: relative;
        min-height: auto;
        padding: 14px 38px 14px 14px;
        margin: 7px 0;
        background: rgba(100,116,139,.045);
        border: 1px solid var(--border-color, #e5e7eb);
    }

    .debt-modal-cell {
        display: none;
    }

    .debt-modal-mobile {
        display: flex;
        flex-direction: column;
        gap: 5px;
        font-size: 12px;
        line-height: 1.45;
    }

    .debt-modal-mobile-title {
        font-size: 15px;
        margin-bottom: 3px;
    }

    .debt-modal-row-arrow {
        display: block;
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 25px;
        color: #9ca3af;
    }

}


/* =========================================================
   DARK MODE
========================================================= */

.theme-dark .debts-modal-content {
    background: #111827;
}

.theme-dark .debts-modal-search,
.theme-dark .debt-modal-row {
    border-color: rgba(255,255,255,.10);
}

.theme-dark .debt-modal-row:hover {
    background: rgba(59,130,246,.10);
}

.theme-dark .debts-modal-header {
    border-color: rgba(255,255,255,.10);
}


/* =========================================================
   GELİRLER - TÜM GELİRLER POPUP
========================================================= */

.all-incomes-trigger-card {
    margin-top: 25px;
}

.all-incomes-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.all-incomes-trigger:hover {
    transform: translateY(-2px);
    border-color: #2563eb;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.all-incomes-trigger-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eff6ff;
    font-size: 21px;
}

.all-incomes-trigger-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.all-incomes-trigger-text strong {
    font-size: 15px;
    color: #111827;
}

.all-incomes-trigger-text small {
    font-size: 13px;
    color: #6b7280;
}

.all-incomes-trigger-arrow {
    font-size: 28px;
    line-height: 1;
    color: #9ca3af;
}


/* =========================================================
   POPUP
========================================================= */

.incomes-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    visibility: hidden;
    opacity: 0;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

.incomes-modal.open {
    visibility: visible;
    opacity: 1;
}


/* ARKA PLAN */

.incomes-modal-overlay {
    position: absolute;
    inset: 0;

    background: rgba(15, 23, 42, 0.55);

    backdrop-filter: blur(3px);
}


/* POPUP KUTUSU */

.incomes-modal-content {
    position: relative;
    z-index: 1;

    width: min(850px, 100%);
    max-height: 85vh;

    display: flex;
    flex-direction: column;

    background: #ffffff;
    border-radius: 20px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.20);

    overflow: hidden;

    transform: translateY(15px) scale(0.98);

    transition:
        transform 0.2s ease;
}

.incomes-modal.open .incomes-modal-content {
    transform: translateY(0) scale(1);
}


/* =========================================================
   POPUP BAŞLIK
========================================================= */

.incomes-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    padding: 24px 25px 18px;

    border-bottom: 1px solid #e5e7eb;
}

.incomes-modal-header h2 {
    margin: 0 0 5px;

    font-size: 21px;
    line-height: 1.3;

    color: #111827;
}

.incomes-modal-header p {
    margin: 0;

    font-size: 13px;
    color: #6b7280;
}


/* KAPAT */

.incomes-modal-close {
    width: 40px;
    height: 40px;
    min-width: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 10px;

    background: #f3f4f6;
    color: #4b5563;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    transition: all 0.2s ease;
}

.incomes-modal-close:hover {
    background: #e5e7eb;
    color: #111827;
}


/* =========================================================
   ARAMA
========================================================= */

.incomes-modal-search {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 18px 25px;

    padding: 0 15px;

    height: 48px;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    background: #f9fafb;
}

.incomes-modal-search span {
    font-size: 17px;
    flex-shrink: 0;
}

.incomes-modal-search input {
    width: 100%;
    height: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    font-size: 14px;
    color: #111827;
}

.incomes-modal-search input::placeholder {
    color: #9ca3af;
}


/* =========================================================
   LİSTE
========================================================= */

.incomes-modal-list {
    padding: 0 25px 25px;

    overflow-y: auto;
}


/* =========================================================
   GELİR SATIRI
========================================================= */

.income-modal-row {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 15px;

    padding: 16px 15px;

    margin-bottom: 8px;

    border: 1px solid #e5e7eb;
    border-radius: 13px;

    background: #ffffff;

    text-align: left;

    cursor: pointer;

    transition: all 0.18s ease;
}

.income-modal-row:hover {
    border-color: #2563eb;

    background: #f8fbff;

    transform: translateX(3px);
}


/* ANA BİLGİ */

.income-modal-main {
    flex: 1;

    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 4px;
}

.income-modal-main strong {
    font-size: 14px;
    color: #111827;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.income-modal-main small {
    font-size: 12px;
    color: #6b7280;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* TUTAR */

.income-modal-amount {
    flex-shrink: 0;

    font-size: 14px;
    font-weight: 700;

    color: #16a34a;

    white-space: nowrap;
}


/* OK */

.income-modal-arrow {
    flex-shrink: 0;

    font-size: 25px;
    line-height: 1;

    color: #9ca3af;
}


/* BOŞ ARAMA */

.income-modal-empty {
    display: none;

    padding: 30px 15px;

    text-align: center;

    color: #6b7280;

    font-size: 14px;
}


/* =========================================================
   GELİR KARTI VURGULAMA
========================================================= */

.income-card {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.income-card-highlight {
    border-color: #2563eb !important;

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.15),
        0 15px 35px rgba(37, 99, 235, 0.15) !important;

    transform: translateY(-4px);
}


/* =========================================================
   DARK MODE
========================================================= */

.theme-dark .all-incomes-trigger {
    background: #1f2937;
    border-color: #374151;
}

.theme-dark .all-incomes-trigger-text strong {
    color: #f9fafb;
}

.theme-dark .all-incomes-trigger-text small {
    color: #9ca3af;
}

.theme-dark .all-incomes-trigger-icon {
    background: #26364f;
}

.theme-dark .incomes-modal-content {
    background: #111827;
}

.theme-dark .incomes-modal-header {
    border-color: #374151;
}

.theme-dark .incomes-modal-header h2 {
    color: #f9fafb;
}

.theme-dark .incomes-modal-header p {
    color: #9ca3af;
}

.theme-dark .incomes-modal-close {
    background: #1f2937;
    color: #d1d5db;
}

.theme-dark .incomes-modal-search {
    background: #1f2937;
    border-color: #374151;
}

.theme-dark .incomes-modal-search input {
    color: #f9fafb;
}

.theme-dark .income-modal-row {
    background: #1f2937;
    border-color: #374151;
}

.theme-dark .income-modal-row:hover {
    background: #26364f;
    border-color: #60a5fa;
}

.theme-dark .income-modal-main strong {
    color: #f9fafb;
}

.theme-dark .income-modal-main small {
    color: #9ca3af;
}

.theme-dark .income-modal-arrow {
    color: #6b7280;
}


/* =========================================================
   MOBİL
========================================================= */

@media (max-width: 600px) {

    .all-incomes-trigger {
        padding: 15px;
    }

    .all-incomes-trigger-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

    .all-incomes-trigger-text strong {
        font-size: 14px;
    }

    .all-incomes-trigger-text small {
        font-size: 12px;
    }


    .incomes-modal {
        padding: 10px;
        align-items: flex-end;
    }

    .incomes-modal-content {
        width: 100%;
        max-height: 90vh;

        border-radius: 20px 20px 15px 15px;
    }


    .incomes-modal-header {
        padding: 20px 18px 15px;
    }

    .incomes-modal-header h2 {
        font-size: 19px;
    }


    .incomes-modal-search {
        margin: 15px 18px;

        height: 46px;
    }


    .incomes-modal-list {
        padding: 0 18px 18px;
    }


    .income-modal-row {
        padding: 14px 13px;

        gap: 10px;
    }


    .income-modal-main strong {
        font-size: 13px;
    }

    .income-modal-main small {
        font-size: 11px;
    }


    .income-modal-amount {
        font-size: 13px;
    }


    .income-modal-arrow {
        font-size: 22px;
    }

}


/* =========================================================
   EXPENSES PAGE - TEMİZ EK CSS
   ========================================================= */

.expenses-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.expense-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 24px;
    transition: .2s ease;
}

.expense-card:hover {
    transform: translateY(-3px);
    border-color: #2563eb;
    box-shadow: 0 10px 25px rgba(0,0,0,.07);
}

.expense-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.expense-type {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
}

.expense-account {
    font-size: 14px;
    color: #6b7280;
}

.expense-amount {
    margin-top: 22px;
    font-size: 24px;
    font-weight: 800;
}

.expense-date {
    margin-top: 8px;
    color: #6b7280;
    font-size: 14px;
}

.expense-description {
    margin-top: 15px;
    padding: 12px;
    border-radius: 12px;
    background: #f8fafc;
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
}

.expense-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.edit-button,
.delete-button {
    min-height: 42px;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.edit-button {
    background: #2563eb;
    color: #fff;
}

.edit-button:hover {
    background: #1d4ed8;
}

.delete-form {
    margin: 0;
}

.delete-button {
    border: 0;
    background: #dc2626;
    color: #fff;
}

.delete-button:hover {
    background: #b91c1c;
}

.delete-button.loading,
.button.loading {
    opacity: .7;
    cursor: wait;
}

.button-spinner,
.delete-spinner {
    display: none;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: expenseSpin .7s linear infinite;
    margin-right: 8px;
}

.button.loading .button-spinner,
.delete-button.loading .delete-spinner {
    display: inline-block;
}

@keyframes expenseSpin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   TÜM GİDERLER KARTI
   ========================================================= */

.all-expenses-trigger-card {
    margin-top: 25px;
    grid-column: 1 / -1;
}

.all-expenses-trigger {
    width: 100%;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 18px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    text-align: left;
    transition: .2s ease;
}

.all-expenses-trigger:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

.all-expenses-trigger-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    flex-shrink: 0;
}

.all-expenses-trigger-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.all-expenses-trigger-text strong {
    font-size: 15px;
    color: #111827;
}

.all-expenses-trigger-text small {
    font-size: 13px;
    color: #6b7280;
}

.all-expenses-trigger-arrow {
    font-size: 28px;
    color: #94a3b8;
}


/* =========================================================
   GİDER POPUP
   ========================================================= */

.expenses-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.expenses-modal.open {
    display: block;
}

.expenses-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.6);
    backdrop-filter: blur(3px);
}

.expenses-modal-content {
    position: relative;
    z-index: 2;
    width: min(700px, calc(100% - 30px));
    max-height: calc(100vh - 40px);
    margin: 20px auto;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,.2);
    display: flex;
    flex-direction: column;
}

.expenses-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.expenses-modal-header h2 {
    margin: 0;
    font-size: 21px;
}

.expenses-modal-header p {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 14px;
}

.expenses-modal-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: #f1f5f9;
    color: #334155;
    font-size: 25px;
    cursor: pointer;
}

.expenses-modal-search {
    margin: 18px 24px;
    height: 48px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
}

.expenses-modal-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
}

.expenses-modal-list {
    overflow-y: auto;
    padding: 0 24px 24px;
}

.expense-modal-row {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #eef2f7;
    background: transparent;
    padding: 16px 4px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    cursor: pointer;
}

.expense-modal-row:hover {
    background: #f8fafc;
}

.expense-modal-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.expense-modal-main strong {
    font-size: 15px;
    color: #111827;
}

.expense-modal-main small {
    color: #64748b;
    font-size: 13px;
}

.expense-modal-amount {
    white-space: nowrap;
    font-weight: 700;
    color: #111827;
}

.expense-modal-arrow {
    font-size: 24px;
    color: #94a3b8;
}

.expense-modal-empty {
    display: none;
    padding: 30px 10px;
    text-align: center;
    color: #64748b;
}


/* =========================================================
   KART VURGULAMA
   ========================================================= */

.expense-card-highlight {
    animation: expenseHighlight 1.8s ease;
}

@keyframes expenseHighlight {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}


/* =========================================================
   MOBİL
   ========================================================= */

@media (max-width: 900px) {

    .expenses-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 600px) {

    .expenses-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .expense-card {
        padding: 20px;
        border-radius: 16px;
    }

    .expense-amount {
        font-size: 22px;
    }

    .expense-actions {
        width: 100%;
    }

    .edit-button,
    .delete-button {
        flex: 1;
    }

    .all-expenses-trigger-card {
        margin-top: 15px;
    }

    .all-expenses-trigger {
        padding: 15px;
    }

    .expenses-modal-content {
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
        margin: 10px auto;
        border-radius: 18px;
    }

    .expenses-modal-header {
        padding: 18px;
    }

    .expenses-modal-search {
        margin: 14px 18px;
    }

    .expenses-modal-list {
        padding: 0 18px 18px;
    }

    .expense-modal-row {
        gap: 10px;
    }

    .expense-modal-amount {
        font-size: 14px;
    }

}


/* =========================================================
   DARK MODE
   ========================================================= */

.theme-dark .expense-card,
.theme-dark .all-expenses-trigger,
.theme-dark .expenses-modal-content {
    background: #111827;
    border-color: #374151;
}

.theme-dark .expense-type,
.theme-dark .expense-amount,
.theme-dark .all-expenses-trigger-text strong,
.theme-dark .expenses-modal-header h2,
.theme-dark .expense-modal-main strong,
.theme-dark .expense-modal-amount {
    color: #f9fafb;
}

.theme-dark .expense-account,
.theme-dark .expense-date,
.theme-dark .expense-modal-main small,
.theme-dark .expenses-modal-header p,
.theme-dark .all-expenses-trigger-text small {
    color: #9ca3af;
}

.theme-dark .expense-description {
    background: #1f2937;
    color: #d1d5db;
}

.theme-dark .all-expenses-trigger-icon {
    background: #1e3a5f;
}

.theme-dark .expenses-modal-search {
    border-color: #374151;
    background: #1f2937;
}

.theme-dark .expenses-modal-search input {
    color: #f9fafb;
}

.theme-dark .expense-modal-row {
    border-color: #374151;
}

.theme-dark .expense-modal-row:hover {
    background: #1f2937;
}

.theme-dark .expenses-modal-close {
    background: #1f2937;
    color: #e5e7eb;
}




/* =========================================================
   TRANSACTIONS - TEK VE TEMİZ DÜZEN
========================================================= */

.transactions-page-card {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    grid-column: 1 / -1 !important;
}


/* =========================================================
   BAŞLIK
========================================================= */

.transactions-page-card .transactions-header {
    width: 100% !important;
    box-sizing: border-box !important;
}


/* =========================================================
   MASAÜSTÜ TABLO
========================================================= */

.transactions-page-card .desktop-transactions {
    display: table !important;

    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;

    box-sizing: border-box !important;

    /* EN ÖNEMLİSİ */
    table-layout: fixed !important;
}


/* =========================================================
   TABLO HÜCRELERİ
========================================================= */

.transactions-page-card .desktop-transactions th,
.transactions-page-card .desktop-transactions td {
    box-sizing: border-box !important;
}


/* =========================================================
   SÜTUN GENİŞLİKLERİ
========================================================= */

.transactions-page-card .desktop-transactions th:nth-child(1),
.transactions-page-card .desktop-transactions td:nth-child(1) {
    width: 11%;
}

.transactions-page-card .desktop-transactions th:nth-child(2),
.transactions-page-card .desktop-transactions td:nth-child(2) {
    width: 10%;
}

.transactions-page-card .desktop-transactions th:nth-child(3),
.transactions-page-card .desktop-transactions td:nth-child(3) {
    width: 17%;
}

.transactions-page-card .desktop-transactions th:nth-child(4),
.transactions-page-card .desktop-transactions td:nth-child(4) {
    width: 15%;
}

.transactions-page-card .desktop-transactions th:nth-child(5),
.transactions-page-card .desktop-transactions td:nth-child(5) {
    width: 14%;
}

.transactions-page-card .desktop-transactions th:nth-child(6),
.transactions-page-card .desktop-transactions td:nth-child(6) {
    width: 13%;
}

.transactions-page-card .desktop-transactions th:nth-child(7),
.transactions-page-card .desktop-transactions td:nth-child(7) {
    width: 20%;
}


/* =========================================================
   MOBİL LİSTE
========================================================= */

.transactions-page-card .mobile-transactions {
    width: 100% !important;
    box-sizing: border-box !important;
}


/* =========================================================
   PAGINATION
========================================================= */

.transactions-page-card .transactions-pagination {
    display: flex !important;

    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;

    width: 100% !important;

    gap: 8px !important;

    margin: 25px 0 10px !important;
    padding: 15px 0 !important;

    box-sizing: border-box !important;
}


.transactions-page-card .transactions-pagination a {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    min-width: 42px !important;
    height: 42px !important;

    padding: 0 12px !important;

    box-sizing: border-box !important;

    background: #26364f !important;
    color: #ffffff !important;

    border: 1px solid #26364f !important;
    border-radius: 8px !important;

    text-decoration: none !important;

    font-size: 14px !important;
    font-weight: 700 !important;
}


.transactions-page-card .transactions-pagination a:hover {
    background: #334a6b !important;
    border-color: #334a6b !important;
}


.transactions-page-card .transactions-pagination a.active {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}


/* =========================================================
   MASAÜSTÜ
========================================================= */

@media (min-width: 901px) {

    .transactions-page-card {
        width: 100% !important;
        grid-column: 1 / -1 !important;
    }

    .transactions-page-card .desktop-transactions {
        display: table !important;
        width: 100% !important;
    }

    .transactions-page-card .mobile-transactions {
        display: none !important;
    }

}


/* =========================================================
   MOBİL
========================================================= */

@media (max-width: 900px) {

    .transactions-page-card {
        width: 100% !important;
    }

    .transactions-page-card .desktop-transactions {
        display: none !important;
    }

    .transactions-page-card .mobile-transactions {
        display: block !important;
        width: 100% !important;
    }

}


/* =========================================================
   KÜÇÜK EKRAN PAGINATION
========================================================= */

@media (max-width: 600px) {

    .transactions-page-card .transactions-pagination {
        gap: 6px !important;
        padding: 15px 5px !important;
    }

    .transactions-page-card .transactions-pagination a {
        min-width: 38px !important;
        height: 38px !important;
        padding: 0 9px !important;
        font-size: 13px !important;
    }

}



/* =========================================================
   LOGIN HATA UYARISI
========================================================= */

.login-error {
    display: flex;
    align-items: center;
    gap: 12px;

    width: 100%;
    box-sizing: border-box;

    padding: 14px 16px;
    margin: 0 0 20px 0;

    background: #fef2f2;

    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;

    border-radius: 12px;

    color: #991b1b;

    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;

    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.08);
}

.login-error::before {
    content: "⚠️";

    flex-shrink: 0;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fee2e2;

    border-radius: 50%;

    font-size: 16px;
}


/* =========================================================
   DARK THEME
========================================================= */

.theme-dark .login-error {
    background: #351d20;

    border-color: #5f292e;
    border-left-color: #ef4444;

    color: #fecaca;

    box-shadow: none;
}

.theme-dark .login-error::before {
    background: #482428;
}

 /* =========================================================
   ALTIN EMOJİSİ
========================================================= */

.gold-market-emoji {
    display: inline-block;

    font-family:
        "Segoe UI Emoji",
        "Segoe UI Symbol",
        "Noto Color Emoji",
        "Apple Color Emoji",
        sans-serif;

    font-size: 20px;
    line-height: 1;

    font-style: normal;
    font-weight: 400;

    vertical-align: middle;
}