/* =========================================================
   EXPENSE MANAGER
   COMPLETE STYLESHEET
   ========================================================= */

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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: #F8FAFC;
    color: #334155;
    line-height: 1.6;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}


/* =========================
   VARIABLES
   ========================= */

:root {
    --primary: #0F766E;
    --primary-dark: #115E59;
    --primary-light: #CCFBF1;

    --background: #F8FAFC;
    --white: #FFFFFF;

    --income: #22C55E;
    --income-light: #DCFCE7;

    --expense: #EF4444;
    --expense-light: #FEE2E2;

    --text: #334155;
    --text-dark: #0F172A;
    --text-light: #64748B;
    --muted: #94A3B8;

    --border: #E2E8F0;
    --border-light: #F1F5F9;

    --sidebar-width: 250px;

    --shadow-sm:
        0 1px 3px rgba(15, 23, 42, 0.06);

    --shadow:
        0 8px 25px rgba(15, 23, 42, 0.06);

    --shadow-lg:
        0 15px 40px rgba(15, 23, 42, 0.09);

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
}


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

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}


/* =========================================================
   AUTH PAGES
   ========================================================= */

.auth-page {
    min-height: 100vh;
    background: var(--background);
}

.auth-navbar {
    height: 76px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6%;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--text-dark);
    font-size: 19px;
}

.auth-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--primary);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.auth-nav-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

.auth-nav-link:hover {
    color: var(--primary-dark);
}

.auth-container {
    width: min(1100px, 92%);
    min-height: calc(100vh - 76px);
    margin: auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 70px;
    padding: 60px 0;
}

.auth-intro {
    max-width: 600px;
}

.auth-badge,
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-intro h1 {
    margin-top: 20px;
    color: var(--text-dark);
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.05;
    letter-spacing: -2px;
}

.auth-intro > p {
    margin-top: 22px;
    max-width: 520px;
    color: var(--text-light);
    font-size: 17px;
}

.feature-list {
    display: grid;
    gap: 18px;
    margin-top: 35px;
}

.feature-item {
    display: flex;
    gap: 14px;
    align-items: center;
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: white;
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: var(--primary);
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.feature-item h3 {
    color: var(--text-dark);
    font-size: 15px;
}

.feature-item p {
    color: var(--text-light);
    font-size: 13px;
}


/* =========================
   AUTH CARD
   ========================= */

.auth-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 38px;
    box-shadow: var(--shadow-lg);
}

.auth-card-header h2 {
    color: var(--text-dark);
    font-size: 26px;
    margin-bottom: 7px;
}

.auth-card-header p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 25px;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 650;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
    color: var(--text-dark);
    padding: 12px 14px;
    outline: none;
    transition: 0.2s ease;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #A8B3C2;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.form-group input[readonly] {
    background: #F8FAFC;
    color: var(--text-light);
}

.input-help,
.optional-text {
    color: var(--muted);
    font-size: 11px;
}

.password-wrapper,
.password-input-wrapper {
    position: relative;
}

.password-wrapper input,
.password-input-wrapper input {
    padding-right: 70px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
}

.checkbox-label input {
    accent-color: var(--primary);
}

.text-link {
    color: var(--primary);
    font-weight: 650;
}

.text-link:hover {
    text-decoration: underline;
}

.primary-button {
    border: none;
    background: var(--primary);
    color: white;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s ease;
}

.primary-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.2);
}

.auth-form .primary-button {
    width: 100%;
    margin-top: 3px;
}

.secondary-button {
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid var(--border);
    background: white;
    color: var(--text);
    border-radius: 9px;
    font-weight: 650;
    transition: 0.2s ease;
}

.secondary-button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.auth-switch {
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
    margin-top: 20px;
}

.auth-footer {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    padding: 20px;
}


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

