* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #eef1f5;
    padding: 30px;
}

.auth-box, .container {
    max-width: 450px;
    margin: auto;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 20px;
}

input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.btn {
    width: 100%;
    padding: 12px;
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

p {
    text-align: center;
    margin-top: 10px;
}

a { color: #0d6efd; }

/* DASHBOARD */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logout-btn {
    background: red;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
}

.stats {
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.stat {
    background: #f7f9fc;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.stat h4 {
    font-size: 14px;
    color: #666;
}

.stat p {
    font-size: 20px;
    font-weight: bold;
    color: #0d6efd;
}

/* AI BOX */
.ai-box {
    display: none;
    padding: 12px;
    background: #e8fbe8;
    border-left: 4px solid green;
    margin-bottom: 10px;
    border-radius: 6px;
}

.ai-pill {
    display: inline-block;
    padding: 5px 12px;
    background: #ddd;
    border-radius: 15px;
    margin-right: 5px;
    cursor: pointer;
}

.ai-pill.active {
    background: #0d6efd;
    color: white;
}

/* INPUT ROW */
.input-row {
    display: grid;
    grid-template-columns: 1fr 2fr 0.7fr;
    gap: 10px;
    margin-bottom: 20px;
}

.input-row button {
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 6px;
}

/* LIST */
.list .item {
    background: white;
    padding: 12px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.amount {
    font-weight: bold;
    color: #0d6efd;
}

.delete-btn {
    background: red;
    color: white;
    border: none;
    padding: 6px;
    border-radius: 4px;
}
