:root {
            --primary: #1e563b;     /* Verde um pouco mais profundo e elegante */
            --sidebar: #113122;     /* Sidebar mais escura para um contraste premium */
            --bg: #f4f7f6;          /* Fundo ligeiramente mais limpo e leve */
            --text: #1e293b;        /* Texto principal mais suave (slate-800) em vez de preto/verde escuro */
            --white: #ffffff;
            --border: #e2e8f0;      /* Borda mais subtil */
            --success: #10b981;     /* Cores de alerta mais vibrantes e modernas */
            --danger: #ef4444;     
            --pink: #ec4899;       
            --accent: #34d399;      
            --yellow: #f59e0b;
            --blue: #3b82f6;
            --orange: #f97316;
            --purple: #8b5cf6;
            --teal: #14b8a6;
            
            /* Novas Variáveis de Sombra Premium (Efeito "Clean") */
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.04);
            --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; }
        body { display: flex; height: 100vh; background-color: var(--bg); color: var(--text); overflow: hidden; letter-spacing: -0.01em; }
       /* ==========================================
           SCROLLBAR E TOASTS PREMIUM
           ========================================== */
        ::-webkit-scrollbar { width: 8px; height: 8px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.4); border-radius: 10px; }
        ::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, 0.7); }

        .toast-container { position: fixed; bottom: 30px; right: 30px; z-index: 9999; display: flex; flex-direction: column; gap: 15px; }
        .toast { 
            padding: 18px 28px; border-radius: 16px; color: white; font-size: 14px; font-weight: 700; 
            box-shadow: 0 15px 30px -5px rgba(0,0,0,0.25); 
            animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1), fadeOut 0.4s ease 3s forwards; 
            display: flex; align-items: center; gap: 12px; backdrop-filter: blur(8px); letter-spacing: 0.5px; 
        }
        .toast.success { background: linear-gradient(135deg, #10b981 0%, #059669 100%); border: 1px solid rgba(255,255,255,0.2); }
        .toast.error { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); border: 1px solid rgba(255,255,255,0.2); }
        @keyframes slideIn { from { transform: translateX(100%) scale(0.9); opacity: 0; } to { transform: translateX(0) scale(1); opacity: 1; } }
        @keyframes fadeOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(20px); } }

        .spinner { animation: spin 1s linear infinite; display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: #fff; margin-right: 8px; }
        @keyframes spin { to { transform: rotate(360deg); } }

        .sidebar { width: 260px; background-color: var(--sidebar); color: var(--white); display: flex; flex-direction: column; padding: 30px 0; box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1); z-index: 2500; flex-shrink: 0; transition: transform 0.3s ease, width 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; }
        .sidebar.collapsed { width: 85px; }
        
        .btn-collapse-desktop { position: absolute; right: 15px; top: 15px; background: rgba(255,255,255,0.1); border: none; color: white; border-radius: 8px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; z-index: 10; }
        .btn-collapse-desktop:hover { background: rgba(255,255,255,0.2); }
        @media (max-width: 768px) { .btn-collapse-desktop { display: none; } }
        
        .sidebar-header { text-align: center; margin-bottom: 40px; padding: 0 20px; transition: all 0.3s; }
        .sidebar-logo { max-width: 130px; margin-bottom: 15px; filter: brightness(0) invert(1) drop-shadow(0px 4px 6px rgba(0,0,0,0.2)); transition: all 0.3s; }
        .sidebar-header h2 { font-size: 16px; font-weight: 700; color: var(--accent); letter-spacing: 1px; text-transform: uppercase; transition: all 0.3s; white-space: nowrap; overflow: hidden; }
        
        .sidebar.collapsed .sidebar-header h2 { opacity: 0; height: 0; margin: 0; }
        .sidebar.collapsed .sidebar-logo { max-width: 40px; }
        
        .menu-btn { background: none; border: none; color: #d8e2dc; padding: 16px 25px; text-align: left; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; border-left: 4px solid transparent; display: flex; align-items: center; gap: 12px; white-space: nowrap; overflow: hidden; }
        .menu-btn i { flex-shrink: 0; }
        .sidebar.collapsed .menu-btn { padding: 16px 0; justify-content: center; }
        .sidebar.collapsed .menu-btn span { display: none; }
        
        .sidebar.collapsed .sidebar-footer button span { display: none; }
        .sidebar.collapsed .sidebar-footer button { padding: 12px 0; justify-content: center; }
        .sidebar.collapsed .sidebar-footer button i { margin: 0; }
        .menu-btn:hover, .menu-btn.active { background-color: rgba(255,255,255,0.05); color: var(--white); border-left: 4px solid var(--accent); }

       .mobile-header { 
            display: none; background: linear-gradient(135deg, var(--sidebar) 0%, var(--primary) 100%); 
            color: white; padding: 18px 24px; align-items: center; justify-content: space-between; 
            position: sticky; top: 0; z-index: 2000; box-shadow: 0 4px 25px rgba(17, 49, 34, 0.25); 
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        .btn-toggle-menu { 
            background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); 
            border-radius: 8px; color: white; padding: 6px 12px; font-size: 18px; 
            cursor: pointer; transition: all 0.3s; 
        }
        .btn-toggle-menu:active { transform: scale(0.95); background: rgba(255,255,255,0.25); }
        
        .overlay { 
            display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
            background: rgba(17, 49, 34, 0.7); z-index: 2200; backdrop-filter: blur(6px); 
        }
        .main-content { flex: 1; padding: 40px; overflow-y: auto; display: flex; flex-direction: column; }
        .section { display: none; animation: fadeIn 0.4s ease-out; }
        .section.active { display: block; flex: 1; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

        .rodape-sistema { text-align: center; font-size: 11px; font-weight: 700; color: #94a3b8; padding-top: 25px; margin-top: auto; text-transform: uppercase; letter-spacing: 0.5px; border-top: 1px solid var(--border); display: block; width: 100%; clear: both; }

        .admin-only { display: none !important; } 
        body.is-admin .admin-only { display: flex !important; }
        body.is-admin .admin-inline { display: inline-flex !important; }
        .admin-inline { display: none !important; }

        body.is-lider #menu-dash, 
        body.is-lider #menu-novo, 
        body.is-lider #menu-fichas,
        body.is-lider #menu-relatorios,
        body.is-lider #menu-users { display: none !important; }
        body.is-lider .main-content { padding-top: 20px; }

        .welcome-banner { background: linear-gradient(135deg, var(--primary) 0%, var(--sidebar) 100%); border-radius: 16px; padding: 35px; color: white; margin-bottom: 30px; position: relative; box-shadow: 0 10px 20px rgba(27, 67, 50, 0.15); }
        .status-badge { position: absolute; top: 15px; right: 20px; font-size: 10px; background: rgba(255,255,255,0.15); padding: 6px 14px; border-radius: 20px; font-weight: 700; letter-spacing: 1px; border: 1px solid rgba(255,255,255,0.2); text-transform: uppercase; }

      .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 15px; margin-bottom: 35px; }
        .card { 
            background: var(--white); 
            padding: 16px 20px; 
            border-radius: 20px; 
            box-shadow: var(--shadow-card); 
            display: flex; flex-direction: column; position: relative; overflow: hidden; 
            border: 1px solid rgba(255, 255, 255, 0.8); 
            cursor: pointer; 
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
        }
        .card:hover { 
            transform: translateY(-6px); 
            box-shadow: var(--shadow-hover); 
            border-color: var(--border);
        }
        .card::before { content: ''; position: absolute; top: 0; left: 0; width: 6px; height: 100%; opacity: 0.85; border-radius: 6px 0 0 6px; }
        .card-total::before { background-color: var(--primary); }
        .card-homens::before { background-color: var(--sidebar); }
        .card-mulheres::before { background-color: var(--pink); }
        .card-criancas::before { background-color: var(--yellow); }
        .card-adolescentes::before { background-color: var(--orange); }
        .card-jovens::before { background-color: var(--purple); }
        .card-adultos::before { background-color: var(--teal); }
        .card-inativos::before { background-color: #64748b; }
        
        .card h3 { font-size: 10px; color: #64748b; margin-bottom: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .card p { font-size: 26px; font-weight: 800; color: var(--sidebar); }

        .detalhes-container { background: var(--white); padding: 25px; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 30px; display: none; animation: fadeIn 0.3s; }
        .detalhes-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
        .detalhes-header h4 { font-size: 14px; text-transform: uppercase; color: var(--primary); font-weight: 800; }
        .detalhes-item { padding: 10px; border-bottom: 1px solid #f1f5f9; display: grid; grid-template-columns: 2fr 1fr 1fr; font-size: 13px; align-items: center; }

        .dashboard-duo-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
            margin-bottom: 35px;
        }
        @media (max-width: 1024px) {
            .dashboard-duo-grid { grid-template-columns: 1fr; }
        }
       .birthdays-box { 
            background: var(--white); padding: 35px; border-radius: 24px; 
            border: 1px solid var(--border); box-shadow: var(--shadow-card); 
            height: 100%; display: flex; flex-direction: column;
        }
        .birthday-item { 
            padding: 16px 20px; background: #f8fafc; border-radius: 16px; 
            border-left: 5px solid var(--primary); font-size: 14px; display: flex; 
            align-items: center; gap: 12px; margin-bottom: 12px; justify-content: space-between;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 2px 4px rgba(0,0,0,0.01);
            color: var(--text); font-weight: 500;
        }
        .birthday-item:hover { 
            transform: translateX(8px); background: #ffffff; 
            box-shadow: 0 10px 20px -5px rgba(0,0,0,0.05); border-color: var(--accent); 
        }
        /* ==========================================
           💎 UI/UX PREMIUM - GESTÃO EBD E RELATÓRIOS
           ========================================== */
        
        @keyframes slideUpFade {
            from { opacity: 0; transform: translateY(15px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .ebd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
        
        .ebd-card { 
            background: #ffffff; 
            padding: 28px; 
            border-radius: 20px; 
            border: 1px solid rgba(226, 232, 240, 0.8);
            box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.03), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
            position: relative;
            overflow: hidden;
        }
        
        .ebd-card::before {
            content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
            background: linear-gradient(90deg, var(--primary), var(--success));
        }

        .ebd-card h3 {
            font-size: 15px; font-weight: 800; color: var(--sidebar);
            margin-bottom: 20px; letter-spacing: -0.3px;
        }

        .ebd-card input, .ebd-card select {
            border: 1px solid #cbd5e1;
            border-radius: 10px;
            padding: 14px;
            font-size: 14px;
            color: #334155;
            background-color: #f8fafc;
            box-shadow: inset 0 1px 2px rgba(0,0,0,0.01);
            transition: all 0.3s ease;
            width: 100%;
        }
        .ebd-card input:focus, .ebd-card select:focus {
            background-color: #ffffff;
            border-color: var(--blue);
            box-shadow: 0 0 0 4px rgba(82, 113, 255, 0.15);
            outline: none;
        }

        .lista-aluno-container { max-height: 420px; overflow-y: auto; padding-right: 8px; margin-top: 15px; }
        .lista-presenca-grid { display: flex; flex-direction: column; gap: 12px; margin-top: 15px; max-height: 420px; overflow-y: auto; padding-right: 8px; }
        
        .lista-aluno-container::-webkit-scrollbar, .lista-presenca-grid::-webkit-scrollbar { width: 5px; }
        .lista-aluno-container::-webkit-scrollbar-track, .lista-presenca-grid::-webkit-scrollbar-track { background: transparent; }
        .lista-aluno-container::-webkit-scrollbar-thumb, .lista-presenca-grid::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
        .lista-aluno-container::-webkit-scrollbar-thumb:hover, .lista-presenca-grid::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

        .aluno-row, .presenca-item { 
            animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
            animation-fill-mode: both;
        }
        
        .aluno-row { 
            display: flex; justify-content: space-between; align-items: center; 
            padding: 16px 20px; background: #ffffff;
            border: 1px solid #f1f5f9; border-radius: 14px; margin-bottom: 12px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.01);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .aluno-row:hover {
            transform: translateY(-3px) scale(1.01);
            box-shadow: 0 12px 20px -8px rgba(0,0,0,0.08);
            border-color: #e2e8f0;
            z-index: 10; position: relative;
        }

        .action-icon-btn {
            background: #f1f5f9; border: none; width: 36px; height: 36px;
            border-radius: 10px; cursor: pointer; font-size: 15px;
            display: inline-flex; align-items: center; justify-content: center;
            transition: all 0.2s; margin-left: 8px; color: #64748b;
        }
        .action-icon-btn.edit:hover { background: #eff6ff; color: var(--blue); transform: scale(1.1) rotate(-5deg); }
        .action-icon-btn.delete:hover { background: #fef2f2; color: var(--danger); transform: scale(1.1) rotate(5deg); }

        .presenca-item { 
            display: flex; justify-content: space-between; align-items: center; 
            padding: 16px 20px; background: #ffffff; 
            border: 2px solid transparent; border-radius: 14px; 
            cursor: pointer; transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0,0,0,0.02);
            user-select: none;
        }
        .presenca-item.unchecked { border-color: #f1f5f9; }
        .presenca-item.unchecked:hover { border-color: #e2e8f0; background: #f8fafc; transform: translateX(4px); }
        
        .presenca-item.checked { 
            border-color: #40916c; background: #f0fdf4; 
            box-shadow: 0 8px 16px -4px rgba(64, 145, 108, 0.15);
            transform: translateX(4px);
        }

        .presenca-item .aluno-info { display: flex; flex-direction: column; }
        .presenca-item .aluno-nome { font-weight: 700; font-size: 14px; color: #1e293b; letter-spacing: -0.2px; }
        .presenca-item .aluno-classe-tag { font-size: 10px; color: #64748b; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; margin-top: 4px; display: inline-block;}

        .acoes-ebd { display: flex; gap: 10px; align-items: center; }

        .status-indicator { 
            width: 38px; height: 38px; border-radius: 12px;
            display: flex; align-items: center; justify-content: center; 
            font-weight: 800; font-size: 15px; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); 
        }
        .presenca-item.unchecked .status-indicator { background: #f1f5f9; color: #94a3b8; }
        .presenca-item.checked .status-indicator { background: var(--success); color: white; transform: scale(1.15) rotate(5deg); box-shadow: 0 4px 10px rgba(64,145,108,0.3); }

        .biblia-indicator { 
            width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; 
            font-size: 18px; background: #f1f5f9; filter: grayscale(100%); opacity: 0.4; 
            cursor: pointer; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); 
        }
        .biblia-indicator:hover { opacity: 1; background: #e2e8f0; transform: scale(1.05); }
        .biblia-indicator.active { 
            filter: grayscale(0%); opacity: 1; background: #faf5ff; border: 2px solid #d8b4fe; 
            box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25); transform: scale(1.15) rotate(-5deg);
        }

        .cancelada-box { 
            background: linear-gradient(to right, #fef2f2, #fff5f5); border: none; border-left: 6px solid #ef4444; 
            padding: 16px 20px; border-radius: 10px; margin-bottom: 20px; 
            display: flex; align-items: center; gap: 14px; 
            font-size: 13px; font-weight: 700; color: #991b1b; 
            cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(239, 68, 68, 0.05);
        }
        .cancelada-box:hover { transform: translateX(5px); box-shadow: 0 6px 15px rgba(239, 68, 68, 0.1); }

        @keyframes pulseGlow {
            0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
            70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
            100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
        }
        #btn-sync-ebd {
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); color: white;
            border: none; border-radius: 12px; padding: 16px; font-weight: 800; letter-spacing: 0.5px;
            box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25); transition: all 0.3s ease;
            animation: pulseGlow 2s infinite;
        }
        #btn-sync-ebd:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35); animation: none; }

        /* ==========================================
           🎯 UI/UX PREMIUM - INPUT DE MÊS/DATA
           ========================================== */
        
        .relatorio-mes-container {
            min-width: 240px;
            flex: 1; 
            max-width: 320px; /* Evita que o campo fique esticado e feio em telas grandes */
        }

        .input-premium {
            -webkit-appearance: none; /* Remove o visual feio padrão do navegador */
            appearance: none;
            width: 100%;
            padding: 14px 18px;
            font-size: 15px;
            font-weight: 700;
            color: var(--sidebar);
            background-color: #ffffff;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            font-family: 'Inter', sans-serif;
        }

        .input-premium:hover {
            border-color: #cbd5e1;
            box-shadow: 0 8px 15px rgba(0, 0, 0, 0.06);
            transform: translateY(-1px);
        }

        .input-premium:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.15); /* Glow verde moderno */
        }

        /* Estilizando o ícone de calendário nativo (Chrome/Edge/Safari) */
        .input-premium::-webkit-calendar-picker-indicator {
            background-color: #f1f5f9;
            padding: 8px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            opacity: 0.7;
        }
        
        .input-premium::-webkit-calendar-picker-indicator:hover {
            background-color: #e2e8f0;
            opacity: 1;
            transform: scale(1.1) rotate(2deg);
        }

      /* ==========================================
           FORMULÁRIOS, TABELAS E OUTROS PREMIUM
           ========================================== */

        .form-box { background: var(--white); padding: 40px; border-radius: 24px; border: 1px solid var(--border); box-shadow: var(--shadow-card); }
        .form-row { display: flex; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
        .form-group { flex: 1; display: flex; flex-direction: column; min-width: 200px; }
        
        label { font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--sidebar); text-transform: uppercase; letter-spacing: 0.5px; }
        
        input, select { 
            padding: 15px 18px; border: 2px solid #e2e8f0; border-radius: 12px; font-size: 14px; 
            outline: none; background-color: #f8fafc; color: var(--text); font-weight: 500;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        input:focus, select:focus { 
            border-color: var(--primary); background-color: #fff; 
            box-shadow: 0 0 0 4px rgba(30, 86, 59, 0.15); transform: translateY(-2px); 
        }

        .section-title { font-size: 15px; font-weight: 800; border-bottom: 2px solid var(--border); padding-bottom: 12px; margin: 35px 0 25px 0; color: var(--sidebar); text-transform: uppercase; letter-spacing: 1px; }

        .btn-primary { 
            background: linear-gradient(135deg, var(--primary) 0%, var(--sidebar) 100%); 
            color: var(--white); padding: 16px 28px; border: none; border-radius: 14px; 
            font-size: 14px; font-weight: 800; cursor: pointer; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
            margin-top: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
            box-shadow: 0 8px 16px -4px rgba(17, 49, 34, 0.3); text-transform: uppercase; letter-spacing: 0.5px;
        }
        .btn-primary:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 12px 24px -6px rgba(17, 49, 34, 0.4); }
        .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
        
        .btn-action { color: white; padding: 10px 16px; border: none; border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 700; margin-right: 6px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: var(--shadow-sm); }
        .btn-action:hover { transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0,0,0,0.1); filter: brightness(1.1); }
        .btn-action:disabled { opacity: 0.4; cursor: not-allowed; }
        
        .btn-whatsapp { background-color: #10b981; }
        .btn-pdf { background-color: var(--sidebar); } 
        .btn-edit { background-color: var(--blue); } 
        .btn-delete { background-color: var(--danger); }

        #login-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(17, 49, 34, 0.85); display: none; align-items: center; justify-content: center; z-index: 100; backdrop-filter: blur(8px); }
        .modal-card { background: white; padding: 45px 40px; border-radius: 24px; width: 90%; max-width: 400px; text-align: center; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3); }
        
        /* TABELAS PREMIUM */
        .table-container { width: 100%; overflow-x: auto; border-radius: 20px; border: 1px solid var(--border); margin-top: 15px; background: white; box-shadow: var(--shadow-card); }
        table { width: 100%; border-collapse: collapse; }
        th { background-color: #f8fafc; font-weight: 800; font-size: 12px; color: #64748b; text-transform: uppercase; padding: 20px 24px; border-bottom: 2px solid var(--border); text-align: left; letter-spacing: 0.5px; }
        td { padding: 18px 24px; font-size: 14px; border-bottom: 1px solid #f1f5f9; color: var(--text); font-weight: 500; transition: background 0.3s ease; }
        tr:hover td { background-color: #f8fafc; }

        .status-ativo { color: #047857; font-weight: 800; background: #d1fae5; padding: 6px 12px; border-radius: 8px; font-size: 11px; letter-spacing: 0.5px; border: 1px solid #a7f3d0;}
        .status-inativo { color: #b91c1c; font-weight: 800; background: #fee2e2; padding: 6px 12px; border-radius: 8px; font-size: 11px; letter-spacing: 0.5px; border: 1px solid #fecaca;}us-inativo { color: var(--danger); font-weight: bold; background: #fce8e6; padding: 4px 8px; border-radius: 4px; font-size: 11px; }

        @media (max-width: 768px) {
            body { flex-direction: column; overflow: hidden; }
            .mobile-header { display: flex; }
            .sidebar { position: fixed; top: 0; left: 0; height: 100%; transform: translateX(-100%); width: 280px; padding: 30px 0; }
            .sidebar.open { transform: translateX(0); }
            .overlay.open { display: block; }
            .main-content { padding: 20px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
            .cards { grid-template-columns: 1fr; }
            .ebd-grid { grid-template-columns: 1fr; }
            
            /* TABELA RESPONSIVA EM FORMATO DE CARDS */
            .table-container { background: transparent; border: none; box-shadow: none; padding: 0; margin-top: 10px; }
            .table-container table, .table-container thead, .table-container tbody, .table-container th, .table-container td, .table-container tr { display: block; }
            .table-container thead tr { position: absolute; top: -9999px; left: -9999px; }
            .table-container tr { 
                background: white; border-radius: 16px; margin-bottom: 16px; 
                border: 1px solid var(--border); box-shadow: 0 4px 10px rgba(0,0,0,0.03); 
                padding: 5px 15px; position: relative; 
            }
            .table-container tr:hover td { background: transparent; }
            
            .table-container td { 
                border: none; border-bottom: 1px solid #f1f5f9; 
                padding: 12px 0; display: flex; justify-content: space-between; align-items: center; 
                text-align: right; min-height: 45px; font-size: 13px;
            }
            .table-container td:last-child { border-bottom: 0; justify-content: flex-end; gap: 8px; }
            
            .table-container td::before { 
                font-weight: 800; font-size: 11px; text-transform: uppercase; 
                color: #94a3b8; margin-right: 15px; text-align: left; 
            }
            
            /* Rótulos baseados na ordem das colunas da tabela de membros */
            #tabela-membros td:nth-child(1)::before { content: "Status"; }
            #tabela-membros td:nth-child(2)::before { content: "Nome"; }
            #tabela-membros td:nth-child(3)::before { content: "WhatsApp"; }
            #tabela-membros td:nth-child(4)::before { content: "Idade"; }
            #tabela-membros td:nth-child(5)::before { content: ""; display: none; }
            
            .btn-action { margin-bottom: 0; font-size: 11px; padding: 8px 12px; }
        }

/* CARDS DO BANCO DE FICHAS */
.membros-grid-container { width: 100%; margin-top: 15px; }
.membros-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.membro-card { background: white; border-radius: 16px; padding: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 15px; transition: transform 0.2s, box-shadow 0.2s; }
.membro-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); border-color: var(--primary); }
.membro-card-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #f1f5f9; padding-bottom: 10px; }
.membro-status { font-size: 10px; font-weight: 800; padding: 4px 10px; border-radius: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.membro-status.ativo { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.membro-status.inativo { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.membro-idade { font-size: 11px; color: #64748b; font-weight: 600; background: #f1f5f9; padding: 4px 10px; border-radius: 12px; }
.membro-card-body { padding: 5px 0; }
.membro-card-body h4 { font-size: 16px; color: var(--sidebar); margin-bottom: 8px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.membro-card-body p { font-size: 13px; color: #64748b; display: flex; align-items: center; gap: 6px; font-weight: 500; }
.membro-card-body p svg { width: 14px; height: 14px; stroke: #94a3b8; }
.membro-card-actions { display: flex; gap: 8px; justify-content: flex-start; padding-top: 15px; border-top: 1px solid #f1f5f9; }
.membro-card-actions .btn-action { display: flex; justify-content: center; align-items: center; padding: 10px; border-radius: 10px; color: white; border: none; cursor: pointer; transition: 0.2s; }
.membro-card-actions .btn-whatsapp { flex: 1; font-weight: 600; background: #25d366; }
.membro-card-actions .btn-whatsapp:hover { background: #1ebc5a; }
.membro-card-actions .btn-pdf { background: #334155; }
.membro-card-actions .btn-pdf:hover { background: #1e293b; }
.membro-card-actions .btn-edit { background: #3b82f6; }
.membro-card-actions .btn-edit:hover { background: #2563eb; }
.membro-card-actions .btn-delete { background: #ef4444; }
.membro-card-actions .btn-delete:hover { background: #dc2626; }
.membro-card-actions svg { width: 18px; height: 18px; stroke: white; }