:root {
    --primary: #818cf8; 
    --secondary: #cebae3;
    --bg-dark: #050505; 
    --container-bg: #f8f9fb; 
    --card-bg: linear-gradient(135deg, #64c06f 0%, #1568c8 100%); 
    --text-main: #ffffff; 
    --text-muted: #e1e6ee; /* Inactive letters for gray color*/
    --border: rgba(117, 54, 54, 0.086);
}

body {
    background: var(--bg-dark);
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 0;
    padding: 20px;
    color: var(--text-main);
    
}

.app-container {
    width: 100%;
    max-width: 420px;
    min-height: 750px;
    max-height: 90vh;
    background: var(--container-bg);
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

header {
    background: linear-gradient(135deg, #159698 0%, #040e30 100%);
    color: #ffffff !important;
    padding: 30px 20px;
    text-align: center;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    flex-shrink: 0;
}

header p, header span {
    color: #e2e8f0 !important;
}

.input-group {
    padding: 25px;
    flex-shrink: 0;
}

.form-control label {
    color: #0d0e0e !important;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: #dff0ee;
    border: 1px solid #226cd5;
    border-radius: 12px;
    box-sizing: border-box;
    font-size: 16px;
    color: #222020 !important;
    transition: 0.3s;
}

input::placeholder {
    color: #64748b;
}

.btn-add {
    width: 100%;
    background: linear-gradient(to right, #6366f1, #a855f7);
    color: #ffffff !important;
    border: none;
    padding: 18px;
    border-radius: 15px;
    font-weight: 800;
    font-size: 18px;
    cursor: pointer;
}

.summary-card {
    background: var(--card-bg);
    margin: 20px;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border);
}

.summary-card span {
    color: #1e293b !important; /* show dark to Card labels */
}

.total-amount {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b !important; /* show dark to Card amount */
}

.scroll-area, .goals-scroll-area, .stats-scroll-area, .history-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 25px;
    margin-bottom: 80px;
}

#list li, .history-list div, .goals-scroll-area div {
    color: #d1c0c0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#list li span, .history-list div span {
    color: #350404 !important;
}

#list li small, .history-list div small, .goals-scroll-area small {
    color: #391605 !important;
}

/* UPDATED BOTTOM NAVIGATION STYLES */
.bottom-nav {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 70px;
    background: #0f172a !important;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    z-index: 100;
}

.nav-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

/* Inactive font color */
.nav-item span {
    color: var(--text-muted) !important; /* Home, Stats, Profile labels in gray color*/
    font-size: 11px;
    margin-top: 2px;
    transition: color 0.3s ease;
}

/* Active font in white color */
.nav-item.active span {
    color: #ffffff !important; 
    font-weight: 800;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: saturate(0.5) opacity(0.7);
}


.nav-item.active i {
    filter: saturate(1.5) brightness(1.5) !important;
    transform: translateY(-3px);
}

/* Icon Colors */
.icon-home { color: #3b82f6 !important; }
.icon-stats { color: #10b981 !important; }
.icon-goals { color: #f59e0b !important; }
.icon-profile { color: #ec4899 !important; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #475569; border-radius: 10px; }

@media (max-width: 480px) {
    body { padding: 0; }
    .app-container { max-width: 100%; min-height: 100vh; border-radius: 0; }
}

