/*  CSS RESET AND VARIABLES  */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-blue: #587ef4;
    --bg-color: #f7f9fd;
    --text-dark: #3a3d4d;
    --white: #ffffff;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

body {
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    padding-top: 50px;
}

.main-container {
    width: 90%;
    max-width: 800px;
}

/*  FLEX LAYOUT  */
.flex-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

/*  CARD STYLING  */
.card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.budget-card, .expense-card {
    flex: 1;
}

h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 600;
}

/*  INPUTS AND BUTTONS  */
input {
    width: 100%;
    padding: 12px;
    border: 1px solid #dcdce0;
    border-radius: 8px;
    margin-bottom: 15px;
    outline: none;
    font-size: 14px;
}

input:focus {
    border-color: var(--primary-blue);
}

button {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
}

button:hover {
    background-color: #436ee5;
}

/*  DASHBOARD BAR  */
.dashboard-bar {
    background-color: var(--primary-blue);
    display: flex;
    justify-content: space-around;
    padding: 25px;
    border-radius: 12px;
    color: var(--white);
    text-align: center;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.dash-item p {
    font-size: 15px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.dash-item span {
    font-size: 22px;
    font-weight: 500;
}

/*  EXPENSE LIST ITEMS  */
.expense-list-container {
    margin-top: 10px;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.item-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Specific Blue vertical line on left */
.accent-line {
    width: 4px;
    height: 35px;
    background-color: var(--primary-blue);
    border-radius: 2px;
}

.product-name {
    font-weight: 500;
    color: var(--text-dark);
    width: 150px;
}

.product-amount {
    color: #888;
}

.icons-wrapper {
    display: flex;
    gap: 15px;
}

.icons-wrapper i {
    cursor: pointer;
    font-size: 18px;
    color: var(--primary-blue);
    transition: 0.2s;
}

.icons-wrapper .fa-trash-can {
    color: #587ef4; 
}

.icons-wrapper i:hover {
    transform: scale(1.2);
}

/* Hide bar if empty */
.hide {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .flex-row {
        flex-direction: column;
    }
}