/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #0056D2;
    --primary-dark: #0044A5;
    --accent-color: #00E0FF;
    --bg-color: #F2F4F8;
    --card-bg: #FFFFFF;
    --text-dark: #0F172A;
    --text-gray: #64748B;
    --success-color: #10B981;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --border-radius-lg: 20px;
    --border-radius-md: 14px;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.03);
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.4;
    padding-bottom: 90px;
    /* Space for bottom nav */
    margin: 0;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

a:active {
    opacity: 0.7;
}

.app-container {
    max-width: 500px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg-color);
    position: relative;
    overflow-x: hidden;
}

/* Hide Sidebar Legacy */
.sidebar {
    display: none !important;
}

/* Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-color);
}

.welcome-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.logout-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #FEE2E2;
    color: #991B1B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Wallet Card (Rugged Standard) */
.wallet-card {
    margin: 0 20px 20px;
    background: linear-gradient(135deg, #0056D2 0%, #003F9A 100%);
    color: white;
    padding: 24px;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(0, 86, 210, 0.2);
    position: relative;
    overflow: hidden;
}

.wallet-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.amount-label {
    font-size: 0.8rem;
    opacity: 0.85;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-amount {
    font-size: 2rem;
    font-weight: 700;
    margin: 2px 0 4px;
    letter-spacing: -0.5px;
}

.sub-amount {
    font-size: 0.8rem;
    opacity: 0.95;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 20px;
}

.cta-row {
    display: flex;
    gap: 10px;
}

.cta-btn {
    flex: 1;
    background: white;
    color: var(--primary-color);
    padding: 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.cta-btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

/* Sections */
.section-title {
    padding: 0 20px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quick Grid */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    /* Reduced gap to fit 5 items */
    padding: 0 16px;
    /* Reduced padding */
    margin-bottom: 24px;
}

.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.icon-box {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-soft);
    color: var(--primary-color);
}

.icon-text {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-gray);
}

/* Vertical Activity List Styles */
.vertical-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 20px;
    padding-bottom: 20px;
    /* Space for shadow */
}

.activity-card {
    background: white;
    padding: 12px 16px;
    cursor: pointer;
    /* Clickable */
    /* Reduced vertical padding */
    border-radius: 8px;
    /* Distinct Shadow for Demarcation */
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #F1F5F9;
    display: flex;
    flex-direction: row;
    /* Row layout for list */
    align-items: center;
    justify-content: space-between;
    height: 30px;
    /* Allow content to dictate height */
    min-height: 25px;
    /* Consistent minimum size */
    transition: transform 0.1s, box-shadow 0.1s;
}

.activity-card:active {
    transform: scale(0.98);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.act-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.act-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    margin-bottom: 0;
    /* consistent with row */
}

.act-icon-box.supply {
    background: #fee2e2;
    color: #ef4444;
}

.act-icon-box.payment {
    background: #dcfce7;
    color: #10b981;
}

