/* ==========================================================================
   FinanzasZen - Premium Style & Design Tokens
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
    /* Backgrounds & Surfaces */
    --bg: #f7f9ff; /* Soft Mint / Surface */
    --sidebar-bg: #ffffff;
    --card-bg: #ffffff;
    --card-border: rgba(44, 62, 80, 0.05); /* or removed entirely */
    --card-border-hover: rgba(44, 62, 80, 0.1);
    
    /* Text colors */
    --text-primary: #091d2e;
    --text-secondary: #42493e;
    --text-muted: #72796e;

    /* Accents & Brand */
    --primary: #2d5a27; /* Zen Green */
    --primary-hover: #154212;
    --primary-glow: rgba(45, 90, 39, 0.15);
    
    --secondary: #f5f5dc; /* Sand */
    --secondary-hover: #e4e4cc;
    --text-on-secondary: #2C3E50; /* Charcoal */
    
    /* Feedback */
    --green: #2d5a27;
    --green-glow: rgba(45, 90, 39, 0.2);
    --red: #ba1a1a;
    --red-glow: rgba(186, 26, 26, 0.2);
    --yellow: #f59e0b;
    
    /* Spacing, Radii & Shadows */
    --sidebar-width: 260px;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;
    --border-radius-pill: 16px;
    --spacing-md: 24px;
    
    /* Elevation */
    --shadow-1: 0px 4px 20px rgba(44, 62, 80, 0.04);
    --shadow-2: 0px 8px 30px rgba(44, 62, 80, 0.08);
    --shadow-glow: 0 0 20px var(--primary-glow);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.01em;
    font-weight: 600;
    line-height: 1.2;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(44, 62, 80, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(44, 62, 80, 0.2);
}

/* Text glow utilities */
.text-glow-purple {
    text-shadow: 0 0 10px var(--primary-glow);
    color: var(--primary);
}
.text-purple {
    color: var(--primary);
}

.hidden {
    display: none !important;
}

/* App Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.brand-logo {
    width: 38px;
    height: 38px;
    background: var(--primary);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.logo-icon {
    color: white;
    width: 20px;
    height: 20px;
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.brand-name span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--border-radius-md);
    transition: var(--transition);
}

.nav-item i {
    width: 20px;
    height: 20px;
}

.nav-item:hover {
    background: rgba(44, 62, 80, 0.03);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(45, 90, 39, 0.1); /* Soft Zen Green background */
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.sidebar-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
}
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 10px 14px;
    background: rgba(45, 90, 39, 0.04);
    border: 1px solid rgba(45, 90, 39, 0.08);
    border-radius: var(--border-radius-md);
    transition: background-color 0.2s, border-color 0.2s;
}

.avatar {
    width: 38px;
    height: 38px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(45, 90, 39, 0.2);
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    margin-bottom: 2px;
}

.user-status {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.btn-logout {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.btn-logout:hover {
    color: var(--red);
    background-color: rgba(186, 26, 26, 0.08);
    transform: scale(1.05);
}

.btn-logout:active {
    transform: scale(0.95);
}

.btn-logout i {
    width: 16px;
    height: 16px;
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    padding: 2.5rem;
    min-height: 100vh;
    max-width: 1200px;
    margin-right: auto;
}

/* Header Styling */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.header-greeting {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.25rem;
}

.header-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.date-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(44, 62, 80, 0.03);
    border: 1px solid var(--card-border);
    padding: 0.65rem 1rem;
    border-radius: var(--border-radius-md);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.date-badge i {
    width: 16px;
    height: 16px;
}

/* Base Card - Mindful Design System */
.glass-card {
    background: var(--card-bg);
    border: none; /* No borders in Mindful theme */
    border-radius: var(--border-radius-lg); /* 24px */
    padding: 1.5rem; /* 24px */
    transition: var(--transition);
    box-shadow: var(--shadow-1);
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(12, 1fr);
    }
    
    .kpi-card { grid-column: span 4; }
    .budget-tracker { grid-column: span 12; }
    .chart-card { grid-column: span 7; }
    .section-card { grid-column: span 5; }
    .half-card { grid-column: span 6; }
    .goals-card { grid-column: span 12; }
    .form-card { grid-column: span 12; }
    .list-card { grid-column: span 12; }
}

/* KPI Cards Layout */
.kpi-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.kpi-card {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 150px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.card-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon-wrapper i {
    width: 18px;
    height: 18px;
}

.card-icon-wrapper.purple {
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary);
}

.card-icon-wrapper.green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--green);
}

.card-icon-wrapper.red {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
}

.card-body {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    margin-top: 0.75rem;
}

.currency-symbol {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.kpi-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.card-footer {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    margin-top: auto;
}

.indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
}

.indicator i {
    width: 14px;
    height: 14px;
}

.indicator.up {
    color: var(--green);
}

.indicator.down {
    color: var(--red);
}

.text-muted {
    color: var(--text-secondary);
}

/* Budget Progress Tracker */
.budget-tracker-section {
    padding: 1.5rem;
}

.budget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    margin-bottom: 0.15rem;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
}

