/* =================================
   NJ V1 — DESIGN SYSTEM
================================= */

:root {
    --bg: #f7f7f8;
    --surface: #ffffff;
    --sidebar: #111214;

    --text-primary: #18191c;
    --text-secondary: #737780;

    --border: #e8e9ed;

    --gold: #c6a15b;
    --gold-dark: #a98545;

    --green: #2f855a;
    --red: #c53030;

    --radius: 14px;
}


/* =================================
   RESET
================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    font-family: "Inter", sans-serif;

    background: var(--bg);
    color: var(--text-primary);
}

button,
input,
select {
    font: inherit;
}


/* =================================
   APP LAYOUT
================================= */

.app {
    display: flex;

    min-height: 100vh;
}


/* =================================
   SIDEBAR
================================= */

.sidebar {
    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    z-index: 100;

    width: 250px;

    padding: 30px 20px;

    display: flex;
    flex-direction: column;

    background: var(--sidebar);
    color: white;

    overflow-y: auto;
}

.brand {
    display: flex;
    align-items: center;

    gap: 14px;

    margin-bottom: 50px;
}

.brand-logo {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    overflow: hidden;
}

.brand-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.brand h2 {
    font-size: 18px;
}

.brand p {
    margin-top: 3px;

    color: #8f9298;

    font-size: 11px;
}


/* =================================
   NAVIGATION
================================= */

.nav-menu {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.nav-item {
    padding: 13px 15px;

    border-radius: 8px;

    color: #9fa2a8;

    text-decoration: none;

    font-size: 14px;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.nav-item:hover {
    background: #1c1e21;
    color: white;
}

.nav-item.active {
    background: #202225;

    color: var(--gold);
}


/* =================================
   MAIN CONTENT
================================= */

.main-content {
    width: calc(100% - 250px);

    max-width: 1600px;

    margin-left: 250px;

    padding: 45px;
}


/* =================================
   APP VIEWS
================================= */

.app-view {
    display: none;
}

.app-view.active-view {
    display: block;
}


/* =================================
   TOP BAR
================================= */

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

    gap: 20px;

    margin-bottom: 35px;
}

.page-label,
.panel-label {
    margin-bottom: 7px;

    color: var(--gold-dark);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.5px;
}

.topbar h1 {
    margin-bottom: 6px;

    font-size: 30px;
    font-weight: 600;
}

.welcome-text {
    color: var(--text-secondary);

    font-size: 14px;
}


/* =================================
   BUTTONS
================================= */

.add-button,
.submit-button,
#export-report-btn,
#import-transactions-btn {
    padding: 13px 20px;

    border: none;
    border-radius: 10px;

    background: var(--sidebar);

    color: white;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}

.add-button:hover,
.submit-button:hover,
#export-report-btn:hover,
#import-transactions-btn:hover:not(:disabled) {
    background: var(--gold-dark);
}

.add-button:active,
.submit-button:active,
#export-report-btn:active,
#import-transactions-btn:active:not(:disabled) {
    transform: translateY(1px);
}

#import-transactions-btn:disabled {
    cursor: not-allowed;

    opacity: 0.45;
}


/* =================================
   SUMMARY CARDS
================================= */

/* =================================
   SUMMARY CARDS
================================= */

.summary {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;

    margin-bottom: 25px;
}

.summary-card {
    position: relative;

    min-width: 0;
    min-height: 135px;

    padding: 24px 26px;

    border: 1px solid #e5e6e9;
    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #fcfcfc 100%
        );

    overflow: hidden;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.025);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.summary-card:hover {
    transform: translateY(-2px);

    border-color: #d9dadd;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.07);
}


/* TOP ACCENT */

.summary-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 3px;

    background: var(--gold);
}


/* SUBTLE BACKGROUND DETAIL */

.summary-card::after {
    content: "";

    position: absolute;

    width: 110px;
    height: 110px;

    right: -45px;
    top: -45px;

    border-radius: 50%;

    background:
        rgba(198, 161, 91, 0.06);

    pointer-events: none;
}


/* CARD LABEL */

.card-label {
    position: relative;
    z-index: 1;

    margin-bottom: 12px;

    color: var(--text-secondary);

    font-size: 11px;
    font-weight: 500;
}


/* CARD VALUE */

.summary-card h2 {
    position: relative;
    z-index: 1;

    margin-bottom: 9px;

    color: var(--text-primary);

    font-size: 28px;
    font-weight: 700;

    letter-spacing: -0.5px;
}


/* CARD DESCRIPTION */

.card-description {
    position: relative;
    z-index: 1;

    color: #9a9da4;

    font-size: 11px;
}


/* REVENUE */

.summary-card:nth-child(1)::before {
    background: #3a9b70;
}

.summary-card:nth-child(1)::after {
    background:
        rgba(58, 155, 112, 0.055);
}


/* EXPENSES */

.summary-card:nth-child(2)::before {
    background: #d75d5d;
}

.summary-card:nth-child(2)::after {
    background:
        rgba(215, 93, 93, 0.045);
}


/* NET PROFIT */

.summary-card:nth-child(3)::before {
    background: var(--gold);
}

.summary-card:nth-child(3)::after {
    background:
        rgba(198, 161, 91, 0.07);
}


/* REMOVE OLD PROFIT-ONLY BORDER */

.profit-card {
    border-top:
        1px solid #e5e6e9;
}

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

.dashboard-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 2fr)
        minmax(0, 1fr);

    gap: 20px;

    margin-bottom: 25px;

    align-items: start;
}

