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

body {
    font-family: 'Rubik', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 0px;
    min-height: 100vh;
}


main {
    width: 100%;
    max-width: 1000px;
    padding: 10px;
    border-radius: 10px;
}

.dashboard-container {
    width: 100%;
    max-width: 1100px;
}

.header {
    margin-bottom: 30px;
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header p {
    color: #8b8e99;
    font-size: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-label {
    color: #8b8e99;
    font-size: 14px;
    font-weight: 500;
}

.card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 1.4rem;
    box-shadow: var(--boxShadow);
    margin-bottom: 20px;
}

.icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    position: absolute;
    right: 10px;
    top: 10px;
}

.icon-green {
    background-color: #059669;
    color: white;
}

.icon-purple {
    background-color: #7c3aed;
    color: white;
}

.icon-orange {
    background-color: #ea580c;
    color: white;
}

.icon-teal {
    background-color: #0d9488;
    color: white;
}

.card-value {
    font-size: 28px;
    font-weight: 700;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-subtext {
    color: #8b8e99;
    font-size: 15px;
}

.transactions-section {
    height: auto;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    background-color: rgb(42, 33, 64);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding-bottom: 20px;
}

.section-header {
    width: 94%;
    height: auto;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(42, 33, 64);
    margin: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
}

.btn-add {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-add:hover {
    transform: translateY(-2px);
}

.transaction-list {
    height: auto;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    gap: 15px;
}

.transaction-item {
    width: 94%;
    height: auto;
    margin: auto;
    padding: 15px 15px;
    display: flex;
    align-items: center;
    border-radius: 12px;
    background-color: rgb(41, 38, 66);
    transition: background-color 0.2s;
}

.transaction-item:hover {
    background-color: rgb(48, 44, 75);
}

.item_manage {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.t-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.t-icon {
    width: 48px;
    height: 48px;
    background-color: #232030;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #a78bfa;
    flex-shrink: 0;
}

.t-icon.food {
    color: #f472b6;
}

.t-icon.travel {
    color: #3b82f6;
}

.t-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.t-title {
    font-size: 15px;
    font-weight: 600;
    color: white;
}

.t-date {
    font-size: 13px;
    color: #8b8e99;
}

.t-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.t-amount {
    font-size: 15px;
    font-weight: 700;
}

.amount-green {
    color: #10b981;
}

.amount-white {
    color: #ffffff;
}

.t-badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
    text-transform: lowercase;
}

.badge-income {
    background-color: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.badge-expense-orange {
    background-color: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.badge-expense-blue {
    background-color: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

@media (max-width: 480px) {
    .item_manage {
        gap: 10px;
    }

    .t-title {
        font-size: 14px;
    }

    .t-date {
        font-size: 11px;
        max-width: 120px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .t-amount {
        font-size: 14px;
    }
}





.seeHead {
    display: flex;
    justify-content: space-between
}


.seeTransCardContainer {
    margin-top: 20px;
}

.seeTransCard {
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    scrollbar-width: none;
}

.scard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-radius: 14px;
    position: relative;

    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.06),
            rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, 0.08);

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scard:hover {
    transform: translateY(-2px);
}

.scardP1 {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.deleteBtn {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    position: absolute;
    top: 7px;
    right: 7px;
}

.sCat {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.sdate {
    font-size: 13px;
    color: #b8b8c7;
}

.snote {
    font-size: 12px;
    color: #9a9ab0;
}

.scardP2 {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sAmt {
    font-size: 18px;
    font-weight: 700;
}

.sAmt.income {
    color: #2bd576;
}

.sAmt.expense {
    color: #ff5c5c;
}

.seeIncExp {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    width: fit-content;
    margin-left: auto;
    text-transform: capitalize;

}

.sincome {
    background: linear-gradient(135deg,
            rgba(46, 213, 115, 0.25),
            rgba(46, 213, 115, 0.15));
    border-color: rgba(46, 213, 115, 0.4);
    color: #2bd576;
}

.sexpense {
    background: linear-gradient(135deg,
            rgba(255, 92, 92, 0.25),
            rgba(255, 92, 92, 0.15));
    border-color: rgba(255, 92, 92, 0.4);
    color: #ff5c5c;
}