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

body {
    font-family: "Segoe UI", sans-serif;
    background: #f1f5f9;
    color: #1e293b;
    padding: 20px;
    font-size: 14px;
}

.container {
    max-width: 1250px;
    margin: auto;
}

.header {
    margin-bottom: 18px;
}

    .header h1 {
        font-size: 28px;
        font-weight: 700;
    }

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

.card {
    background: white;
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

    .card h3 {
        color: #64748b;
        margin-bottom: 6px;
        font-size: 13px;
    }

.value {
    font-size: 24px;
    font-weight: bold;
}

.income {
    border-left: 5px solid #22c55e;
}

.expense {
    border-left: 5px solid #ef4444;
}

.balance {
    border-left: 5px solid #3b82f6;
}

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

.panel {
    background: white;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

    .panel h2 {
        margin-bottom: 14px;
        font-size: 18px;
    }

.form-group {
    margin-bottom: 12px;
}

    .form-group label {
        display: block;
        margin-bottom: 5px;
        color: #475569;
        font-weight: 500;
        font-size: 13px;
    }

.input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
}

    .input:focus {
        outline: none;
        border-color: #4f46e5;
    }

.btn {
    width: 100%;
    border: none;
    background: #4f46e5;
    color: white;
    padding: 11px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

    .btn:hover {
        background: #4338ca;
    }

.tables {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th {
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

th, td {
    padding: 10px 12px;
    text-align: left;
}

tr:not(:last-child) {
    border-bottom: 1px solid #e2e8f0;
}

.income-text {
    color: #16a34a;
    font-weight: 600;
}

.expense-text {
    color: #dc2626;
    font-weight: 600;
}

.summary-income {
    background: #f0fdf4;
}

.summary-expense {
    background: #fef2f2;
}

    .summary-income td,
    .summary-expense td {
        padding: 12px;
    }

.balance-panel {
    margin-top: 20px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
}

.balance-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .balance-wrapper h2 {
        font-size: 20px;
    }

    .balance-wrapper p {
        font-size: 13px;
        opacity: 0.85;
    }

.balance-big {
    font-size: 32px;
    font-weight: bold;
}
.paid {
    text-decoration: line-through;
    color: gray;
}
.toggle-paid {
    cursor: pointer;
    
   
}

  
.income-title {
    color: #16a34a;
}

.expense-title {
    color: #dc2626;
}

@media(max-width: 1000px) {

    .cards {
        grid-template-columns: 1fr;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .tables {
        grid-template-columns: 1fr;
    }
}
