 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        :root {
            --primary: #4361ee;
            --secondary: #3f37c9;
            --income: #2ecc71;
            --expense: #e74c3c;
            --light: #f8f9fa;
            --dark: #212529;
            --card-bg: rgba(255, 255, 255, 0.95);
            --shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
            --transition: all 0.3s ease;
        }

        body {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
            color: var(--dark);
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .container {
            max-width: 1200px;
            width: 100%;
            margin: 0 auto;
        }

        /* Header Styles */
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding: 20px;
            background: var(--card-bg);
            border-radius: 20px;
            box-shadow: var(--shadow);
        }

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

        .logo {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 20px;
            font-weight: bold;
        }

        .brand-text h1 {
            font-size: 28px;
            color: var(--secondary);
            font-weight: 700;
            letter-spacing: 0.5px;
        }

        .brand-text p {
            font-size: 14px;
            color: #666;
            font-weight: 500;
        }

        /* Dashboard */
        .dashboard {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 25px;
            margin-bottom: 30px;
        }

        @media (max-width: 768px) {
            .dashboard {
                grid-template-columns: 1fr;
            }
        }

        .card {
            background: var(--card-bg);
            border-radius: 20px;
            padding: 30px;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(31, 38, 135, 0.2);
        }

        .card h2 {
            font-size: 24px;
            margin-bottom: 20px;
            color: var(--secondary);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .card h2 i {
            color: var(--primary);
        }

        /* Balance Summary */
        .balance-summary {
            display: flex;
            justify-content: space-between;
            margin-bottom: 30px;
        }

        .balance-item {
            text-align: center;
            padding: 20px;
            border-radius: 15px;
            background: rgba(67, 97, 238, 0.05);
            flex: 1;
            margin: 0 10px;
        }

        .balance-item:first-child {
            margin-left: 0;
        }

        .balance-item:last-child {
            margin-right: 0;
        }

        .balance-item h3 {
            font-size: 16px;
            margin-bottom: 10px;
            color: #666;
        }

        .balance-value {
            font-size: 28px;
            font-weight: 700;
        }

        #balance {
            color: var(--primary);
        }

        #income {
            color: var(--income);
        }

        #expense {
            color: var(--expense);
        }

        /* Form */
        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #555;
        }

        .form-control {
            width: 100%;
            padding: 14px;
            border-radius: 10px;
            border: 1px solid #ddd;
            font-size: 16px;
            transition: var(--transition);
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
        }

        .btn {
            background: linear-gradient(to right, var(--primary), var(--secondary));
            color: white;
            border: none;
            padding: 14px 30px;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            width: 100%;
            margin-top: 10px;
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
        }

        .radio-group {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
        }

        .radio-option {
            flex: 1;
            text-align: center;
            padding: 15px;
            border: 2px solid #eee;
            border-radius: 10px;
            cursor: pointer;
            transition: var(--transition);
        }

        .radio-option.selected {
            border-color: var(--primary);
            background: rgba(67, 97, 238, 0.05);
        }

        .radio-option i {
            font-size: 24px;
            margin-bottom: 10px;
        }

        .income-option.selected i {
            color: var(--income);
        }

        .expense-option.selected i {
            color: var(--expense);
        }

        /* Transaction List */
        .transactions {
            max-height: 400px;
            overflow-y: auto;
            padding-right: 10px;
        }

        .transaction-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            margin-bottom: 15px;
            border-radius: 10px;
            background: white;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
            transition: var(--transition);
        }

        .transaction-item:hover {
            transform: translateX(5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .transaction-info {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .transaction-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 18px;
        }

        .income .transaction-icon {
            background: var(--income);
        }

        .expense .transaction-icon {
            background: var(--expense);
        }

        .transaction-details h3 {
            font-size: 16px;
            margin-bottom: 5px;
        }

        .transaction-details p {
            font-size: 14px;
            color: #777;
        }

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

        .income .transaction-amount {
            color: var(--income);
        }

        .expense .transaction-amount {
            color: var(--expense);
        }

        .delete-btn {
            background: none;
            border: none;
            color: #e74c3c;
            cursor: pointer;
            font-size: 18px;
            opacity: 0.7;
            transition: var(--transition);
        }

        .delete-btn:hover {
            opacity: 1;
            transform: scale(1.1);
        }

        /* Chart Container */
        .chart-container {
            height: 300px;
            margin-top: 20px;
        }

        /* Footer */
        footer {
            text-align: center;
            padding: 20px;
            color: rgba(255, 255, 255, 0.7);
            font-size: 14px;
            margin-top: 30px;
        }

        footer a {
            color: white;
            text-decoration: none;
            font-weight: 600;
        }

        footer a:hover {
            text-decoration: underline;
        }

        /* Responsive Adjustments */
        @media (max-width: 576px) {
            .balance-summary {
                flex-direction: column;
                gap: 15px;
            }

            .balance-item {
                margin: 0;
            }

            .radio-group {
                flex-direction: column;
            }
        }