.budget-numbers {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.budget-divider {
    color: var(--text-muted);
    font-weight: 400;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: var(--secondary);
    border-radius: var(--border-radius-pill);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: var(--border-radius-pill);
    box-shadow: none;
    transition: width 0.5s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.budget-footer {
    font-size: 0.8rem;
    font-weight: 500;
}

.status-ok {
    color: var(--green);
}

.status-warning {
    color: var(--yellow);
}

.status-danger {
    color: var(--red);
    animation: alert-pulse 1.5s infinite;
}

@keyframes alert-pulse {
    0% { opacity: 0.8; }
    50% { opacity: 0.4; }
    100% { opacity: 0.8; }
}

/* Two Column Layout Details */
.details-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
}

.details-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Form Styles */
.form-card {
    padding: 1.5rem;
}

.card-headline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.75rem;
}

.card-headline i {
    width: 20px;
    height: 20px;
}

.card-headline h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.transaction-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group-row {
    display: flex;
    gap: 1rem;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

/* Custom toggle buttons for Expense/Income */
.toggle-group {
    display: flex;
    background: rgba(44, 62, 80, 0.03);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 3px;
    height: 42px;
}

.toggle-group input[type="radio"] {
    display: none;
}

.toggle-label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.toggle-label i {
    width: 14px;
    height: 14px;
}

#type-expense:checked ~ .expense-toggle {
    background: var(--red-glow);
    color: var(--red);
    box-shadow: inset 0 0 5px rgba(239, 68, 68, 0.1);
}

#type-income:checked ~ .income-toggle {
    background: var(--green-glow);
    color: var(--green);
    box-shadow: inset 0 0 5px rgba(16, 185, 129, 0.1);
}

/* Inputs decoration */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 1rem;
    font-weight: 600;
    color: var(--text-muted);
}

input[type="number"],
input[type="text"],
input[type="date"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    height: 48px;
    background: #ffffff;
    border: 1px solid #d1e4fb; /* Soft Mint border */
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    padding: 0 1.2rem;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.input-wrapper input {
    padding-left: 2.5rem;
}

input:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: inset 0 0 0 1px var(--primary);
    background: #ffffff;
}

/* Fix browser autofill styling for light mode */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
}

select option {
    background-color: var(--sidebar-bg);
    color: var(--text-primary);
}

/* Custom Buttons */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 48px;
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0 1.25rem;
}

.btn-full {
    width: 100%;
    margin-top: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: none;
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: none;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--secondary);
    border: none;
    color: var(--text-on-secondary);
}

.btn-secondary:hover {
    background: var(--secondary-hover);
    box-shadow: none;
}

.btn-success {
    background: var(--green);
    color: white;
    box-shadow: none;
}

.btn-success:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: none;
}

.btn-sm {
    height: 32px;
    font-size: 0.75rem;
    padding: 0 0.75rem;
    border-radius: var(--border-radius-sm);
}

/* Goals Card layout */
.goals-card, .fixed-expenses-card {
    padding: 1.5rem;
}

.card-headline-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.card-headline-row .card-headline {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.goals-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 2px;
}

.goal-item {
    background: rgba(44, 62, 80, 0.02);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: var(--transition);
}

.goal-item:hover {
    background: rgba(44, 62, 80, 0.04);
    border-color: rgba(139, 92, 246, 0.15);
}

.goal-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.goal-title {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Fixed Expenses List */
.fixed-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 2px;
}

