
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        :root {
            --primary: #6366f1;
            --primary-dark: #4f46e5;
            --success: #22c55e;
            --danger: #ef4444;
            --warning: #f59e0b;
            --info: #3b82f6;
            --dark: #1e1e2e;
            --darker: #181825;
            --card: #2a2a3c;
            --text: #e4e4e7;
            --text-muted: #9ca3af;
            --border: #3f3f5a;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: var(--darker);
            color: var(--text);
            min-height: 100vh;
        }
        
        /* Sidebar */
        .sidebar {
            position: fixed;
            left: 0;
            top: 0;
            width: 260px;
            height: 100vh;
            background: var(--dark);
            padding: 20px;
            border-right: 1px solid var(--border);
            z-index: 100;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 0 30px;
            border-bottom: 1px solid var(--border);
            margin-bottom: 20px;
        }
        
        .logo i {
            font-size: 32px;
            color: var(--primary);
        }
        
        .logo h1 {
            font-size: 20px;
            font-weight: 700;
        }
        
        .logo span {
            color: var(--primary);
        }
        
        .nav-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s;
            margin-bottom: 4px;
            color: var(--text-muted);
        }
        
        .nav-item:hover {
            background: var(--card);
            color: var(--text);
        }
        
        .nav-item.active {
            background: var(--primary);
            color: white;
        }
        
        .nav-item i {
            font-size: 20px;
        }
        
        /* Main Content */
        .main {
            margin-left: 260px;
            padding: 24px;
            min-height: 100vh;
        }
        
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
        }
        
        .header h2 {
            font-size: 28px;
            font-weight: 700;
        }
        
        .header-actions {
            display: flex;
            gap: 12px;
        }
        
        .btn {
            padding: 10px 20px;
            border-radius: 10px;
            border: none;
            cursor: pointer;
            font-weight: 600;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s;
        }
        
        .btn-primary {
            background: var(--primary);
            color: white;
        }
        
        .btn-primary:hover {
            background: var(--primary-dark);
        }
        
        .btn-success {
            background: var(--success);
            color: white;
        }
        
        .btn-danger {
            background: var(--danger);
            color: white;
        }
        
        .btn-outline {
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text);
        }
        
        .btn-outline:hover {
            background: var(--card);
        }
        
        /* Cards */
        .cards-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin-bottom: 24px;
        }
        
        .card {
            background: var(--card);
            border-radius: 16px;
            padding: 24px;
            border: 1px solid var(--border);
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        }
        
        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 16px;
        }
        
        .card-icon {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
        }
        
        .card-icon.income { background: rgba(34, 197, 94, 0.2); color: var(--success); }
        .card-icon.expense { background: rgba(239, 68, 68, 0.2); color: var(--danger); }
        .card-icon.balance { background: rgba(99, 102, 241, 0.2); color: var(--primary); }
        .card-icon.tasks { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
        
        .card-value {
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 4px;
        }
        
        .card-label {
            color: var(--text-muted);
            font-size: 14px;
        }
        
        .card-trend {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 13px;
            margin-top: 8px;
        }
        
        .card-trend.up { color: var(--success); }
        .card-trend.down { color: var(--danger); }
        
        /* Content Grid */
        .content-grid {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 20px;
        }
        
        .card-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .card-title i {
            color: var(--primary);
        }
        
        /* Transaction List */
        .transaction-list {
            max-height: 400px;
            overflow-y: auto;
        }
        
        .transaction-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 0;
            border-bottom: 1px solid var(--border);
        }
        
        .transaction-item:last-child {
            border-bottom: none;
        }
        
        .transaction-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .transaction-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
        }
        
        .transaction-details h4 {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 2px;
        }
        
        .transaction-details span {
            font-size: 12px;
            color: var(--text-muted);
        }
        
        .transaction-amount {
            font-weight: 700;
            font-size: 15px;
        }
        
        .transaction-amount.income { color: var(--success); }
        .transaction-amount.expense { color: var(--danger); }
        
        /* Events & Tasks */
        .event-item, .task-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            background: var(--darker);
            border-radius: 10px;
            margin-bottom: 10px;
        }
        
        .event-date {
            background: var(--primary);
            color: white;
            padding: 8px 12px;
            border-radius: 8px;
            text-align: center;
            min-width: 50px;
        }
        
        .event-date .day {
            font-size: 18px;
            font-weight: 700;
        }
        
        .event-date .month {
            font-size: 11px;
            text-transform: uppercase;
        }
        
        .task-priority {
            width: 4px;
            height: 40px;
            border-radius: 2px;
        }
        
        .task-priority.urgent { background: var(--danger); }
        .task-priority.high { background: var(--warning); }
        .task-priority.normal { background: var(--info); }
        .task-priority.low { background: var(--text-muted); }
        
        /* Chart */
        .chart-container {
            position: relative;
            height: 300px;
        }
        
        /* Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.7);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }
        
        .modal.active {
            display: flex;
        }
        
        .modal-content {
            background: var(--card);
            border-radius: 16px;
            padding: 24px;
            width: 90%;
            max-width: 500px;
            max-height: 85vh;
            overflow-y: auto;
            border: 1px solid var(--border);
        }
        
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .modal-header h3 {
            font-size: 20px;
            font-weight: 600;
        }
        
        .modal-close {
            background: none;
            border: none;
            color: var(--text-muted);
            font-size: 24px;
            cursor: pointer;
            min-width: 44px;
            min-height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            transition: background 0.2s, color 0.2s;
        }
        .modal-close:hover {
            background: rgba(255,255,255,0.1);
            color: var(--text);
        }
        
        .form-group {
            margin-bottom: 16px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-size: 14px;
            font-weight: 500;
        }
        
        .form-group input, .form-group select, .form-group textarea {
            width: 100%;
            padding: 12px;
            border-radius: 10px;
            border: 1px solid var(--border);
            background: var(--darker);
            color: var(--text);
            font-size: 14px;
        }
        
        .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
            outline: none;
            border-color: var(--primary);
        }
        
        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }
        
        /* Tabs */
        .tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 20px;
        }
        
        .tab {
            padding: 10px 20px;
            border-radius: 10px;
            background: var(--darker);
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            font-weight: 500;
            transition: all 0.2s;
        }
        
        .tab:hover {
            color: var(--text);
        }
        
        .tab.active {
            background: var(--primary);
            color: white;
        }
        
        /* Toast */
        .toast {
            position: fixed;
            bottom: 100px;
            right: 24px;
            background: var(--card);
            border: 1px solid var(--border);
            padding: 16px 24px;
            border-radius: 12px;
            display: none;
            z-index: 1001;
            max-width: 350px;
        }
        
        .toast.show {
            display: block;
            animation: slideIn 0.3s ease;
        }
        
        @keyframes slideIn {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        
        /* Responsive */
        @media (max-width: 1200px) {
            .cards-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .content-grid {
                grid-template-columns: 1fr;
            }
        }
        
        @media (max-width: 768px) {
            .sidebar {
                position: fixed;
                left: -260px;
                transition: left 0.3s ease;
                z-index: 1000;
            }
            .sidebar.open {
                left: 0;
            }
            .main {
                margin-left: 0;
                padding: 15px;
            }
            .cards-grid {
                grid-template-columns: 1fr;
            }
            .header {
                flex-direction: column;
                gap: 15px;
            }
            .header-actions {
                flex-wrap: wrap;
                justify-content: center;
            }
            .header-actions .btn {
                padding: 8px 12px;
                font-size: 12px;
            }
            #user-name {
                display: none;
            }
            .form-row {
                grid-template-columns: 1fr;
            }
            .modal-content {
                margin: 10px;
                padding: 15px;
            }
            #camera-preview {
                width: 100%;
                max-height: 300px;
                object-fit: cover;
            }
        }
        
        /* Mobile menu button */
        .mobile-menu-btn {
            display: none;
            position: fixed;
            bottom: 20px;
            left: 20px;
            z-index: 999;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: var(--primary);
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
        }
        
        @media (max-width: 768px) {
            .mobile-menu-btn {
                display: flex;
                align-items: center;
                justify-content: center;
            }
        }
    
