/* ==========================================================================
   DRR-SYSTEM OFFICIAL DESIGN STANDARDS (v2026.2)
   Arquivo Mestre de Identidade Visual - "Golden Glass Luxury"
   Baseado nas referências aprovadas: dashboard.html, assinar.html, busca.html, meus.html e livros.html
   ========================================================================== */

/* --- IMPORTAÇÃO CENTRALIZADA DE FONTES (Google Fonts) --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* --------------------------------------------------------------------------
   0. VARIÁVEIS E FUNDAMENTOS
   -------------------------------------------------------------------------- */
:root {
    /* --- CORES: OURO (Identidade Principal) --- */
    --gold-primary: #DAA520;       /* Ouro Clássico (Bordas, Textos Importantes) */
    --gold-light:   #FFD700;       /* Ouro Brilhante (Hover, Ícones) */
    --gold-dark:    #B8860B;       /* Ouro Escuro (Sombras, Gradientes) */
    --gold-dim:     rgba(218, 165, 32, 0.15); /* Fundo sutil dourado */

    /* --- CORES: BASE (Dark Mode) --- */
    --bg-dark:      #0a0905;       /* Fundo quase preto (Body) */
    --bg-panel:     rgba(255, 255, 255, 0.03); /* Painéis Glass (busca.html) */
    --bg-input:     rgba(0, 0, 0, 0.4); /* Fundo de Inputs (meus.css) */
    
    /* --- CORES: TEXTO --- */
    --text-title:   #ffffff;       /* Títulos (assinar.html) */
    --text-body:    #fdfaf0;       /* Corpo padrão */
    --text-secondary: rgba(253, 250, 240, 0.7); /* Subtítulos/Labels (style-busca.css) */
    --text-muted:   rgba(253, 250, 240, 0.4); /* Descrições */
    
    /* --- CORES: SEMÂNTICAS --- */
    --color-danger: #ef4444;       /* Vermelho (Deletar) */
    --color-success:#10b981;       /* Verde (Sucesso) */
    --color-info:   #3b82f6;       /* Azul (Links/Download) */
    --color-warning:#fbbf24;       /* Laranja (Atenção) */

    /* --- FONTES (assinar.html) --- */
    --font-ui:      'Outfit', sans-serif;       /* Interface Geral */
    --font-data:    'Space Mono', monospace;    /* Tabelas e Inputs */

    /* --- GLASSMORPHISM TOKENS --- */
    --glass-border: 1px solid rgba(218, 165, 32, 0.2); /* Borda Dourada Sutil */
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --glass-blur:   blur(20px);
    
    /* --- TAMANHOS E ESPAÇAMENTOS --- */
    --radius-sm: 8px;
    --radius-md: 12px; /* Padrão para Botões e Inputs */
    --radius-lg: 20px; /* Padrão para Cards e Modais */
    --radius-pill: 50px;
}

/* Reset Básico */
* { margin: 0; padding: 0; box-sizing: border-box; outline: none; }

body { 
    background-color: var(--bg-dark); 
    font-family: var(--font-ui); 
    color: var(--text-body);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    /* Background Animado é injetado via navbar.js, mas definimos o fallback */
    background: linear-gradient(135deg, #14120a 0%, #1a180f 50%, #242114 100%);
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }

/* --------------------------------------------------------------------------
   1. BACKGROUND (Referência: dashboard.html)
   -------------------------------------------------------------------------- */
/* O background animado com 'orbs' é geralmente controlado por CSS global ou JS.
   Aqui garantimos que qualquer elemento com .drr-background siga o padrão. */
.drr-background {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2;
    background: linear-gradient(135deg, #14120a 0%, #1a180f 50%, #242114 100%);
}

/* --------------------------------------------------------------------------
   2, 3, 4. TIPOGRAFIA & CABEÇALHO PADRÃO
   -------------------------------------------------------------------------- */

/* Container de Cabeçalho Padrão (NOVO) */
/* Garante que todas as páginas tenham título na mesma altura e posição */
/* Padrão Meus.html: Padding-top 140px na container */
.drr-page-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 140px auto 3rem auto; /* 140px Top (Match Meus.html), 3rem Bottom (Espaço para conteúdo) */
    width: 100%;
    max-width: 1400px;
    padding: 0 20px;
}

/* Título Principal */
.drr-title {
    font-family: var(--font-ui);
    font-size: 2.5rem; /* 40px */
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-title);
    /* Efeito de brilho dourado sutil no texto branco */
    text-shadow: 0 0 20px rgba(218, 165, 32, 0.3);
}