.dashboard-panel,
.transaction-section {
    min-width: 0;

    padding: 24px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--surface);
}

.panel-header {
    margin-bottom: 25px;
}

.panel-header h2,
.section-heading h2 {
    font-size: 17px;
    font-weight: 600;
}


/* =================================
   TRANSACTION COUNT BADGE
================================= */

#transaction-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 24px;
    height: 20px;

    margin-left: 6px;
    padding: 0 7px;

    border-radius: 999px;

    background: #f1eadb;
    color: var(--gold-dark);

    font-size: 11px;
    font-weight: 600;

    vertical-align: middle;
}


/* =================================
   FINANCE CHART
================================= */

.empty-chart {
    position: relative;

    width: 100%;
    height: 230px;

    border: 1px solid #ececef;
    border-radius: 12px;

    background: #ffffff;

    overflow: hidden;
}


/* =================================
   EMPTY STATE
================================= */

.empty-state {
    height: 230px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    color: var(--text-secondary);
}

.empty-state p {
    margin-bottom: 6px;

    font-size: 14px;
}

.empty-state span {
    color: #a4a7ad;

    font-size: 11px;
}


/* =================================
   TRANSACTION CONTROLS
================================= */

.transaction-controls {
    display: flex;

    gap: 10px;

    margin-top: 16px;
}

.transaction-controls input,
.transaction-controls select,
#transaction-sort {
    border: 1px solid var(--border);
    border-radius: 7px;

    background: white;

    color: var(--text-primary);

    outline: none;
}

.transaction-controls input,
.transaction-controls select {
    height: 38px;

    padding: 0 10px;

    font-size: 12px;
}

.transaction-controls input {
    min-width: 0;

    flex: 1;
}

.transaction-controls select {
    width: 110px;

    flex-shrink: 0;
}

.transaction-controls input:focus,
.transaction-controls select:focus,
#transaction-sort:focus {
    border-color: var(--gold);
}

#transaction-sort {
    width: 100%;

    margin-top: 12px;

    padding: 10px 12px;

    font-size: 12px;

    cursor: pointer;
}


/* =================================
   TRANSACTION LIST
================================= */

.transaction-list {
    width: 100%;

    min-height: 230px;

    margin-top: 12px;
}

.transaction-item {
    width: 100%;

    padding: 12px 0;

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

    gap: 15px;

    border-bottom: 1px solid var(--border);
}

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

.transaction-item span {
    color: var(--text-secondary);

    font-size: 13px;
}

.transaction-item strong {
    color: var(--text-primary);

    font-size: 14px;
}

.transaction-item.income strong {
    color: var(--green);
}

.transaction-item.expense strong {
    color: var(--red);
}

.transaction-info {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 4px;
}

.transaction-info span {
    color: var(--text-primary);

    font-size: 13px;

    overflow-wrap: anywhere;
}

.transaction-info small {
    color: var(--text-secondary);

    font-size: 10px;

    letter-spacing: 0.5px;

    text-transform: uppercase;
}

.transaction-actions {
    display: flex;
    align-items: center;

    gap: 14px;

    flex-shrink: 0;
}


/* =================================
   EDIT / DELETE BUTTONS
================================= */

.edit-button,
.delete-button {
    padding: 6px 10px;

    border-radius: 6px;

    background: transparent;

    font-size: 10px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.edit-button {
    border: 1px solid #d6c29a;

    color: var(--gold-dark);
}

.edit-button:hover {
    border-color: var(--gold-dark);

    background: var(--gold-dark);

    color: white;
}

.delete-button {
    border: 1px solid #e2b8b8;

    color: #b84a4a;
}

.delete-button:hover {
    border-color: #b84a4a;

    background: #b84a4a;

    color: white;
}


/* =================================
   TRANSACTION FORM
================================= */

.transaction-section {
    margin-bottom: 40px;
}

.section-heading {
    margin-bottom: 25px;
}

#transaction-form {
    display: grid;

    grid-template-columns:
        minmax(0, 2fr)
        minmax(0, 1fr)
        minmax(0, 1fr)
        minmax(0, 1fr)
        auto;

    gap: 15px;

    align-items: end;
}

.form-group {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;

    color: var(--text-secondary);

    font-size: 11px;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 42px;

    padding: 0 12px;

    border: 1px solid var(--border);
    border-radius: 7px;

    background: white;

    color: var(--text-primary);

    outline: none;
}

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

.submit-button {
    height: 42px;

    white-space: nowrap;
}


/* =================================
   REPORTS
================================= */

.reports-controls {
    display: flex;
    align-items: flex-end;

    gap: 18px;

    margin-top: 30px;
    margin-bottom: 30px;

    flex-wrap: wrap;
}

.report-date-field {
    display: flex;
    flex-direction: column;

    gap: 6px;
}

.report-date-field label {
    color: var(--text-primary);

    font-size: 14px;
    font-weight: 600;
}

.report-date-field input {
    height: 42px;

    padding: 0 14px;

    border: 1px solid #d9dce1;
    border-radius: 10px;

    background: white;

    color: var(--text-primary);

    outline: none;
}

.report-date-field input:focus {
    border-color: var(--gold);
}

#export-report-btn {
    height: 42px;

    margin-left: 4px;
}


/* =================================
   REPORT SUMMARY
================================= */

.reports-summary {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;
}

.report-card {
    width: 100%;
    min-width: 0;

    padding: 24px;

    border: 1px solid #e1e3e6;
    border-radius: 14px;

    background: white;
}

