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

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

/* ================= BODY ================= */

body {
    font-family: 'Segoe UI', sans-serif;
    min-height: 100vh;
    background: #e6fffa;
    color: #134e4a;
}

/* ================= BACKGROUNDS ================= */

.login-bg,
.register-bg,
.dashboard-bg,
.expense-bg,
.profile-bg,
.budget-bg {
    background: #e6fffa;
    min-height: 100vh;
    width: 100%;
}

/* ================= CENTER ALIGNMENT ================= */

.container-center,
.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* New structural container that subtracts the navbar height */
.page-content-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 65px);
    width: 100%;
    padding: 40px 20px;
}

/* ================= FORM BOX & CARDS ================= */

.form-box,
.card {
    background: white;
    width: 100%;
    max-width: 500px;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* ================= TITLES ================= */

h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

h2 {
    font-size: 26px;
    margin-bottom: 20px;
}

h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

h1,
h2,
h3,
h4,
h5 {
    color: #115e59;
}

/* ================= INPUTS ================= */

input,
select {
    width: 100%;
    padding: 14px;
    margin-bottom: 18px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
}

input:focus,
select:focus {
    border-color: #0f766e;
    box-shadow: 0 0 5px rgba(15,118,110,0.3);
}

/* ================= BUTTONS ================= */

button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: #0f766e;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #115e59;
}

/* ================= CLEAN NAVBAR ================= */

.navbar {
    height: 65px;
    background: #0f766e;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.navbar h2 {
    color: white;
    margin: 0;
    font-size: 22px;
}

.nav-link {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
}

.nav-link:hover {
    color: #ccfbf1;
}

/* ================= BUDGET PAGE ================= */

.budget-card {
    max-width: 500px;
    text-align: center;
    margin: 0 auto;
}

.success-msg {
    margin-top: 18px;
    font-size: 15px;
    font-weight: 600;
    color: #059669;
}

/* ================= DASHBOARD CORE LAYOUT ================= */

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.dashboard-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.dashboard-card {
    flex: 1;
    max-width: none;
    text-align: center;
    padding: 25px;
}

.dashboard-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.dashboard-buttons a {
    flex: 1;
    max-width: 250px;
}

.chart-section {
    display: flex;
    justify-content: center;
    width: 100%;
}

.chart-card {
    width: 100%;
    max-width: 600px;
    text-align: center;
    padding: 30px;
}

.chart-wrapper {
    width: 100%;
    max-width: 450px;
    margin: 20px auto 0 auto;
}

#chart {
    width: 100%;
    height: auto;
}

/* ================= FILTER ================= */

.filter-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-row input,
.filter-row select {
    flex: 1;
    margin-bottom: 0;
}

.filter-row button {
    width: auto;
    padding: 12px 20px;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

thead {
    background: #0f766e;
    color: white;
}

th,
td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

/* ================= LINKS ================= */

a {
    color: #0f766e;
    text-decoration: none;
    font-weight: 600;
}

.back-link {
    display: block;
    margin-top: 20px;
    text-align: center;
}

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

.profile-card {
    max-width: 500px;
    text-align: left;
}

.profile-info {
    margin-top: 20px;
}

.profile-info p {
    font-size: 17px;
    margin-bottom: 18px;
    color: #374151;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
}

.profile-info p:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.profile-info strong {
    color: #115e59;
}

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

@media (max-width: 768px) {
    .dashboard-grid,
    .dashboard-buttons {
        flex-direction: column;
        align-items: center;
    }

    .dashboard-card,
    .dashboard-buttons a {
        width: 100%;
        max-width: 100%;
    }

    .card,
    .form-box {
        width: 95%;
        padding: 25px;
    }

    .filter-row {
        flex-direction: column;
    }
}