.app-layout {
    min-height: 100vh;
    display: flex;
    background: var(--background);
}


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

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid var(--border);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-header {
    padding: 0 8px 30px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-weight: 800;
    font-size: 17px;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--primary);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 800;
    flex-shrink: 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-section-title {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 0 12px;
    margin-bottom: 8px;
}

.nav-link {
    min-height: 44px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
}

.nav-link:hover {
    background: #F0FDFA;
    color: var(--primary);
}

.nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-icon {
    width: 22px;
    text-align: center;
    font-size: 17px;
}

.sidebar-bottom {
    margin-top: auto;
}

.logout-button {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--text-light);
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    text-align: left;
    transition: 0.2s ease;
}

.logout-button:hover {
    background: var(--expense-light);
    color: var(--expense);
}


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

.main-content {
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.top-header {
    min-height: 78px;
    padding: 16px 35px;
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
}

.header-left {
    gap: 15px;
}

.header-right {
    gap: 20px;
}

.header-label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.page-title {
    color: var(--text-dark);
    font-size: 21px;
    line-height: 1.3;
}

.mobile-menu-button {
    display: none;
    border: none;
    background: #F1F5F9;
    color: var(--text-dark);
    width: 40px;
    height: 40px;
    border-radius: 9px;
    font-size: 18px;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 39px;
    height: 39px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-weight: 800;
}

.header-user-info {
    display: flex;
    flex-direction: column;
}

.header-user-name {
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 700;
}

.header-user-label {
    color: var(--muted);
    font-size: 10px;
}


/* =========================
   PAGE CONTENT
   ========================= */

.page-content {
    width: min(1400px, 94%);
    margin: auto;
    padding: 32px 0;
}

.page-intro {
    margin-bottom: 25px;
}

.page-intro h2 {
    margin-top: 12px;
    color: var(--text-dark);
    font-size: 27px;
    letter-spacing: -0.5px;
}

.page-intro p {
    margin-top: 5px;
    color: var(--text-light);
    font-size: 14px;
}


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

.content-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 22px;
}

.card-header {
    margin-bottom: 22px;
}

.card-eyebrow {
    color: var(--primary);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 800;
}

.card-header h3 {
    color: var(--text-dark);
    font-size: 19px;
    margin-top: 3px;
}

.card-header p {
    color: var(--text-light);
    font-size: 13px;
    margin-top: 3px;
}


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

.dashboard-welcome {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 25px;
}

.dashboard-welcome h2 {
    color: var(--text-dark);
    font-size: 28px;
}

.dashboard-welcome p {
    color: var(--text-light);
    font-size: 14px;
}

.current-date {
    color: var(--muted);
    font-size: 13px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.summary-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 21px;
    box-shadow: var(--shadow-sm);
}

.summary-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.summary-icon.balance {
    background: var(--primary-light);
    color: var(--primary);
}

.summary-icon.income {
    background: var(--income-light);
    color: var(--income);
}

.summary-icon.expense {
    background: var(--expense-light);
    color: var(--expense);
}

.summary-icon.transactions {
    background: #E0E7FF;
    color: #4F46E5;
}

.summary-label {
    color: var(--text-light);
    font-size: 12px;
    font-weight: 600;
}

.summary-value {
    color: var(--text-dark);
    font-size: 24px;
    font-weight: 800;
    margin-top: 12px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 22px;
}

.chart-container {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}

.chart-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.chart-select {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 10px;
    background: white;
    color: var(--text);
    outline: none;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-item {
    display: grid;
    grid-template-columns: 35px 1fr auto;
    align-items: center;
    gap: 10px;
}

.category-icon {
    width: 34px;
    height: 34px;
    background: #F1F5F9;
    border-radius: 9px;
    display: grid;
    place-items: center;
}

.category-name {
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 650;
}

.category-bar {
    height: 5px;
    background: #F1F5F9;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 5px;
}

.category-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: inherit;
}

.category-amount {
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   TABLE
   ========================================================= */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 750px;
}