.report-card p {
    margin: 0 0 14px;

    color: #7a8089;

    font-size: 14px;
}

.report-card h3 {
    margin: 0;

    font-size: 26px;
    font-weight: 700;

    white-space: nowrap;
}


/* =================================
   REPORT TRANSACTIONS
================================= */

.report-transactions {
    width: 100%;

    margin-top: 30px;

    padding: 25px;

    border: 1px solid #e1e3e6;
    border-radius: 14px;

    background: white;
}

.report-transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 20px;

    margin-bottom: 20px;
}

.report-transactions-header h3 {
    margin: 5px 0 0;

    font-size: 20px;
}

#report-detail-count {
    color: #7a8089;

    font-size: 13px;

    white-space: nowrap;
}

#report-transaction-list {
    display: flex;
    flex-direction: column;
}

.report-transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    padding: 16px 0;

    border-bottom: 1px solid #e7e8eb;
}

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

.report-transaction-item > div {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.report-transaction-item > div:last-child {
    align-items: flex-end;
}

.report-transaction-item strong {
    font-size: 15px;
}

.report-transaction-item span {
    color: #7a8089;

    font-size: 12px;
}

.report-transaction-item.income
    > div:last-child strong {
    color: #27865d;
}

.report-transaction-item.expense
    > div:last-child strong {
    color: #d64040;
}

.report-empty-message {
    margin: 0;

    color: #7a8089;

    font-size: 14px;
}


/* =================================
   IMPORT
================================= */

.import-panel {
    margin-top: 30px;
    margin-bottom: 30px;

    padding: 24px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--surface);
}

.import-label {
    display: block;

    margin-bottom: 12px;

    color: var(--text-primary);

    font-size: 14px;
    font-weight: 600;
}

#import-file {
    width: 100%;

    padding: 11px 12px;

    border: 1px solid #d9dce1;
    border-radius: 10px;

    background: white;

    color: var(--text-secondary);

    cursor: pointer;
}

#import-file:focus {
    border-color: var(--gold);

    outline: none;
}

#import-file-name {
    margin-top: 12px;

    color: var(--text-secondary);

    font-size: 12px;
}


/* =================================
   IMPORT PREVIEW
================================= */

.import-preview {
    margin-bottom: 20px;

    padding: 25px;

    border: 1px solid #e1e3e6;
    border-radius: var(--radius);

    background: white;
}

.import-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 20px;

    margin-bottom: 20px;
}

.import-preview-header h3 {
    margin-top: 5px;

    font-size: 20px;
}

#import-preview-count {
    color: #7a8089;

    font-size: 13px;

    white-space: nowrap;
}

#import-preview-list {
    display: flex;
    flex-direction: column;
}

#import-transactions-btn {
    min-width: 165px;
}


/* =================================
   TABLET
================================= */

/* =================================
   TABLET / SMALL DESKTOP
================================= */

@media (max-width: 1300px) and (min-width: 801px) {

    .main-content {
        width: calc(100% - 250px);
        margin-left: 250px;
        padding: 25px;
    }

    /* Keep all 3 summary cards in one row */
    .summary {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .summary-card {
        padding: 20px;
    }

    .summary-card h2 {
        font-size: 23px;
    }

    /* Stack chart and transactions instead of squeezing them */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dashboard-panel {
        width: 100%;
        min-width: 0;
    }

    .empty-chart {
        height: 300px;
    }

    /* Transaction form */
    #transaction-form {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    #transaction-form .form-group {
        width: 100%;
        min-width: 0;
    }

    #transaction-form input,
    #transaction-form select,
    #transaction-form button {
        width: 100%;
    }

    /* Reports */
    .reports-summary {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* =================================
   MOBILE
================================= */

@media (max-width: 800px) {

    .app {
        display: block;

        width: 100%;
    }

    .sidebar {
        position: sticky;

        top: 0;
        left: 0;
        bottom: auto;

        z-index: 1000;

        width: 100%;
        height: auto;

        padding: 20px;

        overflow: visible;

        transition:
            padding 0.25s ease,
            background 0.25s ease,
            box-shadow 0.25s ease;
    }

    .sidebar.scrolled {
        padding: 12px 20px;

        background:
            rgba(17, 18, 20, 0.94);

        box-shadow:
            0 6px 20px
            rgba(0, 0, 0, 0.12);

        backdrop-filter:
            blur(10px);

        -webkit-backdrop-filter:
            blur(10px);
    }

    .sidebar.scrolled .brand {
        margin-bottom: 10px;

        transform:
            scale(0.85);

        transform-origin:
            left center;
    }

    .sidebar.scrolled .nav-menu {
        transform:
            scale(0.92);

        transform-origin:
            left center;
    }

    .nav-menu {
        width: 100%;

        display: flex;
        flex-direction: row;
        flex-wrap: wrap;

        gap: 8px;
    }

    .main-content {
        width: 100%;
        max-width: 100%;

        margin-left: 0;

        padding: 25px;
    }

    .topbar {
        width: 100%;

        flex-direction: column;
        align-items: flex-start;

        gap: 20px;
    }

    .add-button {
        width: 100%;
    }

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

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

    .dashboard-grid > * {
        min-width: 0;
    }

    #transaction-form {
        grid-template-columns: 1fr;
    }

    #transaction-form input,
    #transaction-form select,
    #transaction-form button {
        width: 100%;
    }

    .transaction-controls {
        flex-direction: column;
    }

    .transaction-controls select {
        width: 100%;
    }

    .transaction-item {
        align-items: flex-start;
    }

    .transaction-actions {
        gap: 6px;

        flex-wrap: wrap;

        justify-content: flex-end;
    }

    .reports-controls {
        flex-direction: column;

        align-items: stretch;
    }

    .report-date-field {
        width: 100%;
    }

    .report-date-field input {
        width: 100%;
    }

    #export-report-btn {
        width: 100%;

        margin-left: 0;
    }

    .reports-summary {
        grid-template-columns: 1fr;
    }

    .report-transactions {
        padding: 20px;
    }

    .report-transactions-header {
        flex-direction: column;

        align-items: flex-start;
    }

    .report-transaction-item {
        align-items: flex-start;
    }

    .report-transaction-item
        > div:last-child {
        align-items: flex-end;
    }

    .import-panel,
    .import-preview {
        padding: 20px;
    }

    .import-preview-header {
        flex-direction: column;

        align-items: flex-start;
    }

    #import-transactions-btn {
        width: 100%;
    }

    canvas {
        display: block;

        max-width: 100% !important;
    }
}