.fixed-item {
    background: rgba(44, 62, 80, 0.02);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 0.85rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.fixed-item:hover {
    background: rgba(44, 62, 80, 0.04);
    border-color: rgba(139, 92, 246, 0.2);
}

.fixed-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.fixed-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.fixed-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.fixed-actions-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.fixed-amount {
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
}

.fixed-btn-group {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    margin-top: 0.35rem;
}

.btn-action-fixed {
    background: rgba(44, 62, 80, 0.04);
    border: 1px solid rgba(44, 62, 80, 0.08);
    color: var(--text-secondary);
    border-radius: var(--border-radius-sm);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-action-fixed:hover {
    background: rgba(44, 62, 80, 0.15);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.btn-action-fixed.btn-danger-hover:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.btn-action-fixed.btn-success-hover:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.btn-action-fixed i {
    width: 14px;
    height: 14px;
}

.goal-values {
    font-size: 0.8rem;
    font-weight: 500;
}

.goal-goal-val {
    color: var(--text-muted);
}

.goal-progress-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.goal-progress-container {
    flex: 1;
    height: 12px;
    background: var(--secondary);
    border-radius: var(--border-radius-pill);
    overflow: hidden;
}

.goal-progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: var(--border-radius-pill);
    width: 0%;
    transition: width 0.5s ease-out;
}

.goal-pct {
    font-size: 0.75rem;
    font-weight: 700;
    width: 32px;
    text-align: right;
}

.btn-goal-add {
    width: 24px;
    height: 24px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-goal-add:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.btn-goal-add i {
    width: 12px;
    height: 12px;
}

/* Visualization - Charts Card */
.charts-card {
    padding: 1.5rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.chart-toggles {
    display: flex;
    background: var(--secondary);
    border-radius: var(--border-radius-pill);
    padding: 4px;
    gap: 4px;
}

.btn-chart-toggle {
    background: transparent;
    border: none;
    color: var(--text-on-secondary);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--border-radius-pill);
    transition: var(--transition);
}

.btn-chart-toggle.active {
    background: var(--primary);
    color: white;
}

.chart-container {
    height: 250px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Transactions List */
.list-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 410px;
}

.list-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.list-card-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.list-filters {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 0.75rem;
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

.search-box input {
    height: 32px;
    padding-left: 2rem;
    font-size: 0.8rem;
    width: 180px;
    border-radius: var(--border-radius-sm);
}

.select-sm {
    height: 32px;
    font-size: 0.8rem;
    border-radius: var(--border-radius-sm);
    padding-right: 1.5rem;
    width: auto;
}

.transactions-container {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 2px;
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tx-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(44, 62, 80, 0.02);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 0.85rem 1rem;
    transition: var(--transition);
}

.tx-row:hover {
    background: rgba(44, 62, 80, 0.04);
    border-color: rgba(44, 62, 80, 0.1);
}

.tx-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    flex: 1;
}

.tx-cat-icon {
    width: 36px;
    height: 36px;
    background: rgba(44, 62, 80, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.tx-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.tx-desc {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tx-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tx-cat-label {
    background: var(--secondary);
    padding: 2px 8px;
    border-radius: var(--border-radius-pill);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-primary);
}

.tx-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tx-amount {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
}

.tx-amount.income-amt {
    color: var(--green);
}

.tx-amount.expense-amt {
    color: var(--red);
}

.btn-delete-tx {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    transition: var(--transition);
}

.btn-delete-tx:hover {
    color: var(--red);
    background: rgba(239, 68, 68, 0.1);
}

.btn-delete-tx i {
    width: 14px;
    height: 14px;
}

.no-transactions {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.no-transactions i {
    width: 32px;
    height: 32px;
    color: var(--text-muted);
}

/* Modals & Overlays */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 7, 12, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    width: 100%;
    max-width: 460px;
    padding: 2rem;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-header .btn-close-modal {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    transition: var(--transition);
}

.modal-header .btn-close-modal:hover {
    color: var(--text-primary);
    background: rgba(44, 62, 80, 0.05);
}

.modal-header .btn-close-modal i {
    width: 16px;
    height: 16px;
}

.modal-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablet Layout */
@media (min-width: 769px) and (max-width: 1023px) {
    .dashboard-grid {
        grid-template-columns: repeat(12, 1fr) !important;
    }
    .kpi-card { grid-column: span 4 !important; }
    .budget-tracker { grid-column: span 12 !important; }
    .chart-card { grid-column: span 12 !important; }
    .section-card { grid-column: span 12 !important; }
    .half-card { grid-column: span 6 !important; }
    .form-card { grid-column: span 12 !important; }
    .list-card { grid-column: span 12 !important; }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }

    /* Hide non-active cards on mobile */
    .dashboard-grid > div.mobile-hide {
        display: none !important;
    }

    /* Top Sticky Header Bar */
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 60px !important;
        background: rgba(255, 255, 255, 0.85) !important;
        backdrop-filter: blur(20px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(44, 62, 80, 0.06) !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 1.25rem !important;
        margin: 0 !important;
        z-index: 1000 !important;
    }
    
    /* Compact brand logo/name on the left of top bar */
    .brand {
        margin-bottom: 0 !important;
        gap: 0.5rem !important;
    }
    
    .brand-name {
        font-size: 1.15rem !important;
    }

    /* Fixed Bottom Navigation Bar */
    .nav-menu {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 60px !important;
        background: rgba(255, 255, 255, 0.85) !important;
        backdrop-filter: blur(20px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
        border-top: 1px solid rgba(44, 62, 80, 0.06) !important;
        border-bottom: none !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        align-items: center !important;
        padding: 0 0.5rem !important;
        margin: 0 !important;
        gap: 0.25rem !important;
        z-index: 1000 !important;
    }

    .nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.2rem !important;
        padding: 0.4rem 0.25rem !important;
        font-size: 0.65rem !important;
        flex: 1 !important;
        min-width: 0 !important;
        text-align: center !important;
        height: 100% !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: var(--text-secondary) !important;
        border-left: none !important;
        border-bottom: 3px solid transparent !important;
    }

    .nav-item.active {
        color: var(--primary) !important;
        border-bottom: 3px solid var(--primary) !important;
        background: transparent !important;
    }

    .nav-item span {
        font-size: 0.65rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        font-weight: 600 !important;
    }

    .nav-item i {
        width: 20px !important;
        height: 20px !important;
    }

    /* User Profile sits on the right of top bar */
    .sidebar-footer {
        display: flex !important;
        margin: 0 !important;
        padding: 0 !important;
        border-top: none !important;
    }
    
    .user-profile {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.5rem !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
    }
    
    /* Hide profile texts on mobile top bar to stay compact */
    .user-info {
        display: none !important;
    }
    
    .avatar {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.75rem !important;
        box-shadow: none !important;
    }

    .btn-logout {
        padding: 6px !important;
    }

    /* Main Content Margins to clear fixed top/bottom bars */
    .main-content {
        margin-left: 0 !important;
        padding: 80px 1rem 80px 1rem !important;
    }
    
    .app-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .header-right {
        width: 100% !important;
        justify-content: space-between !important;
    }
}

/* ==========================================================================
   Payment Methods & Wallet Styling
   ========================================================================== */

.methods-card {
    margin-top: 0.5rem;
}

.methods-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    max-height: 480px;
    overflow-y: auto;
    padding: 0.5rem;
}

/* Mini Action Buttons inside Wallet Cards */
.btn-card-action-mini {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 0 !important;
}

.btn-card-action-mini:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    transform: scale(1.08) !important;
}

.btn-card-action-mini:active {
    transform: scale(0.95) !important;
}

.btn-card-action-mini.btn-danger-hover:hover {
    background: rgba(239, 68, 68, 0.4) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
    color: #fca5a5 !important;
}

.btn-card-action-mini.btn-lock-pm.unlocked {
    background: rgba(16, 185, 129, 0.25) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    color: #34d399 !important;
}

.method-item {
    background: rgba(44, 62, 80, 0.02);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 0.85rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.method-item:hover {
    background: rgba(44, 62, 80, 0.04);
    border-color: rgba(139, 92, 246, 0.2);
}

.method-item::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.method-item.credit::after {
    background: radial-gradient(circle, rgba(236, 72, 153, 0.06) 0%, transparent 70%);
}

.method-item.cash::after {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
}

.method-details-col {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 1;
}

.method-item-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.method-item-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.method-item-bank {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 700;
}

.method-item-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: monospace;
    letter-spacing: 0.5px;
}

.method-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1;
}

.method-badge {
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
}

.badge-debit {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-credit {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.badge-digital {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.badge-cash {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-transfer {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Linked payment method pill on transaction row */
.tx-method-pill {
    background: var(--secondary);
    border: none;
    padding: 2px 8px;
    border-radius: var(--border-radius-pill);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Payment Method Button Groups & Actions */
.method-btn-group {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    margin-top: 0.35rem;
}

.btn-action-pm {
    background: rgba(44, 62, 80, 0.04);
    border: 1px solid rgba(44, 62, 80, 0.08);
    color: var(--text-secondary);
    border-radius: var(--border-radius-sm);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-action-pm:hover {
    background: rgba(44, 62, 80, 0.15);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.btn-action-pm.btn-danger-hover:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.btn-action-pm i {
    width: 14px;
    height: 14px;
}

/* Credit Card Mockup for Details View */
.align-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.credit-card-view {
    width: 100%;
    max-width: 320px;
    height: 185px;
    border-radius: var(--border-radius-md);
    background: linear-gradient(135deg, #1e1b4b 0%, #311042 50%, #030712 100%);
    border: 1px solid rgba(44, 62, 80, 0.1);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5), inset 0 1px 1px rgba(44, 62, 80, 0.2);
    position: relative;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    margin-bottom: 1.5rem;
    user-select: none;
}

/* Card gradients for different method types */
.credit-card-view.credit {
    background: linear-gradient(135deg, #4c1d95 0%, #831843 60%, #0f172a 100%);
}
.credit-card-view.digital {
    background: linear-gradient(135deg, #111827 0%, #1e3a8a 60%, #020617 100%);
}
.credit-card-view.cash {
    background: linear-gradient(135deg, #064e3b 0%, #022c22 70%, #020617 100%);
}
.credit-card-view.transfer {
    background: linear-gradient(135deg, #7c2d12 0%, #451a03 70%, #020617 100%);
}

.card-glow-bg {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 75%);
    pointer-events: none;
}

.card-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-view-bank {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 1px;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    text-transform: uppercase;
}

.card-view-type-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(44, 62, 80, 0.7);
    background: rgba(44, 62, 80, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(44, 62, 80, 0.05);
}

.card-view-chip-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.25rem 0;
}

.card-view-chip {
    width: 36px;
    height: 26px;
    background: linear-gradient(135deg, #ffd700 0%, #d4af37 50%, #aa7c11 100%);
    border-radius: 4px;
    position: relative;
    padding: 3px;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    box-shadow: inset 0 1px 0 rgba(44, 62, 80, 0.3);
}

.chip-line {
    border: 1px solid rgba(0, 0, 0, 0.12);
    flex: 1 1 30%;
    height: 6px;
    border-radius: 1px;
}

.card-view-contactless {
    color: rgba(44, 62, 80, 0.5);
}

.card-view-contactless i {
    width: 18px;
    height: 18px;
    transform: rotate(90deg);
}

.card-view-number {
    font-family: monospace;
    font-size: 1.15rem;
    letter-spacing: 2px;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    margin: 0.5rem 0;
    text-align: left;
    width: 100%;
}

.card-view-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.card-view-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.card-view-label {
    font-size: 0.55rem;
    font-weight: 600;
    color: rgba(44, 62, 80, 0.45);
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.card-view-val {
    font-family: 'Outfit', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    text-transform: uppercase;
}

/* Card details table description text */
.card-text-details {
    width: 100%;
    background: rgba(44, 62, 80, 0.01);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.text-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(44, 62, 80, 0.03);
}

.text-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    color: var(--text-secondary);
}

.detail-val {
    color: var(--text-primary);
}

/* Card Pin Locking & Security styles */
.card-view-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-card-lock {
    background: rgba(44, 62, 80, 0.08);
    border: 1px solid rgba(44, 62, 80, 0.12);
    color: var(--text-secondary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.btn-card-lock:hover {
    background: rgba(44, 62, 80, 0.18);
    color: var(--text-primary);
    transform: scale(1.08);
}

.btn-card-lock.unlocked {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
}

.btn-card-lock i {
    width: 14px;
    height: 14px;
}

/* Inline PIN prompt below card */
.card-pin-inline {
    width: 100%;
    max-width: 320px;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.pin-inline-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 0.5rem 0.75rem;
}

.pin-inline-icon {
    width: 16px;
    height: 16px;
    color: #a78bfa;
    flex-shrink: 0;
}

.pin-inline-row input {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--bg);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    padding: 6px 10px;
    font-size: 0.82rem;
    outline: none;
    min-width: 0;
}

.pin-inline-row input:focus {
    border-color: var(--primary);
    box-shadow: inset 0 0 0 1px var(--primary);
}

.btn-pin-submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: var(--border-radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-pin-submit:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 15px var(--primary-glow);
    transform: translateY(-1px);
}

/* Authentication Overlay & Visual Ambient Glows */
.auth-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(45, 90, 39, 0.06) 0%, rgba(247, 249, 255, 1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
    overflow: hidden;
}

.auth-overlay::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(45, 90, 39, 0.12) 0%, transparent 70%);
    top: 15%;
    left: 20%;
    filter: blur(60px);
    pointer-events: none;
}

.auth-overlay::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(245, 245, 220, 0.4) 0%, transparent 70%);
    bottom: 15%;
    right: 20%;
    filter: blur(50px);
    pointer-events: none;
}

.auth-overlay.hidden {
    display: none !important;
}

/* Glassmorphism Auth Card */
.auth-card {
    width: 100%;
    max-width: 410px;
    padding: 3rem 2.5rem !important;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: var(--border-radius-lg) !important;
    box-shadow: 0 25px 50px -12px rgba(9, 29, 30, 0.08), 0 2px 0 rgba(255, 255, 255, 0.8) inset !important;
}

.auth-brand {
    justify-content: center;
    margin-bottom: 1.75rem;
}

#auth-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

#link-switch-auth {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    padding-bottom: 1px;
    border-bottom: 1.5px dashed var(--primary-glow);
}

#link-switch-auth:hover {
    color: var(--primary-hover);
    border-bottom-style: solid;
    border-bottom-color: var(--primary);
}

.error-msg {
    background: rgba(186, 26, 26, 0.06);
    border: 1px solid rgba(186, 26, 26, 0.15);
    color: var(--red);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    text-align: center;
}

/* Extra Mobile Responsiveness Adjustments */
@media (max-width: 600px) {
    .form-group-row {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .modal-footer {
        flex-direction: column-reverse;
        gap: 0.5rem;
    }
    .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
    .header-right {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        width: 100%;
    }
    .date-badge {
        justify-content: center;
    }
    .header-right button {
        width: 100%;
    }
}

/* ==========================================================================
   Premium Payment Card Themes & Custom Gradients (v1.9.2)
   ========================================================================== */

/* Z-Index overlay stacking */
#method-modal, #view-method-modal {
    z-index: 1100;
}

/* Card Mockup Gradients */
.credit-card-view.indigo { background: linear-gradient(135deg, #4f46e5 0%, #311042 60%, #0f172a 100%) !important; }
.credit-card-view.blue { background: linear-gradient(135deg, #072146 0%, #004481 60%, #001c3e 100%) !important; }
.credit-card-view.red { background: linear-gradient(135deg, #ec1c24 0%, #9e0c12 60%, #4a0004 100%) !important; }
.credit-card-view.green { background: linear-gradient(135deg, #15803d 0%, #052e16 70%, #020617 100%) !important; }
.credit-card-view.orange { background: linear-gradient(135deg, #ea580c 0%, #7c2d12 70%, #451a03 100%) !important; }
.credit-card-view.gold { background: linear-gradient(135deg, #aa7c11 0%, #d4af37 50%, #ffd700 100%) !important; }
.credit-card-view.black { background: linear-gradient(135deg, #1e293b 0%, #0f172a 70%, #020617 100%) !important; }
.credit-card-view.silver { background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 60%, #475569 100%) !important; }
.credit-card-view.spin { background: linear-gradient(135deg, #7a0e38 0%, #b80f48 50%, #3a0012 100%) !important; }

/* Colored Left Border for Payment Method Items in List */
.method-item.color-indigo { border-left: 5px solid #6366f1; }
.method-item.color-blue { border-left: 5px solid #004481; }
.method-item.color-red { border-left: 5px solid #ec1c24; }
.method-item.color-green { border-left: 5px solid #10b981; }
.method-item.color-orange { border-left: 5px solid #f97316; }
.method-item.color-gold { border-left: 5px solid #d4af37; }
.method-item.color-black { border-left: 5px solid #0f172a; }
.method-item.color-silver { border-left: 5px solid #94a3b8; }
.method-item.color-spin { border-left: 5px solid #b80f48; }

/* Custom Radial Background Glow for list item themes */
.method-item.color-indigo::after { background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%) !important; }
.method-item.color-blue::after { background: radial-gradient(circle, rgba(0, 68, 129, 0.12) 0%, transparent 70%) !important; }
.method-item.color-red::after { background: radial-gradient(circle, rgba(236, 28, 36, 0.1) 0%, transparent 70%) !important; }
.method-item.color-green::after { background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%) !important; }
.method-item.color-orange::after { background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%) !important; }
.method-item.color-gold::after { background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%) !important; }
.method-item.color-black::after { background: radial-gradient(circle, rgba(15, 23, 42, 0.2) 0%, transparent 70%) !important; }
.method-item.color-silver::after { background: radial-gradient(circle, rgba(148, 163, 184, 0.1) 0%, transparent 70%) !important; }
.method-item.color-spin::after { background: radial-gradient(circle, rgba(184, 15, 72, 0.12) 0%, transparent 70%) !important; }

/* ==========================================================================
   Mobile Responsiveness & Styling Enhancements (v1.9.5)
   ========================================================================== */

/* Chart wrappers default height */
#category-chart-wrapper, #trend-chart-wrapper {
    height: 250px;
    width: 100%;
    position: relative;
}

/* KPI Card Icon wrapper mapping */
.kpi-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 90, 39, 0.1);
    color: var(--primary);
}
.kpi-icon i {
    width: 18px;
    height: 18px;
}
.kpi-icon.icon-green {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}
.kpi-icon.icon-red {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Tablets and Mobile Menu adjustments */
@media (max-width: 768px) {
    .modal-overlay {
        align-items: flex-start !important;
        overflow-y: auto !important;
        padding: 2.5rem 1rem !important;
    }
    
    .modal {
        margin: 0 auto !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
        border-radius: var(--border-radius-md) !important;
    }
}

/* Mobile landscape and narrow screens */
@media (max-width: 600px) {
    .list-filters {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .search-box, .search-box input, .select-sm {
        width: 100% !important;
    }
}

/* Narrow viewport adjustments (Mobile Portrait) */
@media (max-width: 480px) {
    .auth-card {
        padding: 2rem 1.25rem !important;
    }
    .glass-card {
        padding: 1.25rem !important;
    }
    .dashboard-grid {
        gap: 1rem !important;
    }
    .modal {
        padding: 1.25rem !important;
        width: calc(100% - 2rem) !important;
        margin: 1rem !important;
    }
    .budget-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .tx-row {
        padding: 0.75rem 0.85rem !important;
        gap: 0.5rem !important;
    }
    .tx-amount {
        font-size: 0.9rem !important;
    }
    .tx-cat-label, .tx-method-pill {
        font-size: 10px !important;
        padding: 2px 6px !important;
    }
    .tx-meta {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    .method-item {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }
    .method-actions {
        width: 100% !important;
        justify-content: space-between !important;
        margin-top: 0.25rem !important;
    }
}

/* ==========================================================================
   Zen Notes Widget (FAB, checklist, quick notes)
   ========================================================================== */
.fab-note {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(45, 90, 39, 0.3);
    z-index: 9999;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s, box-shadow 0.2s;
}

.fab-note:hover {
    transform: scale(1.1);
    background-color: var(--primary-hover);
    box-shadow: 0 6px 24px rgba(45, 90, 39, 0.4);
}

.fab-note:active {
    transform: scale(0.95);
}

.fab-note i {
    width: 24px;
    height: 24px;
}

.fab-note-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--red);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.fab-note-badge.hidden {
    display: none !important;
}

.sticky-note-widget {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 360px;
    height: 480px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sticky-note-widget.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.sticky-note-widget.hidden {
    display: none !important;
}

.note-drag-handle {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(44, 62, 80, 0.06);
    cursor: grab;
    display: flex;
    flex-direction: column;
    user-select: none;
}

.note-drag-handle:active {
    cursor: grabbing;
}

.drag-handle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.drag-handle-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
}

.drag-handle-title i {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.note-header-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.btn-note-action {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
}

.btn-note-action:hover {
    background-color: rgba(44, 62, 80, 0.08);
    color: var(--primary);
}

.btn-note-action i {
    width: 16px;
    height: 16px;
}

.note-tabs {
    display: flex;
    border-bottom: 1px solid rgba(44, 62, 80, 0.06);
    background: rgba(255, 255, 255, 0.2);
}

.note-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    position: relative;
}

.note-tab:hover {
    background-color: rgba(44, 62, 80, 0.03);
    color: var(--text-primary);
}

.note-tab.active {
    color: var(--primary);
    background-color: rgba(255, 255, 255, 0.5);
}

.note-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.note-tab i {
    width: 16px;
    height: 16px;
}

.note-tab-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.3);
}

.note-tab-content.hidden {
    display: none !important;
}

/* To-Do Specifics */
.todo-input-container {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

#todo-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(44, 62, 80, 0.12);
    border-radius: var(--border-radius-md);
    background: #ffffff;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

#todo-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
}

.btn-add-todo {
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: var(--border-radius-md);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-add-todo:hover {
    background: var(--primary-hover);
}

.btn-add-todo:active {
    transform: scale(0.95);
}

.btn-add-todo i {
    width: 18px;
    height: 18px;
}

.todo-items-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    padding-right: 4px;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(44, 62, 80, 0.05);
    box-shadow: 0 2px 6px rgba(44, 62, 80, 0.02);
    transition: all 0.2s;
    animation: fadeIn 0.2s ease-out;
}

.todo-item:hover {
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(44, 62, 80, 0.05);
    border-color: rgba(45, 90, 39, 0.15);
}

.todo-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.todo-text {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: color 0.2s;
    white-space: pre-wrap;
    word-break: break-word;
}

.todo-text.completed {
    text-decoration: line-through;
    color: var(--text-muted);
}

.btn-delete-todo {
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
}

.btn-delete-todo:hover {
    color: var(--red);
    background-color: rgba(186, 26, 26, 0.08);
}

.todo-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(44, 62, 80, 0.06);
    padding-top: 12px;
    margin-top: auto;
}

.todo-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.btn-clear-todos {
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    transition: background-color 0.2s, color 0.2s;
}

.btn-clear-todos:hover {
    color: var(--red);
    background-color: rgba(186, 26, 26, 0.08);
}

.btn-clear-todos i {
    width: 14px;
    height: 14px;
}

/* Quick Note Specifics */
#quicknote-textarea {
    flex: 1;
    width: 100%;
    min-height: 180px;
    padding: 12px 14px;
    border: 1px solid rgba(44, 62, 80, 0.12);
    border-radius: var(--border-radius-md);
    background: #ffffff;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: none;
    font-family: inherit;
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

#quicknote-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
}

.quicknote-templates {
    margin-top: 14px;
}

.templates-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.template-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.helper-tag {
    background: rgba(45, 90, 39, 0.05);
    color: var(--primary);
    border: 1px solid rgba(45, 90, 39, 0.12);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.helper-tag:hover {
    background: rgba(45, 90, 39, 0.12);
    border-color: rgba(45, 90, 39, 0.25);
    transform: translateY(-1px);
}

.helper-tag:active {
    transform: translateY(0);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile responsive drawer */
@media (max-width: 768px) {
    .sticky-note-widget {
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        top: auto !important;
        width: 100% !important;
        height: 70vh !important;
        border-radius: 24px 24px 0 0 !important;
        transform: translateY(100%) !important;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        border-bottom: none !important;
        transition: transform 0.3s cubic-bezier(0.32, 0.94, 0.6, 1) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .sticky-note-widget.active {
        transform: translateY(0) !important;
    }

    .sticky-note-widget.hidden {
        display: none !important;
    }

    .note-drag-handle {
        cursor: default !important;
        padding-top: 8px !important;
    }

    .mobile-drag-pill {
        display: block !important;
        width: 36px;
        height: 4px;
        background: rgba(44, 62, 80, 0.15);
        border-radius: 2px;
        margin: 0 auto 10px auto;
    }

    #btn-dock-left, #btn-dock-right {
        display: none !important;
    }

    .fab-note {
        bottom: 80px;
        right: 20px;
    }
}

/* ==========================================================================
   Sidebar Collapse & Expand Support
   ========================================================================== */
.sidebar-toggle {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: auto;
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    color: var(--primary);
    background: rgba(45, 90, 39, 0.08);
    transform: scale(1.05);
}

.sidebar-toggle:active {
    transform: scale(0.95);
}

.sidebar-toggle i {
    width: 20px;
    height: 20px;
}

@media (min-width: 769px) {
    /* Smooth transition for sidebar and main content */
    .sidebar {
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: width, padding;
    }
    
    .main-content {
        transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: margin-left;
    }
    
    /* Collapsed state adjustments */
    .sidebar.collapsed {
        width: 80px;
        padding: 2rem 0.75rem;
        align-items: center;
        cursor: pointer;
    }
    
    .main-content.sidebar-collapsed {
        margin-left: 80px;
    }
    
    /* Brand logo/name inside collapsed sidebar */
    .sidebar.collapsed .brand {
        justify-content: center;
        width: 100%;
        margin-bottom: 2.5rem;
        gap: 0;
    }
    
    .sidebar.collapsed .brand-name {
        opacity: 0;
        width: 0;
        margin: 0;
        pointer-events: none;
        display: none;
    }
    
    .sidebar.collapsed .sidebar-toggle {
        display: none; /* Hide toggle button in collapsed state, clicking the whole sidebar expands it */
    }
    
    /* Nav menu inside collapsed sidebar */
    .sidebar.collapsed .nav-menu {
        width: 100%;
        align-items: center;
    }
    
    .sidebar.collapsed .nav-item {
        width: 48px;
        height: 48px;
        padding: 0;
        justify-content: center;
        gap: 0;
    }
    
    .sidebar.collapsed .nav-item span {
        display: none;
    }
    
    /* Footer inside collapsed sidebar */
    .sidebar.collapsed .sidebar-footer {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 1rem;
    }
    
    .sidebar.collapsed .user-profile {
        flex-direction: column;
        gap: 0.5rem;
        padding: 8px 4px;
        width: auto;
        background: transparent;
        border: none;
    }
    
    .sidebar.collapsed .user-info {
        display: none;
    }
    
    .sidebar.collapsed .btn-logout {
        padding: 8px;
    }
    
    .sidebar.collapsed .sidebar-footer div[style*="text-align: center"] {
        display: none; /* Hide version string in collapsed mode */
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .sidebar-toggle {
        display: none !important;
    }
}

/* ==========================================================================
   Zen Notes: Multiple Floating Post-its & Mobile Card Editors
   ========================================================================== */

/* Color-coded Pastel Themes (Glassmorphic Tint) */
.note-yellow {
    background: rgba(253, 224, 71, 0.25) !important;
    border: 1px solid rgba(253, 224, 71, 0.4) !important;
    color: #451a03 !important;
}
.note-pink {
    background: rgba(244, 114, 182, 0.25) !important;
    border: 1px solid rgba(244, 114, 182, 0.4) !important;
    color: #500724 !important;
}
.note-blue {
    background: rgba(96, 165, 250, 0.25) !important;
    border: 1px solid rgba(96, 165, 250, 0.4) !important;
    color: #1e3a8a !important;
}
.note-green {
    background: rgba(74, 222, 128, 0.25) !important;
    border: 1px solid rgba(74, 222, 128, 0.4) !important;
    color: #064e3b !important;
}

/* Desktop Floating Post-its */
.floating-postit {
    position: fixed;
    width: 220px;
    height: 220px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 12px;
    animation: postitScaleIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: box-shadow 0.2s, transform 0.2s;
    user-select: none;
}

.floating-postit:hover {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.floating-postit.dragging {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    transform: scale(1.02);
}

@keyframes postitScaleIn {
    from { opacity: 0; transform: scale(0.8) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.postit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    cursor: grab;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.postit-header:active {
    cursor: grabbing;
}

.postit-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: transform 0.1s, border-color 0.1s;
}

.color-dot:hover {
    transform: scale(1.25);
}

.color-dot.active {
    border-color: rgba(0, 0, 0, 0.45);
}

.color-dot.yellow { background: #fde047; }
.color-dot.pink { background: #f472b6; }
.color-dot.blue { background: #60a5fa; }
.color-dot.green { background: #4ade80; }

.btn-postit-close {
    border: none;
    background: transparent;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, background-color 0.2s;
}

.btn-postit-close:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.08);
}

.btn-postit-close i {
    width: 14px;
    height: 14px;
}

.postit-textarea {
    flex: 1;
    width: 100%;
    background: transparent;
    border: none;
    resize: none;
    font-family: inherit;
    font-size: 0.85rem;
    line-height: 1.4;
    color: inherit;
    padding: 4px 0;
}

.postit-textarea::placeholder {
    color: currentColor;
    opacity: 0.45;
}

/* Desktop Sidebar list item */
.desktop-postit-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 6px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s, border-color 0.2s;
    font-weight: 500;
}

.desktop-postit-list-item:hover {
    transform: translateX(2px);
    opacity: 0.95;
}

.color-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.color-indicator.yellow { background: #fde047; }
.color-indicator.pink { background: #f472b6; }
.color-indicator.blue { background: #60a5fa; }
.color-indicator.green { background: #4ade80; }

.desktop-postit-list-item .preview-text {
    flex: 1;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.desktop-postit-list-item .btn-delete-row {
    border: none;
    background: transparent;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, background-color 0.2s;
}

.desktop-postit-list-item .btn-delete-row:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.08);
}

.desktop-postit-list-item .btn-delete-row i {
    width: 12px;
    height: 12px;
}

/* Mobile Postit Card Editor */
.mobile-postit-card {
    display: flex;
    flex-direction: column;
    padding: 12px 14px;
    border-radius: var(--border-radius-md);
    margin-bottom: 12px;
    min-height: 150px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: postitScaleIn 0.2s ease-out;
}

.mobile-postit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 8px;
}

.mobile-postit-textarea {
    flex: 1;
    width: 100%;
    background: transparent;
    border: none;
    resize: none;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.4;
    color: inherit;
    min-height: 90px;
}

.mobile-postit-textarea::placeholder {
    color: currentColor;
    opacity: 0.45;
}

/* Hide floating post-its on mobile viewports */
@media (max-width: 768px) {
    .floating-postit {
        display: none !important;
    }
}

/* Modal padding adjustment for small mobile screens */
@media (max-width: 480px) {
    .modal-overlay .modal {
        padding: 1.25rem !important;
        width: 92% !important;
        margin: 0 auto;
    }
}


