
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #e3e8ef 100%);
            color: #1f2937;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 1rem;
        }

        .container {
            background: white;
            border-radius: 16px;
            box-shadow: 0 10px 40px rgba(37, 99, 235, 0.1);
            width: 100%;
            max-width: 1200px;
            padding: 2rem;
            max-height: 95vh;
            overflow-y: auto;
        }

        .header {
            text-align: center;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 2px solid #e5e7eb;
        }

        .header h1 {
            color: #2563eb;
            font-size: 2rem;
            margin-bottom: 0.5rem;
        }

        .header p {
            color: #6b7280;
            font-size: 0.95rem;
        }

        .main-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
        }

        .section {
            background: #f9fafb;
            padding: 1.5rem;
            border-radius: 12px;
            border: 1px solid #e5e7eb;
        }

        .section-title {
            color: #2563eb;
            font-size: 1.2rem;
            margin-bottom: 1rem;
            font-weight: 600;
        }

        .income-section {
            margin-bottom: 1.5rem;
        }

        .input-group {
            margin-bottom: 1rem;
        }

        label {
            display: block;
            color: #374151;
            font-weight: 500;
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
        }

        input[type="number"] {
            width: 100%;
            padding: 0.75rem;
            border: 2px solid #d1d5db;
            border-radius: 8px;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        input[type="number"]:focus {
            outline: none;
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }

        input.error {
            border-color: #ef4444;
        }

        .category-item {
            display: grid;
            grid-template-columns: 1fr 100px 40px;
            gap: 0.75rem;
            margin-bottom: 0.75rem;
            align-items: end;
        }

        .category-item input {
            padding: 0.6rem;
            font-size: 0.9rem;
        }

        .btn {
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: 8px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .btn-primary {
            background: #2563eb;
            color: white;
        }

        .btn-primary:hover {
            background: #1d4ed8;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        }

        .btn-secondary {
            background: #3b82f6;
            color: white;
            width: 100%;
            margin-top: 1rem;
        }

        .btn-secondary:hover {
            background: #2563eb;
        }

        .btn-remove {
            background: #ef4444;
            color: white;
            padding: 0.6rem;
            font-size: 1rem;
            border-radius: 6px;
        }

        .btn-remove:hover {
            background: #dc2626;
        }

        .btn-add {
            background: #60a5fa;
            color: white;
            padding: 0.6rem 1rem;
            font-size: 0.9rem;
        }

        .btn-add:hover {
            background: #3b82f6;
        }

        .validation-message {
            padding: 0.75rem;
            border-radius: 8px;
            margin-top: 1rem;
            font-size: 0.9rem;
            text-align: center;
            font-weight: 500;
        }

        .validation-success {
            background: #d1fae5;
            color: #065f46;
            border: 1px solid #6ee7b7;
        }

        .validation-error {
            background: #fee2e2;
            color: #991b1b;
            border: 1px solid #fca5a5;
        }

        .results-grid {
            display: grid;
            gap: 0.75rem;
            margin-top: 1rem;
        }

        .result-item {
            background: white;
            padding: 1rem;
            border-radius: 8px;
            border-left: 4px solid #2563eb;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }

        .result-category {
            font-weight: 600;
            color: #374151;
        }

        .result-amount {
            font-size: 1.1rem;
            color: #2563eb;
            font-weight: 700;
        }

        .result-percentage {
            font-size: 0.85rem;
            color: #6b7280;
            margin-left: 0.5rem;
        }

        .empty-state {
            text-align: center;
            padding: 2rem;
            color: #9ca3af;
        }

        .empty-state svg {
            width: 64px;
            height: 64px;
            margin-bottom: 1rem;
            opacity: 0.5;
        }

        @media (max-width: 768px) {
            .main-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }

            .header h1 {
                font-size: 1.5rem;
            }

            .container {
                padding: 1.5rem;
            }

            .category-item {
                grid-template-columns: 1fr 80px 35px;
                gap: 0.5rem;
            }
        }

        @media (max-height: 700px) {
            .container {
                max-height: 98vh;
                padding: 1rem;
            }

            .header {
                margin-bottom: 1rem;
            }

            .section {
                padding: 1rem;
            }
        }