/* =================================
   SMALL MOBILE
================================= */

@media (max-width: 520px) {

    .main-content {
        padding: 20px 16px;
    }

    .sidebar {
        padding-left: 16px;
        padding-right: 16px;
    }

    .nav-item {
        padding: 10px 11px;

        font-size: 12px;
    }

    .summary-card,
    .dashboard-panel,
    .transaction-section {
        padding: 20px;
    }

    .transaction-item {
        flex-direction: column;
    }

    .transaction-actions {
        width: 100%;

        justify-content: flex-start;
    }

    .report-transaction-item {
        flex-direction: column;

        gap: 10px;
    }

    .report-transaction-item
        > div:last-child {
        align-items: flex-start;
    }
}

/* =================================
   DASHBOARD PANEL HEIGHT BALANCE
================================= */

#transactions-section {
    height: 356px;

    display: flex;
    flex-direction: column;
}

#transactions-section .panel-header {
    margin-bottom: 12px;
}

#transactions-section #transaction-sort {
    flex-shrink: 0;
}

#transactions-section .transaction-list {
    min-height: 0;
    flex: 1;

    overflow-y: auto;

    padding-right: 4px;
}

#transactions-section .transaction-list::-webkit-scrollbar {
    width: 6px;
}

#transactions-section .transaction-list::-webkit-scrollbar-thumb {
    background: #d6d7da;

    border-radius: 10px;
}

#transactions-section .transaction-list::-webkit-scrollbar-track {
    background: transparent;
}

/* =================================
   RECENT TRANSACTIONS — POLISH
================================= */

#transactions-section {
    height: 425px;

    display: flex;
    flex-direction: column;
}


/* HEADER */

#transactions-section .panel-header {
    margin-bottom: 14px;
}

#transactions-section .panel-header h2 {
    display: flex;
    align-items: center;

    gap: 7px;
}


/* SEARCH + FILTER */

#transactions-section .transaction-controls {
    margin-top: 18px;

    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        145px;

    gap: 12px;
}

#transactions-section .transaction-controls input,
#transactions-section .transaction-controls select {
    width: 100%;
    height: 42px;

    padding: 0 13px;

    border: 1px solid #e2e3e6;
    border-radius: 10px;

    background: #ffffff;

    font-size: 12px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

#transactions-section .transaction-controls input:focus,
#transactions-section .transaction-controls select:focus,
#transactions-section #transaction-sort:focus {
    border-color: var(--gold);

    box-shadow:
        0 0 0 3px
        rgba(198, 161, 91, 0.08);
}


/* SORT */

#transactions-section #transaction-sort {
    width: 100%;
    height: 42px;

    margin-top: 0;
    margin-bottom: 10px;

    padding: 0 13px;

    border: 1px solid #e2e3e6;
    border-radius: 10px;

    background: #ffffff;

    font-size: 12px;
}


/* TRANSACTION LIST */

#transactions-section .transaction-list {
    min-height: 0;

    flex: 1;

    margin-top: 2px;
    padding-right: 7px;

    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color: #e2e3e6 transparent;
}


/* ROW */

#transactions-section .transaction-item {
    min-height: 64px;

    padding: 13px 3px;

    gap: 16px;

    border-bottom: 1px solid #eeeeef;
}

#transactions-section .transaction-item:last-child {
    border-bottom: none;
}


/* DESCRIPTION */

#transactions-section .transaction-info {
    min-width: 0;

    gap: 5px;
}

#transactions-section .transaction-info span {
    color: var(--text-primary);

    font-size: 13px;
    font-weight: 600;

    line-height: 1.3;
}

#transactions-section .transaction-info small {
    color: #94979e;

    font-size: 9px;
    font-weight: 500;

    letter-spacing: 0.6px;
}


/* RIGHT SIDE */

#transactions-section .transaction-actions {
    display: flex;
    align-items: center;

    gap: 10px;

    flex-shrink: 0;
}

#transactions-section .transaction-amount {
    min-width: 90px;

    margin-right: 4px;

    text-align: right;

    font-size: 13px;
    font-weight: 700;
}


/* EDIT / DELETE */

#transactions-section .edit-button,
#transactions-section .delete-button {
    min-width: 52px;

    padding: 7px 10px;

    border-radius: 8px;

    font-size: 10px;
}


/* SCROLLBAR */

#transactions-section .transaction-list::-webkit-scrollbar {
    width: 4px;
}

#transactions-section .transaction-list::-webkit-scrollbar-track {
    background: transparent;
}