/* Subtítulo */
.drr-subtitle {
    font-family: var(--font-ui);
    font-size: 1.1rem; /* ~18px */
    font-weight: 400;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 0; /* Controlado pelo margin-bottom do .drr-page-header se necessário */
    margin-top: 0;
}

/* Títulos de Seção (H2/H3 dentro de cards) */
.drr-header {
    color: var(--gold-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: var(--glass-border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Descrições */
.drr-description {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* --------------------------------------------------------------------------
   5, 6. INPUTS E FORMULÁRIOS (Referência: meus.css)
   -------------------------------------------------------------------------- */
.drr-form-group {
    margin-bottom: 20px;
}

.drr-label {
    display: block;
    color: var(--text-secondary); /* Cinza claro, não dourado (meus.css) */
    font-size: 0.9rem; /* 14px */
    font-weight: 500;
    margin-bottom: 8px;
}

.drr-input {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-input); /* #1a1a1a ou rgba(0,0,0,0.4) */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md); /* 10-12px */
    color: white;
    font-family: var(--font-ui); /* meus.css usa Outfit nos inputs */
    font-size: 0.95rem; /* 14px */
    transition: all 0.3s ease;
}

.drr-input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.1);
    background: rgba(0, 0, 0, 0.6);
}

.drr-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Select Customizado */
select.drr-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23DAA520' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
    padding-right: 40px;
}
select.drr-input option {
    background-color: #1a1a1a;
    color: white;
    padding: 10px;
}

/* Small help text */
.drr-input-help {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem; /* 12px */
    margin-top: 6px;
}

/* --------------------------------------------------------------------------
   BOTÕES (Referência: style-busca.css)
   -------------------------------------------------------------------------- */
.drr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: var(--radius-md);
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.drr-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
}

/* 6. Botão de Ação Principal (Busca/Salvar) */
.drr-btn-action {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    color: #000; /* Texto preto para contraste */
    border: none;
}

.drr-btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(218, 165, 32, 0.4);
    filter: brightness(1.1);
}

