/*
   SISTEMA DE GESTÃO CONDOMINIAL - SHANGRILÁ
   Arquivo CSS Global
   Versão: 2.3 - Merge com estilos do Hub (mini-apps otimizados)
 */

/*
   VARIÁVEIS CSS (Design Tokens)
 */

:root {
    /* Cores Primárias */
    --primary-color: #667eea;
    --primary-dark: #764ba2;
    --secondary-color: #f093fb;
    --secondary-dark: #f5576c;

    /* Cores de Status */
    --success-color: #48bb78;
    --success-dark: #38a169;
    --warning-color: #f6ad55;
    --warning-dark: #ed8936;
    --danger-color: #e53e3e;
    --danger-dark: #c53030;
    --info-color: #4299e1;
    --info-dark: #3182ce;

    /* Cores de Texto */
    --text-dark: #2d3748;
    --text-muted: #718096;
    --text-light: #a0aec0;

    /* Cores de Fundo */
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-card: #ffffff;
    --bg-hover: #f7fafc;
    --bg-light: #f8f9fa;

    /* Bordas */
    --border-light: #e2e8f0;
    --border-medium: #d1d5db;
    --border-dark: #9ca3af;
    --border-radius: 12px;
    --border-radius-lg: 16px;

    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.18);

    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/*
   RESET E BASE
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/*
   MAIN CONTAINER (GLOBAL)
 */
.main-container,
.hub-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem; /* 20px */
}

/*
   HEADER PROFISSIONAL - PADRÃO GLOBAL
 */

.header-section,
.header-hub {
    background: var(--bg-card);
    padding: 1rem 2.1875rem; /* Ajustado para deixar o card menor verticalmente */
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.875rem;
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5625rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5625rem;
    flex: 1;
    min-width: 0;
}

.logo-header,
.logo-hub {
    width: 6.25rem; /* 100px */
    height: 6.25rem; /* 100px */
    border-radius: 14px;
    object-fit: contain;
    padding: 0px;
    background: white;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
    transition: transform var(--transition-normal);
}

.logo-header:hover,
.logo-hub:hover {
    transform: scale(1.05);
}