#transactions-section .transaction-list::-webkit-scrollbar-thumb {
    background: #e2e3e6;

    border-radius: 20px;
}

#transactions-section .transaction-list:hover::-webkit-scrollbar-thumb {
    background: #cfd1d5;
}


/* RESPONSIVE */

@media (max-width: 800px) {

    #transactions-section {
        height: auto;
        max-height: none;
    }

    #transactions-section .transaction-controls {
        grid-template-columns: 1fr;
    }

    #transactions-section .transaction-list {
        max-height: 340px;
    }
}

@media (max-width: 520px) {

    #transactions-section .transaction-actions {
        width: 100%;

        gap: 8px;

        justify-content: flex-start;
    }

    #transactions-section .transaction-amount {
        min-width: 80px;

        margin-right: auto;

        text-align: left;
    }
}

/* =================================
   ADD TRANSACTION — POLISH
================================= */

#transaction-form-section {
    padding: 28px 30px;

    border: 1px solid #e5e6e9;
    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.025);
}


/* HEADER */

#transaction-form-section .section-heading {
    margin-bottom: 24px;
}

#transaction-form-section .section-heading h2 {
    font-size: 20px;
}


/* FORM */

#transaction-form {
    gap: 16px;
}


/* LABELS */

#transaction-form .form-group label {
    margin-bottom: 8px;

    color: #737780;

    font-size: 11px;
    font-weight: 500;
}


/* INPUTS */

#transaction-form .form-group input,
#transaction-form .form-group select {
    height: 44px;

    padding: 0 14px;

    border: 1px solid #e1e3e6;
    border-radius: 10px;

    background: #ffffff;

    color: #18191c;

    font-size: 13px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* FOCUS */

#transaction-form .form-group input:focus,
#transaction-form .form-group select:focus {
    border-color: var(--gold);

    box-shadow:
        0 0 0 3px
        rgba(198, 161, 91, 0.08);

    outline: none;
}


/* PLACEHOLDER */

#transaction-form input::placeholder {
    color: #aaadb3;
}


/* BUTTON */

#transaction-form .submit-button {
    min-height: 44px;

    padding: 0 22px;

    border-radius: 10px;

    background: #111214;

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;
}

#transaction-form .submit-button:hover {
    background: var(--gold-dark);
}

/* =================================
   REPORTS — POLISH
================================= */

#reports-view .section-heading {
    margin-bottom: 26px;
}

#reports-view .section-heading h2 {
    font-size: 26px;
}


/* DATE RANGE CONTROLS */

#reports-view .reports-controls {
    margin-top: 0;
    margin-bottom: 22px;

    padding: 20px;

    display: grid;

    grid-template-columns:
        205px
        205px
        auto;

    align-items: end;

    gap: 14px;

    border: 1px solid #e5e6e9;
    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 4px 18px
        rgba(0, 0, 0, 0.025);
}

#reports-view .report-date-field label {
    margin-bottom: 2px;

    color: #737780;

    font-size: 11px;
    font-weight: 500;
}

#reports-view .report-date-field input {
    width: 100%;
    height: 44px;

    padding: 0 13px;

    border: 1px solid #e1e3e6;
    border-radius: 10px;

    font-size: 13px;
}

#reports-view .report-date-field input:focus {
    border-color: var(--gold);

    box-shadow:
        0 0 0 3px
        rgba(198, 161, 91, 0.08);
}

#reports-view #export-report-btn {
    height: 44px;

    min-width: 170px;
    width: auto;

    margin-left: 0;

    padding: 0 22px;

    white-space: nowrap;

    justify-self: end;
}


/* REPORT SUMMARY */

#reports-view .reports-summary {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;

    margin-bottom: 24px;
}

#reports-view .report-card {
    position: relative;

    min-height: 118px;

    padding: 22px 24px;

    border: 1px solid #e5e6e9;
    border-radius: 16px;

    background: #ffffff;

    overflow: hidden;

    box-shadow:
        0 4px 14px
        rgba(0, 0, 0, 0.025);
}

#reports-view .report-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 3px;
}

#reports-view .report-card:nth-child(1)::before {
    background: #3a9b70;
}

#reports-view .report-card:nth-child(2)::before {
    background: #d75d5d;
}

#reports-view .report-card:nth-child(3)::before {
    background: var(--gold);
}

#reports-view .report-card:nth-child(4)::before {
    background: #303238;
}

#reports-view .report-card p {
    margin-bottom: 12px;

    color: #7a8089;

    font-size: 11px;
}

#reports-view .report-card h3 {
    font-size: 25px;
    font-weight: 700;
}


/* TRANSACTION DETAILS */

#reports-view .report-transactions {
    margin-top: 0;

    padding: 26px 28px;

    border: 1px solid #e5e6e9;
    border-radius: 16px;

    box-shadow:
        0 4px 18px
        rgba(0, 0, 0, 0.025);
}

#reports-view .report-transactions-header {
    margin-bottom: 16px;

    padding-bottom: 16px;

    border-bottom: 1px solid #eeeeef;
}

#reports-view #report-detail-count {
    padding: 6px 10px;

    border-radius: 999px;

    background: #f4efe4;

    color: var(--gold-dark);

    font-size: 11px;
    font-weight: 600;
}

#reports-view .report-transaction-item {
    padding: 14px 0;
}


/* REPORTS RESPONSIVE */