/* 11, 12. Botão Cancelar / Secundário */
.drr-btn-cancel, .drr-btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: var(--glass-border);
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.drr-btn-cancel:hover, .drr-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 10. Botão Deletar / Perigo */
.drr-btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.drr-btn-danger:hover {
    background: var(--color-danger);
    color: white;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

/* 9. Botão Download */
.drr-btn-download {
    background: rgba(59, 130, 246, 0.15); /* Azul */
    color: var(--color-info);
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-weight: 600;
}

.drr-btn-download:hover {
    background: var(--color-info);
    color: white;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

/* 8. Botão Escolher Arquivo (Custom Input File) */
.drr-file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed var(--glass-border); /* Borda tracejada dourada sutil */
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    color: var(--text-secondary);
}

.drr-file-label:hover {
    background: var(--gold-dim);
    border-color: var(--gold-primary);
    color: var(--gold-light);
}

.drr-file-label i { font-size: 2rem; margin-bottom: 10px; }
.drr-file-input { display: none; } /* Esconde o input nativo */

/* 14. Botão Voltar (Link simples com ícone) */
.drr-link-back {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem; font-weight: 500;
    cursor: pointer; margin-bottom: 20px;
    transition: 0.3s;
}
.drr-link-back:hover { color: var(--gold-primary); transform: translateX(-5px); }

/* 7. Botões de Abas (Referência: cadastro.html) */
.drr-tabs {
    display: flex;
    justify-content: center; /* Centralizado */
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: var(--glass-border);
    flex-wrap: wrap;
}

.drr-tab-btn {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: 12px;
    color: var(--text-secondary);
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.drr-tab-btn:hover {
    background: rgba(218, 165, 32, 0.1);
    border-color: rgba(218, 165, 32, 0.3);
    color: var(--gold-primary);
    transform: translateY(-2px);
}

.drr-tab-btn.active {
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.2), rgba(218, 165, 32, 0.05));
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------------------------------
   ESTRUTURAS (Containers, Modais) (Ref: meus.html, cadastro.html)
   -------------------------------------------------------------------------- */

/* 15. Containers (Cards de Conteúdo) */
.drr-container {
    max-width: 1400px;
    width: 95%;
    margin: 40px auto; /* Margem top/bottom */
    padding: 30px;
    background: var(--bg-panel); /* rgba(255, 255, 255, 0.03) */
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
}

/* --------------------------------------------------------------------------
   NOVOS PADRÕES (Container & Módulos Grid)
   Adicionado em: 25/01/2026
   -------------------------------------------------------------------------- */

/* Container Principal de Página (Dashboard Style) */
.drr-dashboard-container {
    padding-top: 0;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 40px;
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Painel de Vidro Principal (Área de Trabalho) */
.drr-glass-panel {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    margin-bottom: 2rem;
    min-height: 200px; /* Altura mínima segura */
}

/* Grid de Cards/Módulos */
.drr-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Card de Módulo/Ferramenta (Botão Grande) */
.drr-card-module {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(218, 165, 32, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 280px;
    text-decoration: none; /* Caso seja <a> */
}

.drr-card-module:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(218, 165, 32, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

/* Efeito de brilho no topo do card */
.drr-card-module::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #DAA520, transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.drr-card-module:hover::before { transform: scaleX(1); }

/* Ícone do Card */
.drr-card-icon {
    margin-bottom: 25px;
    width: 80px; height: 80px;
    background: rgba(218, 165, 32, 0.05);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(218, 165, 32, 0.1);
}

.drr-card-icon svg, .drr-card-icon i {
    width: 40px; height: 40px; font-size: 40px;
    fill: #DAA520; color: #DAA520;
    transition: all 0.4s ease;
}

.drr-card-module:hover .drr-card-icon {
    transform: scale(1.1) rotate(-5deg);
    background: #DAA520;
    border-color: #DAA520;
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.3);
}

.drr-card-module:hover .drr-card-icon svg, 
.drr-card-module:hover .drr-card-icon i {
    fill: #000; color: #000;
}

/* Título do Card */
.drr-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 15px; margin-top: 0;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}
.drr-card-module:hover .drr-card-title { color: #DAA520; }

/* Descrição do Card */
.drr-card-desc {
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 300;
}

/* Estado Desabilitado */
.drr-card-module.disabled {
    opacity: 0.5; cursor: not-allowed; filter: grayscale(1); pointer-events: none;
}
.drr-card-module.disabled:hover { transform: none; box-shadow: none; border-color: rgba(255,255,255,0.1); }

/* 16. Modais (Ref: style-busca.css / cadastro.css) */
.drr-modal-overlay {
    display: none; /* JS controla (flex) */
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Fundo escuro focado */
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center; align-items: center;
    padding: 20px;
    opacity: 0; transition: opacity 0.3s ease;
}

.drr-modal-overlay.active { display: flex; opacity: 1; }

.drr-modal-content {
    background: #14120a; /* Fundo sólido muito escuro (quase preto) para legibilidade */
    /* Alternativa Glass se preferir: background: rgba(15, 20, 18, 0.95); */
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%; max-width: 700px; max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    transform: scale(0.95); transition: transform 0.3s ease;
}

.drr-modal-overlay.active .drr-modal-content { transform: scale(1); }

/* 13. Botão Fechar Modal */
.drr-modal-close {
    position: absolute; top: 20px; right: 25px;
    background: none; border: none;
    color: var(--text-muted);
    font-size: 28px; font-weight: bold;
    cursor: pointer; transition: 0.2s;
    line-height: 1;
}
.drr-modal-close:hover { color: var(--gold-primary); transform: rotate(90deg); }

/* --------------------------------------------------------------------------
   19. PLANILHAS / TABELAS (Referência: livros.css)
   -------------------------------------------------------------------------- */
.drr-table-container {
    overflow-x: auto;
    width: 100%;
    margin-top: 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.drr-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px; /* Garante scroll horizontal em telas pequenas */
}

.drr-table thead {
    background: rgba(218, 165, 32, 0.05); /* Fundo sutil dourado */
}

.drr-table th {
    padding: 12px 16px;
    text-align: left;
    color: var(--gold-primary);
    font-weight: 600;
    font-size: 0.85rem; /* 13px */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: var(--glass-border);
    white-space: nowrap;
}

.drr-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s;
}

.drr-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05); /* Hover effect */
}