/* Projects/Goals/Notes Sections */
.section-content { padding: 20px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-header h2 { margin: 0; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.project-card, .goal-card { background: var(--card-bg); border-radius: 12px; padding: 16px; border: 1px solid var(--border-color); }
.project-card h4, .goal-card h4 { margin: 0 0 8px 0; }
.project-status { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 12px; }
.project-status.active { background: #22c55e22; color: #22c55e; }
.project-status.completed { background: #3b82f622; color: #3b82f6; }
.project-status.cancelled { background: #ef444422; color: #ef4444; }
.goal-progress { margin: 8px 0; }
.goal-progress-bar { height: 8px; background: var(--border-color); border-radius: 4px; overflow: hidden; }
.goal-progress-fill { height: 100%; background: linear-gradient(90deg, #22c55e, #16a34a); border-radius: 4px; transition: width 0.3s; }
.goal-amounts { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); }
.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.note-card { background: #fef9c3; border-radius: 8px; padding: 12px; position: relative; min-height: 80px; }
.note-card p { margin: 0; word-wrap: break-word; }
.note-card .note-date { font-size: 11px; color: #92400e; margin-top: 8px; }
.note-card .note-delete { position: absolute; top: 4px; right: 4px; background: none; border: none; color: #92400e66; cursor: pointer; font-size: 16px; }

/* ===== RESPONSIVO MOBILE ===== */
@media (max-width: 768px) {
    .table-container, .transactions-table, .data-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .modal { padding: 0 !important; }
    .modal-content {
        margin: 0 !important;
        padding: 15px !important;
        max-height: 100vh;
        overflow-y: auto;
        border-radius: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .summary-cards, .cards-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .btn { padding: 8px 12px !important; font-size: 12px !important; }
    .btn-sm { padding: 5px 8px !important; font-size: 11px !important; }
    .form-row { grid-template-columns: 1fr !important; }
    input, select, textarea { font-size: 14px !important; padding: 8px 10px !important; }
    canvas { max-height: 250px !important; }
    .header h2 { font-size: 1.2rem !important; }
    .hide-mobile { display: none !important; }
    .notes-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
    .main { padding: 10px !important; }
    .header-actions { gap: 5px !important; }
    .header-actions .btn { padding: 6px 8px !important; font-size: 11px !important; }
    /* Modal all-transactions responsivo */
    #modal-all-transactions .modal-header h3 { font-size: 16px !important; }
    #modal-all-transactions .tabs { display: flex; gap: 4px; }
    #modal-all-transactions .tab { padding: 6px 10px; font-size: 12px; }
    #modal-all-transactions .modal-content > div:last-child { font-size: 12px; }
    #modal-all-transactions .modal-content > div:last-child strong { font-size: 11px; }
}

@media (max-width: 380px) {
    .header-actions .btn span { display: none; }
    .header-actions .btn { padding: 6px 10px !important; }
}
