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

@media (max-width: 768px) {

    /* TOP NAV */
    .top-nav {
        padding: 0 12px;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .top-nav::-webkit-scrollbar {
        display: none;
    }

    .top-nav-brand {
        font-size: 0.85rem;
        display: none;
    }

    .top-nav-links {
        gap: 4px;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .top-nav-links::-webkit-scrollbar {
        display: none;
    }

    .top-nav-item {
        font-size: 0.75rem;
        padding: 6px 10px;
        white-space: nowrap;
    }

    .top-nav-hint {
        display: none;
    }

    /* MAIN AREA */
    .mainArea {
        padding: 1rem;
        margin-left: 0;
    }

    /* SECTION TITLES */
    .section-title {
        font-size: 1.5rem;
    }

    /* TASKS */
    .add-task {
        flex-direction: column;
    }

    .add-task input,
    .add-task select,
    .add-task button {
        width: 100%;
    }

    .stats {
        flex-direction: column;
    }

    .deadline-add,
    .exam-add {
        flex-direction: column;
    }

    .deadline-add input,
    .deadline-add button,
    .exam-add input,
    .exam-add button {
        width: 100%;
    }

    /* GOALS */
    .goals-grid {
        grid-template-columns: 1fr;
    }

    /* INCOME */
    .income-summary {
        grid-template-columns: repeat(1, 1fr);
    }

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

    .add-transaction input,
    .add-transaction select,
    .add-transaction button {
        width: 100%;
    }

    /* LEARNING */
    .learn-stats {
        grid-template-columns: repeat(1, 1fr);
    }

    .learn-add-row {
        flex-direction: column;
    }

    .learn-add-row input,
    .learn-add-row select,
    .learn-add-row button {
        width: 100%;
    }

    .deadlines {
        display: flex;
        flex-direction: column;
    }

    .deadlines input{
        width: 300px;
    }
    .deadline-add button {width: 300px;}

    /* CLIENTS */
    .pipeline-stats {
        grid-template-columns: repeat(1, 1fr);
    }

    .client-add-row {
        flex-direction: column;
    }

    .client-add-row input,
    .client-add-row select,
    .client-add-row button {
        width: 100%;
    }

    .client-filters {
        flex-wrap: wrap;
        gap: 6px;
    }

    /* NOTES */
    .notes-tabs {
        flex-wrap: wrap;
    }

    .flash-review {
        flex-direction: column;
    }

    /* CALCULATOR */
    .calc-wrap {
        max-width: 100%;
    }

    .grade-add {
        flex-direction: column;
    }

    .grade-add input,
    .grade-add button {
        width: 100%;
    }

    /* DOCUMENTS */
    .docs-layout {
        flex-direction: column;
    }

    .docs-sidebar {
        width: 100%;
    }

    /* POMODORO */
    .pomo-modes {
        flex-wrap: wrap;
        gap: 6px;
    }

    .pomo-stats {
        gap: 1rem;
    }

    /* DASHBOARD */
    .dash-header {
        flex-direction: column;
    }

    .dash-quote {
        max-width: 100%;
    }

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

    .dash-quicklinks {
        gap: 0.5rem;
    }

    .dash-quicklinks button {
        font-size: 0.78rem;
        padding: 0.5rem 0.75rem;
    }

    /* RENTAL */
    .rental-grid {
        grid-template-columns: 1fr;
    }

    .rental-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .rental-row label {
        min-width: unset;
    }

    .rental-row input {
        width: 100%;
    }

    /* JOURNAL */
    .journal-grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    .journal-write {
        width: 290px;
    }

        /* SIDE NAV — bottom sheet on mobile */
    .side-nav {
        top: unset;
        bottom: 0;
        right: 0;
        left: 0;
        flex-direction: row;
        align-items: flex-end;
        justify-content: flex-end;
        z-index: 300;
    }

    .side-nav-tab {
        border-radius: 12px 12px 0 0;
        width: 56px;
        height: 36px;
        margin-right: 16px;
        position: relative;
    }

    .side-nav-tab::before {
        content: '';
        display: block;
        width: 32px;
        height: 4px;
        background: rgba(255,255,255,0.4);
        border-radius: 2px;
        margin: 0 auto;
    }

    .side-nav-content {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        top: unset;
        border-radius: 20px 20px 0 0;
        max-height: 75vh;
        transform: translateY(110%);
        min-width: unset;
        width: 100%;
        padding: 24px 20px;
        box-sizing: border-box;
    }

    .side-nav:hover .side-nav-content {
        transform: translateY(110%);
    }

    .side-nav.open .side-nav-content {
        transform: translateY(0);
    }

    .side-nav-item {
        font-size: 1rem;
        padding: 12px 16px;
    }

    .about-panel {
        margin-top: 1rem;
    }
}