.transactions-table th {
    text-align: left;
    padding: 13px 12px;
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

.transactions-table td {
    padding: 15px 12px;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
    color: var(--text);
}

.transactions-table tbody tr:hover {
    background: #FAFAFA;
}

.transaction-name {
    color: var(--text-dark);
    font-weight: 700;
}

.transaction-description {
    color: var(--text-light);
    font-size: 11px;
}

.transaction-category {
    color: var(--text-light);
}

.transaction-date {
    color: var(--text-light);
}

.income-text {
    color: var(--income) !important;
    font-weight: 750;
}

.expense-text {
    color: var(--expense) !important;
    font-weight: 750;
}

.type-badge {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 750;
}

.type-badge.income {
    color: #15803D;
    background: var(--income-light);
}

.type-badge.expense {
    color: #B91C1C;
    background: var(--expense-light);
}

.table-action {
    border: none;
    background: transparent;
    color: var(--muted);
    padding: 5px;
    font-size: 14px;
}

.table-action:hover {
    color: var(--expense);
}


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

.transaction-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.input-with-symbol {
    position: relative;
}

.input-with-symbol span {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-weight: 700;
}

.input-with-symbol input {
    padding-left: 32px;
}

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

.form-message {
    display: none;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
}

.form-message.success {
    display: block;
    color: #15803D;
    background: var(--income-light);
}

.form-message.error {
    display: block;
    color: #B91C1C;
    background: var(--expense-light);
}


/* =========================================================
   FILTERS
   ========================================================= */

.transaction-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}

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

.filter-group label {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 700;
}

.filter-group input,
.filter-group select {
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    outline: none;
    background: white;
    color: var(--text);
}

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

.filter-action {
    display: flex;
}


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

.empty-state {
    text-align: center;
    padding: 50px 20px;
}

.empty-state-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: var(--primary-light);
    color: var(--primary);
    display: grid;
    place-items: center;
    margin: 0 auto 15px;
    font-size: 22px;
    font-weight: 800;
}

.empty-state h3 {
    color: var(--text-dark);
    font-size: 17px;
}

.empty-state p {
    color: var(--text-light);
    font-size: 13px;
    margin: 5px 0 18px;
}


/* =========================================================
   PROFILE
   ========================================================= */

