/* ═══════════════════════════════════════════════════════════════
   RecruitPro Enterprise — Design System CSS
   Midnight Luxe Theme: Dark glassmorphism with premium aesthetics
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Light Mode (Milky Frost & Blurple) */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px rgba(15, 23, 42, 0.04);
    --glass-blur: 24px;
    --indigo-glow: 0 4px 24px rgba(99, 91, 255, 0.2);
    --emerald-glow: 0 4px 24px rgba(16, 185, 129, 0.15);
}

.dark {
    /* Dark Mode (Cyber Midnight) */
    --glass-bg: rgba(19, 13, 38, 0.65);
    --glass-border: rgba(168, 85, 247, 0.15); /* Purple border tint */
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    --glass-blur: 32px;
    --indigo-glow: 0 4px 24px rgba(168, 85, 247, 0.35); /* Neon Purple glow */
    --emerald-glow: 0 4px 24px rgba(6, 182, 212, 0.3); /* Neon Cyan glow */
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #fafafa; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

::selection { background: rgba(79, 70, 229, 0.2); color: #1e293b; }

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    box-shadow: var(--glass-shadow);
}

.glass-card-lg {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    box-shadow: var(--glass-shadow);
}

.interactive-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.interactive-card > * {
    position: relative;
    z-index: 1;
}
.interactive-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(99, 102, 241, 0.12), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}
.interactive-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: 0;
}
.interactive-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.15), 0 0 20px rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
}
.interactive-card:hover::before {
    opacity: 1;
}
.interactive-card:hover::after {
    box-shadow: inset 0 0 20px rgba(99, 102, 241, 0.1), inset 0 0 0 1px rgba(99, 102, 241, 0.3);
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-indigo {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff !important;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    box-shadow: var(--indigo-glow);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, #4f46e5, #06b6d4, #34d399);
    border-radius: 0.6rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(8px);
}
.btn-primary:hover::before {
    opacity: 0.7;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background: #ffffff;
    color: #1e293b;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(30, 41, 59, 0.15);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.btn-secondary:hover {
    background: #f8fafc;
    border-color: rgba(30, 41, 59, 0.25);
}

.btn-danger {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.35);
    transition: all 0.2s;
}
.btn-danger:hover {
    transform: translateY(-2px);
}

.form-input {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(30, 41, 59, 0.15);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #1e293b;
    font-size: 0.875rem;
    transition: all 0.2s;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.01);
}
.form-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
.form-input::placeholder { color: #94a3b8; }

.form-select {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(30, 41, 59, 0.15);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #1e293b;
    font-size: 0.875rem;
    transition: all 0.2s;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.01);
}
.form-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.form-textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(30, 41, 59, 0.15);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #1e293b;
    font-size: 0.875rem;
    transition: all 0.2s;
    outline: none;
    resize: vertical;
    min-height: 120px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.01);
}
.form-textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}

.form-error {
    color: #fb7185;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table thead th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    border-bottom: 1px solid rgba(30, 41, 59, 0.1);
    background: #f8fafc;
}
.data-table tbody td {
    padding: 1rem;
    font-size: 0.875rem;
    color: #1e293b;
    border-bottom: 1px solid rgba(30, 41, 59, 0.05);
}
.data-table tbody tr:hover { background: rgba(30, 41, 59, 0.01); }
.data-table tbody tr:last-child td { border-bottom: none; }

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}
.section-subtitle {
    font-size: 1rem;
    color: #64748b;
}