.header-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.header-title {
    font-size: clamp(1.4rem, 4vw, 1.75rem);
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.header-subtitle {
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
    display: block;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.9375rem;
    flex-shrink: 0;
    position: static;
    top: auto;
    right: auto;
    z-index: auto;
    width: auto;
    margin-top: 0;
}

/*
   BADGES - SISTEMA UNIFICADO
 */

/* Badge de Perfil de Acesso (Admin, Síndico, Padrão) */
.badge-perfil {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 1rem; /* 6px 16px */
    border-radius: 20px;
    font-size: 0.7rem; /* Ajustado para ser igual ao .info-label */
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ✅ NOVO: Badge de Tipo de Pessoa (Condômino, Colaborador) */
.badge-tipo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin-right: 5px;
    background: #fff3e0; /* Cor padrão suave */
    color: #e65100;
}

.badge-tipo.colaborador {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-tipo.condomino, .badge-tipo.condômino {
    background: #e3f2fd;
    color: #0d47a1;
}

/* Badge para Bloco/Apartamento */
.badge-bloco-apto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1.1rem; /* Ajustado para acomodar o texto maior */
    border-radius: 20px;
    font-size: 0.95rem; /* Ajustado para ser igual ao .info-value */
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.02em;
    background: var(--border-medium);
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/*
   BOTÕES PADRÃO
 */

.btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-outline-danger {
    border: 2px solid var(--danger-color);
    color: var(--danger-color);
    background: white;
    border-radius: 10px;
    padding: 0.4rem 0.8rem;
    width: auto;
    height: auto;
    display: inline-flex;
}

.btn-outline-danger i {
    font-size: 1rem;
}

.btn-outline-danger span {
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-outline-danger:hover {
    background: var(--danger-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.btn-outline-secondary {
    border: 2px solid var(--text-muted);
    color: var(--text-muted);
    background: white;
    border-radius: 10px;
    padding: 0.4rem 0.8rem;
    width: auto;
    height: auto;
    display: inline-flex;
}

.btn-outline-secondary i {
    font-size: 1rem;
}

.btn-outline-secondary span {
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-outline-secondary:hover {
    background: var(--text-muted);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(113, 128, 150, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: white;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/*
   BREADCRUMB
 */

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--text-light);
    margin-right: 0.5rem;
}

/*
   ALERTAS (MENSAGENS FLASH)
 */

.alert {
    position: relative;
    padding: 0.9375rem 3.125rem 0.9375rem 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
    padding-right: 3rem;
}

.alert .btn-close {
    position: absolute;
    top: 50%;
    right: 0.9375rem;
    transform: translateY(-50%);
    padding: 0.5rem;
    cursor: pointer;
}

.alert-success {
    background: #e6ffed;
    color: #22543d;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: #fff5f5;
    color: #742a2a;
    border-left: 4px solid var(--danger-color);
}

.alert-info {
    background: #ebf8ff;
    color: #2c5282;
    border-left: 4px solid var(--info-color);
}

.alert-warning {
    background: #fffaf0;
    color: #7c2d12;
    border-left: 4px solid var(--warning-color);
}

/*
   CARDS UNIVERSAIS - MINI-APPS (HUB)
   ✅ ATUALIZADO: Layout horizontal otimizado
 */

.mini-app-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 12px 18px !important;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-medium);
    transition: all var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 14px !important;
    height: 100%;
    position: relative;
    overflow: visible;
    min-height: 90px !important;
}

.mini-app-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    color: inherit;
}

/* ✅ Ícone à esquerda (ocupa 2 linhas) */
.mini-app-icon {
    width: 50px !important;
    height: 50px !important;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
    align-self: center !important;
    transition: all var(--transition-normal);
}

.mini-app-card:hover .mini-app-icon {
    transform: rotate(-10deg) scale(1.1);
}

.mini-app-icon.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* ✅ Container de conteúdo à direita (2 linhas) */
.mini-app-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

/* ✅ Título na primeira linha */
.mini-app-title {
    font-size: 1.05rem !important;
    margin-bottom: 0 !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    color: #333 !important;
}

/* ✅ Descrição na segunda linha */
.mini-app-desc {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0 !important;
    color: #6b7280 !important;
}

/* ✅ Badge de notificação (bolinha vermelha) */
.mini-app-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
    z-index: 10;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/*
   CARDS DE ADMINISTRAÇÃO
 */

.admin-card,
.choice-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 1.5625rem;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-medium);
    transition: all var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    position: relative;
}

.admin-card:hover,
.choice-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    color: inherit;
}

/* Ícones com animação de inclinação */
.admin-icon,
.choice-icon {
    width: 4.375rem;
    height: 4.375rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.125rem;
    transition: all var(--transition-normal);
}

.admin-card:hover .admin-icon,
.choice-card:hover .choice-icon {
    transform: rotate(-10deg) scale(1.1);
}

.admin-icon.primary,
.choice-icon.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.admin-icon.success,
.choice-icon.success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.admin-icon.warning,
.choice-icon.warning {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    color: white;
}

.admin-icon.danger,
.choice-icon.danger {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
}

.admin-icon.info,
.choice-icon.info {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
}

/* Títulos dos cards */
.admin-title,
.choice-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    color: var(--text-dark);
}

/* Descrições dos cards */
.admin-desc,
.choice-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/*
   CARDS DE ADMINISTRAÇÃO - TAMANHO ESPECÍFICO
 */

.admin-card {
    padding: 1.875rem;
    min-height: 13.75rem;
}

/*
   EMPTY STATE
 */

