* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #070812;
    color: white;
}

.dashboard {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: linear-gradient(180deg, #101322, #080910);
    border-right: 1px solid rgba(255,255,255,.08);
    padding: 30px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar h2 {
    color: #8aff80;
    margin-bottom: 8px;
}

.sidebar p {
    color: #a9afc3;
    margin-bottom: 35px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar nav a {
    color: #dce2ff;
    text-decoration: none;
    padding: 13px 14px;
    border-radius: 14px;
    transition: .3s;
}

.sidebar nav a:hover,
.sidebar nav a:first-child {
    background: linear-gradient(135deg, #8aff80, #4dd4ff);
    color: #071008;
    font-weight: 800;
}

.main-content {
    padding: 35px;
}

.hero {
    background: radial-gradient(circle at top left, rgba(138,255,128,.25), transparent 35%),
                linear-gradient(135deg, #11172b, #0b0d18);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 28px;
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.tag {
    color: #8aff80;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 2.7rem;
    margin-bottom: 10px;
}

.hero p {
    color: #b7bfd8;
}

button {
    background: linear-gradient(135deg, #8aff80, #4dd4ff);
    color: #071008;
    border: none;
    padding: 13px 20px;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: .25s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(138,255,128,.25);
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 25px;
}

.card,
.chart-box,
.budget-box,
.transactions,
.tool-box,
.alert-box {
    background: rgba(17, 21, 38, .9);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 20px 45px rgba(0,0,0,.2);
}

.card p,
.chart-box p,
.tool-box p {
    color: #aeb6d3;
    margin-bottom: 10px;
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.card span,
.tool-box span {
    color: #8aff80;
    font-size: .9rem;
}

.balance-card {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
}

.safe-card {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: #061008;
}

.safe-card p,
.safe-card span {
    color: #061008;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 20px;
    margin-bottom: 25px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.large-chart {
    min-height: 360px;
}

.chart-box h3,
.budget-box h3,
.transactions h3,
.tool-box h3,
.alert-box h3 {
    margin-bottom: 12px;
}

.tool-box input,
.goal-form input,
.modal-content input,
.modal-content select {
    width: 100%;
    padding: 13px;
    margin-bottom: 12px;
    border-radius: 13px;
    border: 1px solid rgba(255,255,255,.1);
    background: #0c1020;
    color: white;
    outline: none;
}

.tool-box input:focus,
.goal-form input:focus,
.modal-content input:focus,
.modal-content select:focus {
    border-color: #8aff80;
}

.tool-box h2 {
    color: #8aff80;
    margin-top: 18px;
    font-size: 2rem;
}

.budget-item {
    margin-bottom: 22px;
}

.budget-item p {
    display: flex;
    justify-content: space-between;
    color: #eef2ff;
    margin-bottom: 10px;
}

.budget-item span {
    color: #8aff80;
}

.bar {
    height: 12px;
    background: #20263d;
    border-radius: 50px;
    overflow: hidden;
}

.bar div {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #8aff80, #4dd4ff);
    border-radius: 50px;
    transition: width .4s ease;
}

.alert-box {
    margin-bottom: 25px;
    border-left: 5px solid #8aff80;
}

#alertMessage {
    color: #dce2ff;
    line-height: 1.6;
}

.goal-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 12px;
    margin-bottom: 25px;
}

.goal-card {
    background: #0c1020;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 15px;
}

.goal-card h4 {
    margin-bottom: 8px;
}

.goal-card p {
    color: #aeb6d3;
    margin-bottom: 10px;
}

.goal-progress-text {
    color: #8aff80 !important;
    font-weight: 800;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    color: #8aff80;
    text-align: left;
    padding-bottom: 14px;
}

td {
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    color: #e9edff;
}

.income {
    color: #8aff80 !important;
    font-weight: 800;
}

.expense {
    color: #ff6b6b !important;
    font-weight: 800;
}

.goal {
    color: #4dd4ff !important;
    font-weight: 800;
}

.delete-btn {
    background: #ff5c7a;
    color: white;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: .8rem;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    width: 460px;
    background: #111526;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 24px;
    padding: 26px;
}

.close-btn {
    float: right;
    font-size: 26px;
    cursor: pointer;
}

.close-btn:hover {
    color: #8aff80;
}

@media (max-width: 950px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    .sidebar {
        height: auto;
        position: relative;
    }

    .cards,
    .overview-grid,
    .grid,
    .goal-form {
        grid-template-columns: 1fr;
    }

    .hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}
.score-card {
    background: linear-gradient(135deg, #7f5af0, #4dd4ff);
    color: white;
}

.score-card span {
    color: white;
}

.goal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.goal-card input {
    margin-top: 10px;
}