.act-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.act-type {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.act-date {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.act-amount {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
}

/* Forms & Tables */
.form-control {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    padding: 12px 14px;
    border-radius: 12px;
    width: 100%;
    font-family: inherit;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.form-label {
    font-size: 0.8rem;
    margin-bottom: 6px;
    display: block;
    color: var(--text-gray);
    font-weight: 500;
}

.btn {
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 86, 210, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--text-gray);
    border: 1px solid #e2e8f0;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

/* Bottom Nav - Centered Fixed (Standard) */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 460px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    display: flex;
    justify-content: space-around;
    padding: 12px 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-item {
    color: #94A3B8;
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.nav-item.active {
    color: var(--primary-color);
    background: #f1f5f9;
}

/* Square FAB */
.fab {
    background: var(--primary-color);
    width: 65px;
    /* Slightly larger for better touch target */
    height: 65px;
    border-radius: 20px;
    /* Softer rounded square */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-top: -35px;
    /* Adjust for larger size */
    box-shadow: 0 10px 25px rgba(0, 86, 210, 0.4);
    border: 4px solid var(--bg-color);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.fab:active {
    transform: scale(0.95);
    box-shadow: 0 5px 15px rgba(0, 86, 210, 0.3);
}

.fab svg {
    width: 28px;
    height: 28px;
    stroke: white;
    stroke-width: 2.5;
    z-index: 2;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: flex-end;
    z-index: 2000;
    backdrop-filter: blur(2px);
}

.modal-content {
    background: white;
    width: 100%;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 24px;
    animation: slideUp 0.3s ease;
    max-width: 500px;
    margin: 0 auto;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.receipt-row {
    display: flex;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.act-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.act-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    margin-bottom: 0;
    /* consistent with row */
}

.act-icon-box.supply {
    background: #fee2e2;
    color: #ef4444;
}

.act-icon-box.payment {
    background: #dcfce7;
    color: #10b981;
}

.act-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.act-type {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.act-date {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.act-amount {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
}

/* Forms & Tables */
.form-control {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    padding: 12px 14px;
    border-radius: 12px;
    width: 100%;
    font-family: inherit;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.form-label {
    font-size: 0.8rem;
    margin-bottom: 6px;
    display: block;
    color: var(--text-gray);
    font-weight: 500;
}

.btn {
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 86, 210, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--text-gray);
    border: 1px solid #e2e8f0;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

/* Bottom Nav - Centered Fixed (Standard) */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 460px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    display: flex;
    justify-content: space-around;
    padding: 12px 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-item {
    color: #94A3B8;
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.nav-item.active {
    color: var(--primary-color);
    background: #f1f5f9;
}

/* Square FAB */
.fab {
    background: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 14px;
    /* Square */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-top: -30px;
    box-shadow: 0 6px 16px rgba(0, 86, 210, 0.3);
    border: 4px solid var(--bg-color);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: flex-end;
    z-index: 2000;
    backdrop-filter: blur(2px);
}

.modal-content {
    background: white;
    width: 100%;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 24px;
    animation: slideUp 0.3s ease;
    max-width: 500px;
    margin: 0 auto;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

/* MINIMALIST CLEAN LOGIN */
.landing-body {
    background-color: #F8F9FA;
    /* Soft light gray */
    margin: 0;
    min-height: 100vh;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Central Card / Mobile View */
.landing-container {
    width: 100%;
    max-width: 400px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content vertically */
    min-height: 100vh;
    /* Full screen on mobile */
    background: transparent;
}

/* On Desktop, make it a card */
@media (min-width: 500px) {
    .landing-container {
        min-height: auto;
        background: #FFFFFF;
        border-radius: 24px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
        /* Extremely subtle shadow */
        margin: 20px;
        height: auto;
        border: 1px solid #F3F4F6;
        padding: 40px;
    }
}

/* Header */
.login-header {
    margin-bottom: 32px;
    text-align: left;
    /* Aligned left like reference */
}

.login-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1F2937;
    /* Dark Gray */
    margin: 0 0 8px 0;
}

.login-header p {
    font-size: 1rem;
    color: #6B7280;
    /* Medium Gray */
    margin: 0;
}

/* Form Elements */
.form-group-float {
    position: relative;
    margin-bottom: 20px;
}

.form-group-float i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    /* Light Gray Icon */
    font-size: 1.1rem;
    transition: color 0.3s;
    z-index: 2;
}

.form-input-lg {
    width: 100%;
    padding: 18px 18px 18px 54px;
    /* Space for icon */
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    /* Very light border */
    border-radius: 16px;
    font-size: 1rem;
    color: #1F2937;
    font-family: inherit;
    transition: all 0.2s;
    outline: none;
    box-sizing: border-box;
    /* Ensure padding doesn't affect width */
}

/* Input Focus State */
.form-input-lg:focus {
    border-color: #E5E7EB;
    box-shadow: 0 0 0 4px rgba(243, 244, 246, 1);
    /* Soft spread shadow */
}

.form-input-lg:focus+i,
.form-group-float:focus-within i {
    color: #4B5563;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    cursor: pointer;
    left: auto !important;
    /* Override left positioning */
}

/* Actions */
.login-meta {
    display: flex;
    justify-content: flex-end;
    /* Only forgot password on right */
    margin-bottom: 32px;
}

.forgot-link {
    color: #0056D2;
    /* Brand Blue */
    font-weight: 600;
    font-size: 0.95rem;
}

/* Button */
.btn-lg-primary {
    width: 100%;
    padding: 18px;
    background: #E0E7FF;
    /* Light Lavender/Blue base */
    color: #4338CA;
    /* Darker Indigo text */
    border: none;
    border-radius: 50px;
    /* Pillow shape */
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: none;
    text-align: center;
}

.btn-lg-primary:hover {
    background: #eef2ff;
    transform: translateY(-1px);
}

/* Footer Actions */
.hero-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 0.95rem;
    color: #6B7280;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.create-account-btn {
    background: #EBF5FF;
    color: #0056D2;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.login-wrapper {
    width: 100%;
}