.empty-state {
    text-align: center;
    padding: 3.75rem 1.25rem;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.empty-state h5 {
    font-weight: 700;
    margin-bottom: 0.625rem;
    color: var(--text-dark);
}

.empty-state p {
    color: var(--text-muted);
    margin: 0;
}

/*
   CONTAINER DE PENDENTES (aprovacao_cadastro.html)
   CORREÇÃO: Grid com 2 colunas no desktop
 */
.pendentes-container {
    background: var(--bg-card);
    padding: 1.5625rem; /* 25px */
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);

    /* NOVO: Grid para 2 colunas no desktop */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.cadastro-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem; /* Ajustado para menor espaço */
    margin-bottom: 0; /* Removido margin-bottom, agora usa gap do grid */
    border-left: 4px solid var(--warning-color);
    transition: all var(--transition-normal);

    /* Removido max-width para permitir expansão no grid */
}

.cadastro-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(0.3125rem); /* 5px */
}

.cadastro-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 0.25rem;
    text-align: left;
}

.cadastro-nome {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0;
}

/* Novo estilo para Perfil e Bloco/Apartamento como texto simples */
.cadastro-perfil-bloco {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

.perfil-text {
    font-weight: 500;
}

.bloco-apto-text {
    font-weight: 500;
}

/*
   INFO ITEMS (aprovacao_cadastro.html)
   CORREÇÃO: Fonte do CPF aumentada para harmonizar com WhatsApp
 */
.cadastro-info-row {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
    text-align: left;
}

.info-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.05rem; /* CORRIGIDO: era 0.95rem - aumentado para harmonizar com WhatsApp */
    color: var(--text-dark);
    font-weight: 500;
}

/*
   WHATSAPP BUTTON - COMPACTO E AJUSTADO (aprovacao_cadastro.html e gestao_acessos.html)
   CORREÇÃO: Padding vertical reduzido para diminuir altura
 */
.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem; /* CORRIGIDO: era 0.4rem 0.8rem - reduzido verticalmente */
    background: var(--success-color);
    color: white;
    text-decoration: none;
    border-radius: 18px;
    font-weight: 600;
    font-size: 1rem; /* CORRIGIDO: era 0.95rem - aumentado ligeiramente */
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
    width: fit-content;
}

.whatsapp-link:hover {
    transform: translateY(-0.125rem) scale(1.02);
    box-shadow: 0 0.25rem 0.875rem rgba(37, 211, 102, 0.4);
    background: var(--success-dark);
    color: white;
}

.whatsapp-link:active {
    transform: translateY(0) scale(1);
}

.whatsapp-icon {
    font-size: 1.1rem;
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}

/*
   ACTIONS (aprovacao_cadastro.html)
 */
.cadastro-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
    justify-content: flex-start;
}

.btn-aprovar,
.btn-reprovar {
    flex: 1;
    max-width: 10rem;
    justify-content: center;
}

.btn-aprovar {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--success-dark) 100%);
    color: white !important;
    border: none;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-aprovar:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.25rem 0.75rem rgba(72, 187, 120, 0.4);
    color: white !important;
}

.btn-reprovar {
    background: linear-gradient(135deg, var(--danger-color) 0%, var(--danger-dark) 100%);
    color: white !important;
    border: none;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-reprovar:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.25rem 0.75rem rgba(229, 62, 62, 0.4);
    color: white !important;
}

/*
   FILTROS E TABELA (gestao_acessos.html)
 */
.filters-section {
    background: var(--bg-card);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5625rem;
}

.table-container {
    background: var(--bg-card);
    padding: 1.5625rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow-x: auto;
}

.users-table {
    width: 100%;
    margin: 0;
}

.users-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.users-table thead th {
    padding: 0.9375rem;
    font-weight: 600;
    border: none;
    white-space: nowrap;
}

.users-table thead th:first-child {
    border-radius: 10px 0 0 0;
}

.users-table thead th:last-child {
    border-radius: 0 10px 0 0;
}

.users-table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.users-table tbody tr:hover {
    background: var(--bg-hover);
}