.drr-table td {
    padding: 12px 16px;
    color: var(--text-secondary);
    font-size: 0.9rem; /* 14px */
    white-space: nowrap;
}

/* Primeira coluna destacada (Número do procedimento, Nome, etc) */
.drr-table td:first-child, .drr-table-highlight {
    color: var(--gold-light);
    font-weight: 600;
    font-family: var(--font-data);
}

/* --------------------------------------------------------------------------
   18. UTILITÁRIOS E ÍCONES
   -------------------------------------------------------------------------- */
.drr-icon-gold { color: var(--gold-primary); fill: currentColor; }
.drr-icon-white { color: white; fill: currentColor; }
.drr-icon-lg { width: 32px; height: 32px; }
.drr-icon-md { width: 24px; height: 24px; }
.drr-icon-sm { width: 16px; height: 16px; }

/* Grid Utilitário */
.drr-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.drr-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

/* --------------------------------------------------------------------------
   20. MODAIS LEGADOS (Compatibilidade com navbar.js)
   Classes: .modal, .modal-content, .modal-header, .modal-close
   -------------------------------------------------------------------------- */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #14120a;
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: var(--glass-border);
}

.modal-header h2 {
    color: var(--gold-primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--gold-primary);
    transform: rotate(90deg);
}

/* --------------------------------------------------------------------------
   21. CREDENCIAIS (Cards e Detalhes - navbar.js)
   -------------------------------------------------------------------------- */
.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.credential-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.credential-card:hover {
    background: rgba(218, 165, 32, 0.08);
    border-color: rgba(218, 165, 32, 0.3);
    transform: translateY(-2px);
}

.credential-card h3 {
    color: var(--gold-primary);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.credential-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

.credential-details {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-item:last-of-type {
    border-bottom: none;
}

.detail-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.detail-value {
    color: var(--text-body);
    font-family: var(--font-data);
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   22. BOTÕES LEGADOS (Compatibilidade com modais existentes)
   Classes: .btn-primary, .btn-secondary
   -------------------------------------------------------------------------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary));
    color: #000;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(218, 165, 32, 0.4);
    filter: brightness(1.1);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-body);
}

/* --------------------------------------------------------------------------
   23. FORMULÁRIOS EM MODAIS (Labels e Inputs legados)
   -------------------------------------------------------------------------- */
.modal-content label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: white;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.modal-content input[type="text"]:focus,
.modal-content input[type="email"]:focus,
.modal-content input[type="password"]:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.15);
    background: rgba(0, 0, 0, 0.6);
}

.modal-content input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Mobile Response */
@media (max-width: 768px) {
    .drr-grid-2, .drr-grid-3 { grid-template-columns: 1fr; }
    .drr-container { padding: 20px; width: 100%; margin: 80px 0 20px 0; }
    .drr-title { font-size: 1.8rem; }
    .drr-tab-btn { width: 100%; text-align: center; }
    .drr-page-header { margin-top: 80px; } /* Ajuste mobile */

    /* Modais Responsivos */
    .modal-content { padding: 25px; max-width: 95%; }
    .credentials-grid { grid-template-columns: 1fr; }
}