.profile-overview {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar-large {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 28px;
    font-weight: 800;
}

.profile-overview-info h2 {
    color: var(--text-dark);
    font-size: 23px;
}

.profile-overview-info p {
    color: var(--primary);
    font-size: 13px;
    font-weight: 650;
}

.profile-email {
    color: var(--text-light);
    font-size: 12px;
}

.profile-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.profile-form .form-actions,
.profile-form .form-message {
    grid-column: 1 / -1;
}

.account-info-list {
    display: flex;
    flex-direction: column;
}

.account-info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.account-info-label,
.account-info-value {
    display: block;
}

.account-info-label {
    color: var(--text-light);
    font-size: 11px;
}

.account-info-value {
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 650;
    margin-top: 2px;
}

.status-badge {
    color: #15803D;
    background: var(--income-light);
    padding: 5px 9px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 750;
}

.danger-zone {
    border-color: #FECACA;
}

.danger-button {
    min-height: 42px;
    padding: 10px 17px;
    border: 1px solid #FCA5A5;
    background: white;
    color: var(--expense);
    border-radius: 9px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.danger-button:hover {
    background: var(--expense-light);
}


/* =========================================================
   QUICK ACTIONS
   ========================================================= */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.quick-action {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 17px;
    transition: 0.2s ease;
}

.quick-action:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.quick-action-icon {
    width: 35px;
    height: 35px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 9px;
    display: grid;
    place-items: center;
}

.quick-action h4 {
    color: var(--text-dark);
    margin-top: 10px;
    font-size: 14px;
}

.quick-action p {
    color: var(--text-light);
    font-size: 11px;
    margin-top: 3px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.page-footer {
    text-align: center;
    color: var(--muted);
    font-size: 11px;
    padding: 15px 0 5px;
}


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

@media (max-width: 1100px) {

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .transaction-filters {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-action {
        align-items: end;
    }

}


@media (max-width: 850px) {

    :root {
        --sidebar-width: 0px;
    }

    .sidebar {
        width: 250px;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: var(--shadow-lg);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        width: 100%;
        margin-left: 0;
    }

    .mobile-menu-button {
        display: grid;
        place-items: center;
    }

    .auth-container {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 40px 0;
    }

    .auth-intro {
        text-align: center;
        margin: auto;
    }

    .auth-intro > p {
        margin-left: auto;
        margin-right: auto;
    }

    .feature-list {
        text-align: left;
        width: min(500px, 100%);
        margin-left: auto;
        margin-right: auto;
    }

}


@media (max-width: 650px) {

    .top-header {
        padding: 14px 18px;
    }

    .header-user-info {
        display: none;
    }

    .page-content {
        width: 92%;
        padding: 24px 0;
    }

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

    .transaction-form,
    .profile-form {
        grid-template-columns: 1fr;
    }

    .form-group-full,
    .profile-form .form-actions,
    .profile-form .form-message {
        grid-column: auto;
    }

    .transaction-filters {
        grid-template-columns: 1fr;
    }

    .dashboard-welcome {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-overview {
        align-items: flex-start;
    }

    .auth-navbar {
        padding: 0 4%;
    }

    .auth-container {
        width: 92%;
    }

    .auth-card {
        padding: 25px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 18px;
    }

    .page-intro h2 {
        font-size: 23px;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 450px) {

    .brand-text {
        font-size: 15px;
    }

    .header-right {
        gap: 5px;
    }

    .content-card {
        padding: 18px;
    }

    .summary-card {
        padding: 17px;
    }

    .summary-value {
        font-size: 21px;
    }

    .profile-avatar-large {
        width: 65px;
        height: 65px;
        font-size: 22px;
    }

}
/* =========================================
   LOGIN PAGE FIXES
   ========================================= */

.auth-navbar {
    width: 100%;
    min-height: 76px;
    padding: 0 48px;

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

    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #E2E8F0;

    box-sizing: border-box;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;
    color: #334155;

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

.auth-brand-text {
    color: #334155;
}

.auth-brand-icon {
    width: 42px;
    height: 42px;

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

    background: #0F766E;
    color: white;

    border-radius: 12px;

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

    box-shadow: 0 6px 16px rgba(15, 118, 110, 0.18);
}

.auth-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 18px;

    border-radius: 9px;

    color: #0F766E;
    background: #F0FDFA;

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

    text-decoration: none;

    transition: all 0.2s ease;
}

.auth-nav-link:hover {
    background: #CCFBF1;
    transform: translateY(-1px);
}


/* Password label */

.password-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 8px;
}

.password-label-row label {
    margin-bottom: 0;
}


/* Password wrapper */

.password-input-wrapper {
    position: relative;

    width: 100%;

    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    width: 100%;

    padding-right: 76px;

    box-sizing: border-box;
}

.password-input-wrapper .password-toggle {
    position: absolute;

    right: 12px;
    top: 50%;

    transform: translateY(-50%);

    border: none;
    background: transparent;

    color: #0F766E;

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

    cursor: pointer;

    padding: 8px;
}

.password-input-wrapper .password-toggle:hover {
    color: #115E59;
}


/* Make the login card behave properly */

.auth-card {
    box-sizing: border-box;
}

.auth-form {
    width: 100%;
}

.form-group {
    width: 100%;
    box-sizing: border-box;
}


/* Mobile */

@media (max-width: 768px) {

    .auth-navbar {
        padding: 0 20px;
        min-height: 68px;
    }

    .auth-brand {
        font-size: 17px;
    }

    .auth-brand-icon {
        width: 38px;
        height: 38px;
    }

    .auth-nav-link {
        padding: 9px 12px;
        font-size: 13px;
    }
}