
/* Add space below the header bar */
.header-bar {
    margin-bottom: 1.5rem;
/* Minimalist filter buttons */
.type-btns {
    display: flex;
    gap: 0.5rem;
}
.type-btn {
    padding: 0.4em 1.1em;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.type-btn.active,
.type-btn:hover {
    background: #174ea6;
    color: #fff;
    border-color: #174ea6;
/* Layout for content and vertical actions in expense tile */
.expense-content-actions {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}
.expense-content {
    flex: 1 1 auto;
    min-width: 0;
}
.expense-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    margin-top: 0;
}
    text-decoration: none;
}
}
/* Boxes */
.boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.box {
    width: 100%;
    max-width: 100vw;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.2rem 1rem;
    box-sizing: border-box;
    text-align: left;
    margin-bottom: 0;
    box-shadow: none;
    transition: border-color 0.2s;
}

@media (min-width: 600px) {
    .box {
        width: calc(50% - 0.5rem);
        max-width: 600px;
    }
}

/* Add Expense "+" Button */
.add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #3498db;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(52,152,219,0.15);
    border: none;
    position: relative;
    top: 0;
    left: 0;
    /* margin-bottom: 1.5rem; */
    transition: background 0.2s;
    text-decoration: none;
}
.add-btn:hover {
    background: #217dbb;
    color: #fff;
    text-decoration: none;
}

/* Expense Card Content */
.expense-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    gap: 0.5em;
}
.expense-type {
    background: #f5f5f5;
    color: #333;
    border-radius: 6px;
    padding: 0.15em 0.6em;
    font-size: 0.92em;
    border: 1px solid #e0e0e0;
}
.expense-date {
    font-size: 0.8em;
}
.expense-info {
    margin-bottom: 1rem;
    color: #888;
    font-style: italic;
    font-size: 0.9em;
}
.expense-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

/* Buttons */

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #333;
    font-size: 1em;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    cursor: pointer;
    padding: 0;
}
.btn-show {
    border: 1px solid #174ea6;
    color: #174ea6;
    background: #fff;
}
.btn-show:hover {
    background: #174ea6;
    color: #fff;
}
.btn-edit {
    border: 1px solid #888;
    color: #555;
    background: #fff;
}
.btn-edit:hover {
    background: #f5f5f5;
    color: #111;
}
.btn-delete {
    border: 1px solid #c00;
    color: #c00;
    background: #fff;
}
.btn-delete:hover {
    background: #c00;
    color: #fff;
}

/* Remove redundant button styles for minimalism */
.btn-edit:link,
.btn-edit:visited,
.btn-show:link,
.btn-show:visited {
    color: #fff;
    text-decoration: none;
}
.btn-edit:hover,
.btn-show:hover {
    text-decoration: none;
}