* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '₹';
    position: fixed;
    top: 20px;
    left: 40px;
    font-size: 80px;
    color: rgba(255, 255, 255, 0.1);
    z-index: -1;
}

body::after {
    content: '₹';
    position: fixed;
    bottom: 20px;
    right: 40px;
    font-size: 80px;
    color: rgba(255, 255, 255, 0.1);
    z-index: -1;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.header h1 {
    color: #2c3e50;
    font-size: 2.5em;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.header::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    margin: 10px auto;
    border-radius: 2px;
}

.balance-card {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: white;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    transform: rotate(45deg);
}

.balance-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2em;
    margin-bottom: 15px;
}

.balance-amount {
    font-size: 3em;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.income-expense {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 30px 0;
}

.income-expense > div {
    flex: 1;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.income-expense > div:hover {
    transform: translateY(-5px);
}

.income-expense h4 {
    font-size: 1.1em;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.income {
    color: #2ecc71;
    font-size: 1.8em;
    font-weight: 600;
}

.expense {
    color: #e74c3c;
    font-size: 1.8em;
    font-weight: 600;
}

.transaction-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    position: relative;
}

.form-control {
    margin: 15px 0;
}

.form-control label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-weight: 500;
}

.form-control input, .form-control select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.form-control input:focus, .form-control select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    background: linear-gradient(135deg, #2980b9, #2c3e50);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.transaction-list {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.transaction {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.transaction:hover {
    transform: translateX(5px);
    background: #f1f3f5;
}

.transaction.income {
    border-left: 4px solid #2ecc71;
}

.transaction.expense {
    border-left: 4px solid #e74c3c;
}

.delete-btn {
    background: #ff4757;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    width: auto;
    font-size: 1em;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: #ff6b81;
    transform: scale(1.1);
}

.transaction-amount {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

@media screen and (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .income-expense {
        flex-direction: column;
    }

    .balance-amount {
        font-size: 2em;
    }

    .income, .expense {
        font-size: 1.5em;
    }

    .transaction-amount {
        font-size: 0.9em;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}