@media (max-width: 1050px) {

    #reports-view .reports-summary {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    #reports-view .reports-controls {
        grid-template-columns:
            1fr
            1fr;
    }

    #reports-view #export-report-btn {
        width: 100%;

        margin-left: 0;

        grid-column:
            1 / -1;
    }
}

@media (max-width: 800px) {

    #reports-view .reports-summary {
        grid-template-columns: 1fr;
    }

    #reports-view .reports-controls {
        grid-template-columns: 1fr;
    }

    #reports-view #export-report-btn {
        grid-column: auto;
    }
}

#reports-view #export-report-btn {
    width: auto;
    min-width: 170px;

    justify-self: start;
}

/* =================================
   IMPORT — POLISH
================================= */

#import-view .section-heading {
    margin-bottom: 26px;
}

#import-view .section-heading h2 {
    font-size: 26px;
}


/* FILE SELECTION PANEL */

#import-view .import-panel {
    margin-top: 0;
    margin-bottom: 22px;

    padding: 28px;

    border: 1px solid #e5e6e9;
    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 4px 18px
        rgba(0, 0, 0, 0.025);
}

#import-view .import-label {
    margin-bottom: 12px;

    color: var(--text-primary);

    font-size: 13px;
    font-weight: 600;
}


/* FILE INPUT */

#import-view #import-file {
    width: 100%;

    padding: 8px;

    border: 1px solid #e1e3e6;
    border-radius: 10px;

    background: #ffffff;

    color: #737780;

    font-size: 13px;

    cursor: pointer;
}

#import-view #import-file::file-selector-button {
    margin-right: 14px;

    padding: 10px 16px;

    border: none;
    border-radius: 8px;

    background: #111214;

    color: #ffffff;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease;
}

#import-view #import-file::file-selector-button:hover {
    background: var(--gold-dark);
}


/* FILE NAME */

#import-view #import-file-name {
    margin-top: 12px;

    color: #92959c;

    font-size: 11px;
}


/* IMPORT PREVIEW */

#import-view .import-preview {
    min-height: 220px;

    margin-bottom: 18px;

    padding: 26px 28px;

    border: 1px solid #e5e6e9;
    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 4px 18px
        rgba(0, 0, 0, 0.025);
}

#import-view .import-preview-header {
    margin-bottom: 18px;

    padding-bottom: 16px;

    border-bottom: 1px solid #eeeeef;
}

#import-view .import-preview-header h3 {
    margin-top: 4px;

    font-size: 21px;
}


/* TRANSACTION COUNT BADGE */

#import-view #import-preview-count {
    padding: 6px 10px;

    border-radius: 999px;

    background: #f4efe4;

    color: var(--gold-dark);

    font-size: 11px;
    font-weight: 600;
}


/* EMPTY PREVIEW */

#import-view #import-preview-list {
    min-height: 110px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

#import-view .report-empty-message {
    color: #8d9097;

    font-size: 13px;
}


/* IMPORTED ROWS */

#import-view .report-transaction-item {
    padding: 13px 0;
}


/* IMPORT BUTTON */

#import-view #import-transactions-btn {
    min-width: 190px;
    height: 44px;

    padding: 0 22px;

    border-radius: 10px;

    font-size: 12px;
    font-weight: 600;
}

#import-view #import-transactions-btn:disabled {
    background: #d4d5d8;
    color: #ffffff;

    opacity: 1;

    cursor: not-allowed;
}


/* RESPONSIVE */

@media (max-width: 800px) {

    #import-view .import-panel,
    #import-view .import-preview {
        padding: 22px;
    }

    #import-view #import-transactions-btn {
        width: 100%;
    }
}

/* =================================
   TRANSACTIONS PAGE — POLISH
================================= */

#transactions-view {
    width: 100%;
}


/* PAGE HEADER */

#transactions-view .transactions-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 20px;

    margin-bottom: 28px;
}

#transactions-view .transactions-page-header h2 {
    margin-bottom: 6px;

    font-size: 28px;
    font-weight: 600;
}

#transactions-view .transactions-page-subtitle {
    color: var(--text-secondary);

    font-size: 13px;
}


/* ADD BUTTON */

#transactions-view .transactions-page-add-button {
    min-width: 155px;
    height: 44px;

    padding: 0 20px;

    border: none;
    border-radius: 10px;

    background: #111214;
    color: #ffffff;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

#transactions-view .transactions-page-add-button:hover {
    background: var(--gold-dark);
}

#transactions-view .transactions-page-add-button:active {
    transform: translateY(1px);
}


/* MAIN PANEL */

#transactions-view .transactions-page-panel {
    padding: 26px 28px;

    border: 1px solid #e5e6e9;
    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 4px 18px
        rgba(0, 0, 0, 0.025);
}


/* TOOLBAR */

#transactions-view .transactions-page-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: 24px;

    padding-bottom: 20px;

    border-bottom: 1px solid #eeeeef;
}


/* TITLE */

#transactions-view .transactions-page-title h3 {
    display: flex;
    align-items: center;

    gap: 8px;

    font-size: 21px;
    font-weight: 600;
}

#transactions-view #transactions-page-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 26px;
    height: 22px;

    padding: 0 8px;

    border-radius: 999px;

    background: #f4efe4;
    color: var(--gold-dark);

    font-size: 11px;
    font-weight: 600;
}


/* FILTERS */

#transactions-view .transactions-page-filters {
    display: grid;

    grid-template-columns:
        minmax(220px, 1fr)
        120px
        160px;

    gap: 10px;

    width: min(100%, 620px);
}

