@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; }

body {
    background: #bae6fd; /* Light Sky Blue base */
    background: linear-gradient(to bottom, #bae6fd, #e0f2fe);
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* NAVBAR - SKY BLUE WITH WHITE TEXT */
nav {
    background: #20b0f8; /* Stronger Sky Blue */
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

nav h2 { color: #fff; font-weight: 700; letter-spacing: 1px; }

#user-info { display: flex; align-items: center; gap: 15px; color: #fff; }

nav button {
    background: #fff; 
    color: #0284c7; 
    border: none;
    padding: 8px 20px; 
    border-radius: 20px; 
    cursor: pointer; 
    font-weight: 700;
    transition: 0.3s;
}



/* LAYOUT */
.dashboard-wrapper {
    flex: 1;
    max-width: 1100px;
    margin: 30px auto;
    width: 90%;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.card {
    background: white;
    border-radius: 30px; 
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

h3 { margin-bottom: 20px; font-size: 1.1rem; color: #0284c7; font-weight: 700; text-align: center; }

form { display: flex; flex-direction: column; gap: 15px; }

input { 
    background: #eee; 
    border: none; 
    padding: 14px; 
    border-radius: 12px; 
    outline: none; 
    font-size: 14px;
}

/* CATEGORY & STATUS CHIPS */
.category-selector, .status-toggle { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.category-selector input, .status-toggle input { display: none; }
.category-selector span, .toggle-btn {
    padding: 10px 18px; background: #eee; border-radius: 25px; font-size: 13px; cursor: pointer; transition: 0.3s;
}
.category-selector input:checked + span, .status-toggle input:checked + .toggle-btn { 
    background: #0284c7; color: white; 
}

/* BUTTON */
button[type="submit"] {
    background: #0284c7;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

button[type="submit"]:hover {
    background: #0ea5e9;
    transform: scale(1.02);
}

/* ANALYTICS */
.stats-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
#total-balance { color: #333; font-size: 1.8rem; font-weight: 800; }
.chart-box { max-width: 220px; margin: 0 auto; }

/* LISTS */
ul { list-style: none; }
li { 
    padding: 15px 0; 
    border-bottom: 1px solid #e0f2fe; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}
li span strong { color: #0284c7; font-size: 12px; margin-left: 5px; }

.pending-item { 
    background: #f0f9ff; 
    padding: 15px; 
    border-radius: 15px; 
    margin-bottom: 10px; 
    display: flex; 
    justify-content: space-between; 
}
.due { color: #0284c7; font-weight: 800; }

/* FOOTER */
footer {
    background: #0284c7;
    text-align: center;
    padding: 25px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    margin-top: auto;
}

@media (max-width: 768px) { .row { grid-template-columns: 1fr; } }
.fa-trash {
    background: #fee2e2;
    padding: 5px;
    border-radius: 4px;
    display: inline-block !important;
}