/**
 * ============================================
 * TEMA DARK UNIFICADO - RECRUIT-APP
 * Design escuro moderno baseado nos cards
 * ============================================
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Cores Base - Dark Theme */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --bg-card-hover: linear-gradient(135deg, #1e293b 0%, #1c1f2e 100%);
    
    /* Cores de Texto */
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-disabled: #64748b;
    
    /* Cores de Destaque */
    --accent-orange: #fb923c;
    --accent-orange-dark: #f97316;
    --accent-orange-gradient: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    
    --accent-green: #10b981;
    --accent-green-dark: #059669;
    --accent-green-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    
    --accent-blue: #3b82f6;
    --accent-blue-dark: #2563eb;
    --accent-blue-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    
    --accent-purple: #7c3aed;
    --accent-purple-dark: #6d28d9;
    --accent-purple-gradient: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    
    /* Bordas */
    --border-color: #334155;
    --border-color-hover: #475569;
    --border-radius: 20px;
    --border-radius-small: 12px;
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.5);
    --shadow-orange: 0 12px 48px rgba(251, 146, 60, 0.2);
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* ============================================
   CARDS GLASS - Dark Theme
   ============================================ */
.glass {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    color: var(--text-primary);
}

.glass:hover {
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background: var(--accent-orange-gradient);
    color: var(--text-primary);
    padding: 14px 24px;
    border-radius: var(--border-radius-small);
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 146, 60, 0.5);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 14px 24px;
    border-radius: var(--border-radius-small);
    border: 2px solid var(--border-color);
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover:not(:disabled) {
    background: var(--border-color-hover);
    border-color: var(--border-color-hover);
    color: var(--text-primary);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-success {
    background: var(--accent-green-gradient);
    color: var(--text-primary);
    padding: 14px 24px;
    border-radius: var(--border-radius-small);
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: var(--text-primary);
    padding: 14px 24px;
    border-radius: var(--border-radius-small);
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

/* ============================================
   INPUTS
   ============================================ */
.input-field {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-small);
    padding: 13px 18px;
    width: 100%;
    color: var(--text-primary);
    font-size: 14px;
    transition: all var(--transition-normal);
}

.input-field::placeholder {
    color: var(--text-muted);
}

.input-field:hover:not(:disabled) {
    border-color: var(--border-color-hover);
    background: var(--bg-tertiary);
}

.input-field:focus {
    outline: none;
    border-color: var(--accent-orange);
    background: var(--bg-tertiary);
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.1), var(--shadow-sm);
}

.input-field:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   CARDS DE CONTEÚDO
   ============================================ */
.candidate-card,
.content-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    border-left: 5px solid var(--accent-orange);
    padding: 24px;
    margin-bottom: 16px;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
}

.candidate-card:hover,
.content-card:hover {
    border-left-color: var(--accent-orange);
    border-left-width: 8px;
    border-color: var(--accent-orange);
    box-shadow: var(--shadow-orange);
    transform: translateX(4px) translateY(-2px);
    background: var(--bg-card-hover);
}

/* ============================================
   BADGES
   ============================================ */
.status-badge,
.badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.plan-badge {
    display: inline-block;
    background: var(--accent-orange-gradient);
    color: var(--text-primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.discount-badge {
    display: inline-block;
    background: var(--accent-green-gradient);
    color: var(--text-primary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
}

/* ============================================
   FEATURE ITEMS (Checkmarks)
   ============================================ */
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.feature-item::before {
    content: '✓';
    color: var(--accent-orange);
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    border: 2px solid #334155;
    padding: 32px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    color: white;
    position: relative;
    z-index: 9999;
    margin: auto;
    transition: all 0.3s ease;
}

.modal-content:hover {
    box-shadow: 0 12px 48px rgba(251, 146, 60, 0.2);
    border-color: #475569;
}

.modal-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.modal-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
    margin: 0;
}

/* ============================================
   TÍTULOS
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Remover ícones de títulos */
h1 span, h2 span, h3 span, h4 span, h5 span, h6 span {
    display: none !important;
}
h1 svg, h2 svg, h3 svg, h4 svg, h5 svg, h6 svg {
    display: none !important;
}

/* ============================================
   ALERTAS
   ============================================ */
.alert {
    padding: 12px 16px;
    border-radius: var(--border-radius-small);
    margin-bottom: 16px;
    font-size: 14px;
    border: 2px solid;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #fca5a5;
}

.alert-warning {
    background: rgba(251, 146, 60, 0.1);
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-blue);
    color: #93c5fd;
}

/* ============================================
   LINKS
   ============================================ */
a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: all var(--transition-fast);
}

a:hover {
    color: var(--accent-orange-dark);
    text-decoration: underline;
}

/* ============================================
   SELECT
   ============================================ */
select {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-small);
    padding: 13px 18px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

select:hover {
    border-color: var(--border-color-hover);
}

select:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.1);
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-color-hover);
}

/* ============================================
   TABLES
   ============================================ */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

th {
    background: var(--bg-secondary);
    font-weight: 700;
    color: var(--text-primary);
}

tr:hover {
    background: var(--bg-secondary);
}

/* ============================================
   UTILITIES
   ============================================ */
.text-muted {
    color: var(--text-muted);
}

.text-secondary {
    color: var(--text-secondary);
}

.bg-dark {
    background: var(--bg-primary);
}

.bg-card {
    background: var(--bg-card);
}

.hidden {
    display: none !important;
}

/* ============================================
   ANIMAÇÕES
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