#transactions-view .transactions-page-filters input,
#transactions-view .transactions-page-filters select {
    width: 100%;
    height: 42px;

    padding: 0 12px;

    border: 1px solid #e1e3e6;
    border-radius: 10px;

    background: #ffffff;
    color: var(--text-primary);

    font-size: 12px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

#transactions-view .transactions-page-filters input:focus,
#transactions-view .transactions-page-filters select:focus {
    border-color: var(--gold);

    box-shadow:
        0 0 0 3px
        rgba(198, 161, 91, 0.08);
}


/* TRANSACTION LIST */

#transactions-view .transactions-page-list {
    margin-top: 8px;
}


/* EMPTY STATE */

#transactions-view .transactions-page-empty {
    min-height: 260px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

#transactions-view .transactions-page-empty p {
    margin-bottom: 7px;

    color: var(--text-primary);

    font-size: 14px;
    font-weight: 600;
}

#transactions-view .transactions-page-empty span {
    color: var(--text-secondary);

    font-size: 12px;
}


/* TRANSACTION ROW */

#transactions-view .transactions-page-item {
    display: grid;

    grid-template-columns:
        minmax(0, 2fr)
        130px
        120px
        120px
        auto;

    align-items: center;

    gap: 16px;

    min-height: 70px;

    padding: 14px 4px;

    border-bottom: 1px solid #eeeeef;
}

#transactions-view .transactions-page-item:last-child {
    border-bottom: none;
}


/* DESCRIPTION */

#transactions-view .transactions-page-item-description {
    min-width: 0;
}

#transactions-view .transactions-page-item-description strong {
    display: block;

    margin-bottom: 5px;

    color: var(--text-primary);

    font-size: 13px;
    font-weight: 600;

    overflow-wrap: anywhere;
}

#transactions-view .transactions-page-item-description span {
    color: #92959c;

    font-size: 10px;

    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* DATE / TYPE */

#transactions-view .transactions-page-item-date,
#transactions-view .transactions-page-item-type {
    color: var(--text-secondary);

    font-size: 12px;
}

#transactions-view .transactions-page-item-type {
    text-transform: capitalize;
}


/* AMOUNT */

#transactions-view .transactions-page-item-amount {
    text-align: right;

    font-size: 13px;
    font-weight: 700;
}

#transactions-view .transactions-page-item.income
    .transactions-page-item-amount {
    color: var(--green);
}

#transactions-view .transactions-page-item.expense
    .transactions-page-item-amount {
    color: var(--red);
}


/* ACTIONS */

#transactions-view .transactions-page-item-actions {
    display: flex;

    gap: 8px;

    justify-content: flex-end;
}

#transactions-view .transactions-page-edit,
#transactions-view .transactions-page-delete {
    min-width: 50px;

    padding: 6px 9px;

    border-radius: 7px;

    background: transparent;

    font-size: 10px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

#transactions-view .transactions-page-edit {
    border: 1px solid #d6c29a;

    color: var(--gold-dark);
}

#transactions-view .transactions-page-edit:hover {
    border-color: var(--gold-dark);

    background: var(--gold-dark);
    color: white;
}

#transactions-view .transactions-page-delete {
    border: 1px solid #e2b8b8;

    color: #b84a4a;
}

#transactions-view .transactions-page-delete:hover {
    border-color: #b84a4a;

    background: #b84a4a;
    color: white;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    #transactions-view .transactions-page-header {
        flex-direction: column;
    }

    #transactions-view .transactions-page-add-button {
        width: 100%;
    }

    #transactions-view .transactions-page-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    #transactions-view .transactions-page-filters {
        width: 100%;

        grid-template-columns:
            1fr
            120px
            160px;
    }

    #transactions-view .transactions-page-item {
        grid-template-columns:
            minmax(0, 1fr)
            110px
            100px
            auto;
    }

    #transactions-view .transactions-page-item-date {
        display: none;
    }
}


@media (max-width: 800px) {

    #transactions-view .transactions-page-filters {
        grid-template-columns: 1fr;
    }

    #transactions-view .transactions-page-item {
        grid-template-columns: 1fr;

        gap: 8px;
    }

    #transactions-view .transactions-page-item-date,
    #transactions-view .transactions-page-item-type,
    #transactions-view .transactions-page-item-amount {
        text-align: left;
    }

    #transactions-view .transactions-page-item-actions {
        justify-content: flex-start;
    }
}

/* REPORT EXPORT ALIGNMENT FIX */

#reports-view .reports-controls {
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

#reports-view #export-report-btn {
    width: auto;
    min-width: 170px;
    height: 44px;

    margin-left: auto;

    padding: 0 22px;

    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 800px) {

    #reports-view .reports-controls {
        flex-direction: column;
        align-items: stretch;
    }

    #reports-view #export-report-btn {
        width: 100%;
        margin-left: 0;
    }
}
/* =================================
   DASHBOARD — EQUAL PANEL HEIGHT
================================= */

@media (min-width: 1301px) {

    .dashboard-grid {
        align-items: stretch;
    }

    .chart-panel {
        display: flex;
        flex-direction: column;
    }

    .chart-panel .empty-chart {
        flex: 1;

        height: auto;
        min-height: 230px;
    }

}
/* =================================
   TRANSACTIONS — COLUMN HEADERS
================================= */

#transactions-view .transactions-page-columns {
    display: grid;

    grid-template-columns:
        minmax(0, 2fr)
        130px
        120px
        120px
        120px;

    align-items: center;

    gap: 16px;

    margin-top: 18px;
    padding: 12px 4px;

    border-top: 1px solid #eeeeef;
    border-bottom: 1px solid #eeeeef;

    color: #92959c;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.7px;
    text-transform: uppercase;
}