.users-table tbody td {
    padding: 0.9375rem;
    vertical-align: middle;
    font-size: 0.95rem;
}

.whatsapp-unavailable {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.whatsapp-unavailable i {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Badges para Tipo de Acesso (perfil_acesso) */
.badge-tipo-acesso {
    font-size: 0.7rem;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
}

.badge-tipo-acesso.badge-admin {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-tipo-acesso.badge-sindico {
    background: #f3e5f5;
    color: #7b1fa2;
}

.badge-tipo-acesso.badge-padrao {
    background: #f5f5f5;
    color: #616161;
}

/* Badges para Perfil (tipo_pessoa) */
.badge-perfil.badge-condomino {
    background: #fff3e0;
    color: #e65100;
}

.badge-perfil.badge-colaborador {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Select de tipo de acesso editável */
.tipo-acesso-select {
    border: none;
    background: transparent;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.tipo-acesso-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.tipo-acesso-select.admin {
    background: #e3f2fd;
    color: #1976d2;
}

.tipo-acesso-select.sindico {
    background: #f3e5f5;
    color: #7b1fa2;
}

.tipo-acesso-select.padrao {
    background: #f5f5f5;
    color: #616161;
}

/* Select de perfil editável */
.perfil-select {
    border: none;
    background: transparent;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.perfil-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.perfil-select.condomino {
    background: #fff3e0;
    color: #e65100;
}

.perfil-select.colaborador {
    background: #e8f5e9;
    color: #2e7d32;
}

/*
   RESPONSIVIDADE TABLET (768px - 1024px)
 */

@media (max-width: 1024px) {
    /* CORREÇÃO: Grid volta para 1 coluna no tablet */
    .pendentes-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .header-section,
    .header-hub {
        padding: 0.8rem 1.875rem;
    }

    .logo-header,
    .logo-hub {
        width: 5.5rem;
        height: 5.5rem;
        padding: 0;
    }

    .header-title {
        font-size: clamp(1.3rem, 3.5vw, 1.5rem);
    }

    .header-subtitle {
        font-size: clamp(0.8rem, 2vw, 0.9rem);
    }

    .btn-outline-danger,
    .btn-outline-secondary {
        padding: 0.3rem 0.6rem;
    }

    .btn-outline-danger i,
    .btn-outline-secondary i {
        font-size: 0.9rem;
    }

    .btn-outline-danger span,
    .btn-outline-secondary span {
        font-size: 0.75rem;
    }

    .whatsapp-link {
        padding: 0.3rem 0.625rem;
        font-size: 0.95rem;
    }

    .whatsapp-icon {
        font-size: 1.05rem;
    }

    .filters-section {
        padding: 0.9375rem;
    }

    .table-container {
        padding: 0.9375rem;
    }

    .badge-bloco-apto {
        font-size: 0.9rem;
        padding: 0.375rem 1rem;
    }

    .cadastro-card {
        max-width: 100%;
        padding: 1rem 1.25rem;
    }

    .cadastro-header {
        align-items: flex-start;
        text-align: left;
    }

    .cadastro-perfil-bloco {
        justify-content: flex-start;
    }

    .cadastro-info-row {
        flex-direction: row;
        justify-content: flex-start;
        gap: 1rem;
    }

    .info-item {
        align-items: flex-start;
        text-align: left;
    }

    .cadastro-actions {
        justify-content: flex-start;
        gap: 0.625rem;
    }

    .btn-aprovar,
    .btn-reprovar {
        max-width: none;
        flex: 1;
        justify-content: center;
    }
}

/*
   RESPONSIVIDADE MOBILE (< 768px)
 */

@media (max-width: 768px) {
    /* CORREÇÃO: Grid continua 1 coluna no mobile */
    .pendentes-container {
        grid-template-columns: 1fr;
        gap: 0.9375rem;
        padding: 1rem;
    }

    .header-section,
    .header-hub {
        padding: 0.6rem 1rem;
    }

    .logo-escolha {
        width: 9.375rem;
    }

    .header-content {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .header-left {
        width: auto;
        gap: 1rem;
    }

    .logo-header,
    .logo-hub {
        width: 4.5rem;
        height: 4.5rem;
        padding: 0;
    }

    .header-title {
        font-size: clamp(1.2rem, 3.5vw, 1.4rem);
    }

    .header-subtitle {
        font-size: clamp(0.75rem, 2.2vw, 0.85rem);
        display: block;
        white-space: normal;
        word-break: break-word;
    }

    .header-right {
        width: auto;
        margin-top: 0;
    }

    .btn-outline-danger,
    .btn-outline-secondary {
        padding: 0.25rem 0.5rem;
    }

    .btn-outline-danger i,
    .btn-outline-secondary i {
        font-size: 0.8rem;
    }

    .btn-outline-danger span,
    .btn-outline-secondary span {
        font-size: 0.7rem;
    }

    .whatsapp-link {
        padding: 0.3rem 0.5rem;
        font-size: 0.9rem;
    }

    .whatsapp-icon {
        font-size: 1rem;
    }

    /* ✅ MINI-APPS RESPONSIVOS */
    .mini-app-card {
        min-height: 90px !important;
        padding: 15px !important;
        gap: 12px !important;
    }

    .mini-app-icon {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.4rem !important;
    }

    .mini-app-title {
        font-size: 0.98rem !important;
    }

    .mini-app-desc {
        font-size: 0.8rem !important;
    }

    .admin-card,
    .choice-card {
        padding: 1.25rem;
        border-width: 3px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }

    .admin-card:hover,
    .choice-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
    }

    .admin-card {
        min-height: 11.25rem;
    }

    .admin-icon,
    .choice-icon {
        width: 3.75rem;
        height: 3.75rem;
        font-size: 1.8rem;
    }

    .cadastro-card {
        padding: 0.9375rem;
    }

    .cadastro-info {
        grid-template-columns: 1fr;
        gap: 0.625rem;
        justify-content: flex-start;
    }

    .cadastro-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .cadastro-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .cadastro-actions .btn {
        flex: 1;
    }

    .whatsapp-link {
        width: 100%;
        justify-content: flex-start;
    }

    .badge-bloco-apto {
        font-size: 0.85rem;
        padding: 0.3125rem 0.8rem;
    }
}

/*
   RESPONSIVIDADE MOBILE PEQUENO (< 480px)
 */

@media (max-width: 480px) {
    .header-section,
    .header-hub {
        padding: 0.4rem 0.8rem;
    }

    .header-left {
        gap: 0.8rem;
    }

    .logo-header,
    .logo-hub {
        width: 4rem;
        height: 4rem;
        padding: 0;
    }

    .header-title {
        font-size: clamp(1rem, 3vw, 1.2rem);
    }

    .header-subtitle {
        font-size: clamp(0.7rem, 2vw, 0.8rem);
    }

    .btn-outline-danger,
    .btn-outline-secondary {
        padding: 0.2rem 0.4rem;
    }

    .btn-outline-danger i,
    .btn-outline-secondary i {
        font-size: 0.7rem;
    }

    .btn-outline-danger span,
    .btn-outline-secondary span {
        font-size: 0.65rem;
    }

    .whatsapp-link {
        padding: 0.25rem 0.375rem;
        font-size: 0.85rem;
        gap: 0.3125rem;
    }

    .whatsapp-icon {
        font-size: 0.95rem;
    }

    .mini-app-card,
    .admin-card,
    .choice-card {
        border-width: 4px;
        border-color: var(--border-dark);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    }

    .badge-bloco-apto {
        font-size: 0.8rem;
        padding: 0.25rem 0.6rem;
    }
}

/*
   UTILITÁRIOS
 */

.text-muted {
    color: var(--text-muted) !important;
}

.text-dark {
    color: var(--text-dark) !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}