/* Match transaction rows to the headers */

#transactions-view .transactions-page-item {
    grid-template-columns:
        minmax(0, 2fr)
        130px
        120px
        120px
        120px;
}


/* Header alignment */

#transactions-view .transactions-page-columns .column-amount {
    text-align: right;
}

#transactions-view .transactions-page-columns .column-actions {
    text-align: center;
}


/* Actions column */

#transactions-view .transactions-page-item-actions {
    width: 120px;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 8px;
}


/* =================================
   TABLET
================================= */

@media (max-width: 900px) and (min-width: 801px) {

    #transactions-view .transactions-page-columns,
    #transactions-view .transactions-page-item {
        grid-template-columns:
            minmax(140px, 1fr)
            90px
            110px
            120px;

        gap: 10px;
    }

    /* Hide Date */
    #transactions-view .transactions-page-columns span:nth-child(2),
    #transactions-view .transactions-page-item-date {
        display: none;
    }

    #transactions-view .transactions-page-item-actions {
        width: 120px;
    }
}


/* =================================
   MOBILE
================================= */

@media (max-width: 800px) {

    #transactions-view .transactions-page-columns {
        display: none;
    }
}

/* Transactions — restore mobile layout */
@media (max-width: 800px) {

    #transactions-view .transactions-page-item {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    #transactions-view .transactions-page-item-date {
        display: block;
    }

    #transactions-view .transactions-page-item-date,
    #transactions-view .transactions-page-item-type,
    #transactions-view .transactions-page-item-amount {
        text-align: left;
    }

    #transactions-view .transactions-page-item-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}


/* =====================================
   NJ V1 — AUTHENTICATION
===================================== */

.auth-screen {
    min-height: 100vh;
    padding: 48px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111214;
}

.auth-screen[hidden] {
    display: none !important;
}

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

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

.auth-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    margin-bottom: 12px;
}

.auth-brand h1 {
    color: #c6a15b;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 2px;
}

.auth-brand p {
    margin-top: 6px;
    color: #a1a3a8;
    font-size: 13px;
}

.auth-card {
    padding: 36px;
    border: 1px solid #303136;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.auth-heading {
    margin-bottom: 28px;
    text-align: center;
}

.auth-heading h2 {
    margin-bottom: 8px;
    color: #18191c;
    font-size: 25px;
    font-weight: 700;
}

.auth-heading p {
    color: #737780;
    font-size: 13px;
    line-height: 1.6;
}

.auth-field {
    margin-bottom: 20px;
}

.auth-field label {
    display: block;
    margin-bottom: 9px;
    color: #34363b;
    font-size: 12px;
    font-weight: 600;
}

.auth-field input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #e1e3e6;
    border-radius: 10px;
    background: #ffffff;
    color: #18191c;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-field input:focus {
    border-color: #c6a15b;
    box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.12);
}

.auth-message {
    margin-bottom: 16px;
    color: #737780;
    font-size: 12px;
    line-height: 1.6;
}

.auth-message:empty {
    display: none;
}

.auth-submit-button {
    width: 100%;
    min-height: 46px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    background: #111214;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-submit-button:hover:not(:disabled) {
    background: #a98545;
}

.auth-submit-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.auth-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 26px;
}

.auth-footer p {
    color: #737780;
    font-size: 12px;
}

.auth-switch-button {
    padding: 0;
    border: none;
    background: transparent;
    color: #a98545;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.auth-switch-button:hover {
    text-decoration: underline;
}

.auth-copyright {
    margin-top: 28px;
    color: #85878d;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 520px) {
    .auth-screen {
        padding: 28px 16px;
    }

    .auth-card {
        padding: 28px 22px;
    }

    .auth-heading h2 {
        font-size: 22px;
    }
}

/* NJ V1 — Prevent unauthenticated app display */
#nj-app[hidden] {
    display: none !important;
}


/* NJ V1 — Authentication visibility */

#auth-screen[hidden],
#nj-app[hidden] {
    display: none !important;
}


/* ==========================================
   NJ V1 — LOGOUT BUTTON
========================================== */

.sidebar-logout {
    margin-top: auto;
    padding: 20px 14px 24px;
    border-top: 1px solid rgba(212, 175, 55, 0.18);
}

.logout-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;

    width: 100%;
    padding: 14px 16px;

    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 12px;

    background: rgba(212, 175, 55, 0.06);
    color: #d8c8a1;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.logout-button::before {
    content: "";
    display: block;
    flex-shrink: 0;
    width: 18px;
    height: 18px;

    background-color: currentColor;

    -webkit-mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpath d='m16 17 5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3C/svg%3E")
        center / contain no-repeat;

    mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpath d='m16 17 5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3C/svg%3E")
        center / contain no-repeat;
}

.logout-button:hover {
    background: rgba(212, 175, 55, 0.14);
    border-color: rgba(212, 175, 55, 0.55);
    color: #f0d88d;
    transform: translateY(-1px);
}

.logout-button:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 3px;
}

.logout-button:active {
    transform: translateY(0);
}

.logout-button:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none;
}

/* Mobile adjustments */
@media (max-width: 800px) {
    .sidebar-logout {
        margin-top: 12px;
        padding: 12px 10px;
    }

    .logout-button {
        justify-content: center;
        padding: 12px 14px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .logout-button {
        transition: none;
    }
}
