/* ============================================
   Banco de Talentos - Contalents
   Dark UI — Purple Aurora Theme
   Matching TalentInhA visual identity
   ============================================ */

/* --- Design Tokens --- */
:root {
    /* Purple Scale */
    --purple-300: #d8b4fe;
    --purple-400: #c084fc;
    --purple-500: #a855f7;
    --purple-600: #9333ea;
    --purple-700: #7e22ce;
    --purple-800: #6b21a8;
    --purple-900: #581c87;

    /* Slate Scale */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    /* Surface Colors */
    --bg-body: #0f0f17;
    --bg-card: #1a1a2e;
    --bg-card-hover: #1f1f36;
    --bg-elevated: #16162a;
    --bg-input: #12121f;
    --bg-header: rgba(15, 15, 23, 0.92);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #a855f7 0%, #7c3aed 50%, #6d28d9 100%);
    --gradient-accent: linear-gradient(135deg, #c084fc 0%, #a855f7 50%, #7c3aed 100%);
    --gradient-dark: linear-gradient(160deg, #0c0a1a 0%, #0f0825 40%, #0a0614 100%);
    --gradient-card: linear-gradient(145deg, rgba(26, 26, 46, 0.8) 0%, rgba(22, 22, 42, 0.6) 100%);

    /* Glass */
    --glass-bg: rgba(15, 10, 40, 0.55);
    --glass-border: rgba(168, 85, 247, 0.12);
    --glass-border-hover: rgba(168, 85, 247, 0.25);
    --glass-border-active: rgba(168, 85, 247, 0.4);

    /* Semantic Colors */
    --color-success: #22c55e;
    --color-success-bg: rgba(34, 197, 94, 0.08);
    --color-success-border: rgba(34, 197, 94, 0.2);
    --color-warning: #f59e0b;
    --color-warning-bg: rgba(245, 158, 11, 0.08);
    --color-warning-border: rgba(245, 158, 11, 0.2);
    --color-error: #ef4444;
    --color-error-bg: rgba(239, 68, 68, 0.08);
    --color-error-border: rgba(239, 68, 68, 0.2);
    --color-info: #3b82f6;
    --color-info-bg: rgba(59, 130, 246, 0.08);
    --color-info-border: rgba(59, 130, 246, 0.2);

    /* Spacing (4px base) */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* Typography */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 60px -10px rgba(147, 51, 234, 0.35);
    --shadow-glow-sm: 0 0 30px -8px rgba(147, 51, 234, 0.25);
    --shadow-glow-btn: 0 4px 30px -4px rgba(147, 51, 234, 0.5);

    /* Z-Index Scale */
    --z-header: 100;
    --z-modal: 200;
    --z-toast: 250;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;

    /* Layout */
    --header-height: 64px;
    --max-width: 1200px;
    --border-radius-sm: 6px;
    --border-radius-md: 10px;
    --border-radius-lg: 14px;
    --border-radius-xl: 20px;
    --border-radius-full: 9999px;
}


/* --- Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-body);
    color: var(--slate-200);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* --- Focus & Accessibility --- */
:focus-visible {
    outline: 2px solid var(--purple-500);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--purple-500);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(168, 85, 247, 0.25); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(168, 85, 247, 0.45); }


/* ============================================
   Loading Screen
   ============================================ */
.bt-loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: var(--space-6);
}

.bt-loading-text {
    color: var(--slate-400);
    font-size: var(--text-sm);
    letter-spacing: 0.02em;
}


/* ============================================
   Layout
   ============================================ */
.bt-layout {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
    padding-top: calc(var(--header-height) + var(--space-8));
    padding-bottom: var(--space-16);
    min-height: 100vh;
}

@media (max-width: 640px) {
    .bt-layout {
        padding: 0 var(--space-4);
        padding-top: calc(var(--header-height) + var(--space-4));
        padding-bottom: var(--space-12);
    }
}


/* ============================================
   Header
   ============================================ */
.bt-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-6);
    z-index: var(--z-header);
    transition: box-shadow var(--transition-normal);
}

.bt-header.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.bt-header__left {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.bt-header__logo {
    height: 32px;
    width: auto;
    flex-shrink: 0;
}

.bt-header__divider {
    width: 1px;
    height: 24px;
    background: var(--glass-border);
    flex-shrink: 0;
}

.bt-header__title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--slate-100);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.bt-header__stats {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.bt-header__stat {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-full);
    font-size: var(--text-xs);
    color: var(--slate-300);
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.bt-header__stat-value {
    font-weight: 600;
    color: var(--purple-400);
}

.bt-header__right {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

@media (max-width: 768px) {
    .bt-header {
        padding: 0 var(--space-4);
    }
    .bt-header__title {
        font-size: var(--text-base);
    }
    .bt-header__stats {
        display: none;
    }
    .bt-header__divider {
        display: none;
    }
}


/* ============================================
   Buttons
   ============================================ */
.bt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    font-family: inherit;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    line-height: 1.4;
    min-height: 36px;
    text-decoration: none;
}

.bt-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.bt-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Primary */
.bt-btn--primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow-btn);
}

.bt-btn--primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 36px -4px rgba(147, 51, 234, 0.6);
}

.bt-btn--primary:active:not(:disabled) {
    transform: translateY(0);
}

/* Secondary / Ghost */
.bt-btn--secondary {
    background: rgba(168, 85, 247, 0.08);
    color: var(--purple-300);
    border: 1px solid var(--glass-border);
}

.bt-btn--secondary:hover:not(:disabled) {
    background: rgba(168, 85, 247, 0.15);
    border-color: var(--glass-border-hover);
}

/* Ghost */
.bt-btn--ghost {
    background: transparent;
    color: var(--slate-300);
}

.bt-btn--ghost:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--slate-100);
}

/* Danger */
.bt-btn--danger {
    background: var(--color-error-bg);
    color: var(--color-error);
    border: 1px solid var(--color-error-border);
}

.bt-btn--danger:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.35);
}

/* Success */
.bt-btn--success {
    background: var(--color-success-bg);
    color: var(--color-success);
    border: 1px solid var(--color-success-border);
}

.bt-btn--success:hover:not(:disabled) {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.35);
}

/* Small */
.bt-btn--sm {
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    min-height: 30px;
}

/* Large */
.bt-btn--lg {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
    min-height: 44px;
}

/* Icon only */
.bt-btn--icon {
    padding: var(--space-2);
    min-width: 36px;
}

/* Loading state */
.bt-btn--loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.bt-btn--loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}


/* ============================================
   Search Bar
   ============================================ */
.bt-search {
    position: relative;
    margin-bottom: var(--space-6);
}

.bt-search__icon {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-500);
    width: 20px;
    height: 20px;
    pointer-events: none;
    transition: color var(--transition-fast);
}

.bt-search__input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    padding-left: 48px;
    padding-right: 48px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    color: var(--slate-200);
    font-size: var(--text-base);
    font-family: inherit;
    transition: all var(--transition-fast);
    min-height: 48px;
}

.bt-search__input::placeholder {
    color: var(--slate-500);
}

.bt-search__input:focus {
    outline: none;
    border-color: var(--purple-500);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
    background: var(--bg-card-hover);
}

.bt-search__input:focus ~ .bt-search__icon {
    color: var(--purple-400);
}

.bt-search__clear {
    position: absolute;
    right: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--slate-500);
    cursor: pointer;
    padding: var(--space-1);
    border-radius: var(--border-radius-sm);
    display: none;
    transition: color var(--transition-fast);
}

.bt-search__clear:hover {
    color: var(--slate-300);
}

.bt-search__clear.visible {
    display: flex;
}


/* ============================================
   Filters
   ============================================ */
.bt-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.bt-filters__group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
}

.bt-filters__label {
    font-size: var(--text-xs);
    color: var(--slate-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: var(--space-1);
    white-space: nowrap;
}

.bt-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-full);
    font-size: var(--text-xs);
    color: var(--slate-400);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    user-select: none;
    min-height: 30px;
}

.bt-filter-pill:hover {
    background: rgba(168, 85, 247, 0.08);
    border-color: var(--glass-border);
    color: var(--slate-300);
}

.bt-filter-pill.active {
    background: rgba(168, 85, 247, 0.15);
    border-color: var(--glass-border-hover);
    color: var(--purple-300);
}

.bt-filter-pill__count {
    font-size: 0.65rem;
    background: rgba(168, 85, 247, 0.2);
    padding: 1px 5px;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    min-width: 18px;
    text-align: center;
}

.bt-filters__clear {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    background: none;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-full);
    font-size: var(--text-xs);
    color: var(--slate-500);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    min-height: 30px;
}

.bt-filters__clear:hover {
    border-color: var(--color-error-border);
    color: var(--color-error);
    background: var(--color-error-bg);
}

.bt-filter-select {
    padding: var(--space-1) var(--space-3);
    padding-right: var(--space-8);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-full);
    font-size: var(--text-xs);
    color: var(--slate-400);
    font-family: inherit;
    cursor: pointer;
    min-height: 30px;
    appearance: none;
    -webkit-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='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: all var(--transition-fast);
}

.bt-filter-select:focus {
    outline: none;
    border-color: var(--purple-500);
    color: var(--slate-200);
}

.bt-filter-select option {
    background: var(--bg-card);
    color: var(--slate-200);
}


/* ============================================
   Card Grid
   ============================================ */
.bt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-4);
}

@media (max-width: 400px) {
    .bt-grid {
        grid-template-columns: 1fr;
    }
}

.bt-grid__load-more {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: var(--space-8) 0 var(--space-4);
}


/* ============================================
   Talent Card
   ============================================ */
.bt-card {
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: var(--space-5);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.bt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.bt-card:hover {
    border-color: var(--glass-border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-sm);
}

.bt-card:hover::before {
    opacity: 1;
}

.bt-card:active {
    transform: translateY(0);
}

.bt-card__header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.bt-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-lg);
    color: white;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.bt-card__avatar--pcd {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.bt-card__info {
    flex: 1;
    min-width: 0;
}

.bt-card__name {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--slate-100);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bt-card__role {
    font-size: var(--text-sm);
    color: var(--slate-400);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.bt-card__location {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-xs);
    color: var(--slate-500);
    margin-top: var(--space-1);
}

.bt-card__location svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.bt-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    margin-top: var(--space-1);
}

.bt-card__skills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    margin-top: var(--space-3);
}

.bt-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.bt-card__date {
    font-size: var(--text-xs);
    color: var(--slate-500);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.bt-card__date svg {
    width: 12px;
    height: 12px;
}

.bt-card__arrow {
    color: var(--slate-600);
    transition: all var(--transition-fast);
}

.bt-card:hover .bt-card__arrow {
    color: var(--purple-400);
    transform: translateX(2px);
}

.bt-card__arrow svg {
    width: 16px;
    height: 16px;
}


/* ============================================
   Badges
   ============================================ */
.bt-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: var(--border-radius-full);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    line-height: 1.4;
}

.bt-badge--recrutei {
    background: var(--color-info-bg);
    color: var(--color-info);
    border: 1px solid var(--color-info-border);
}

.bt-badge--manual {
    background: rgba(168, 85, 247, 0.1);
    color: var(--purple-400);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.bt-badge--pcd {
    background: var(--color-warning-bg);
    color: var(--color-warning);
    border: 1px solid var(--color-warning-border);
}

.bt-badge--ativo {
    background: var(--color-success-bg);
    color: var(--color-success);
    border: 1px solid var(--color-success-border);
}

.bt-badge--inativo {
    background: var(--color-error-bg);
    color: var(--color-error);
    border: 1px solid var(--color-error-border);
}

.bt-badge--disponivel {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.bt-badge--indisponivel {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.bt-badge--neutral {
    background: rgba(255, 255, 255, 0.04);
    color: var(--slate-400);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bt-badge--dot::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}


/* ============================================
   Tags (Skills)
   ============================================ */
.bt-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: rgba(168, 85, 247, 0.06);
    border: 1px solid rgba(168, 85, 247, 0.12);
    border-radius: var(--border-radius-full);
    font-size: var(--text-xs);
    color: var(--purple-300);
    white-space: nowrap;
    line-height: 1.4;
    transition: all var(--transition-fast);
}

.bt-tag:hover {
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(168, 85, 247, 0.2);
}

.bt-tag--removable {
    padding-right: 4px;
    gap: 4px;
    cursor: default;
}

.bt-tag__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: none;
    border: none;
    color: var(--purple-400);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 12px;
    line-height: 1;
}

.bt-tag__remove:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--color-error);
}

.bt-tag--more {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
    color: var(--slate-500);
    font-size: 0.65rem;
}


/* ============================================
   Profile View
   ============================================ */
.bt-profile {
    max-width: 800px;
    margin: 0 auto;
}

.bt-profile__back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--slate-400);
    font-size: var(--text-sm);
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    padding: var(--space-2) 0;
    margin-bottom: var(--space-6);
    transition: color var(--transition-fast);
}

.bt-profile__back:hover {
    color: var(--purple-400);
}

.bt-profile__back svg {
    width: 16px;
    height: 16px;
}

.bt-profile__header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-6);
    padding: var(--space-8);
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    margin-bottom: var(--space-6);
    position: relative;
    overflow: hidden;
}

.bt-profile__header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.bt-profile__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-3xl);
    color: white;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    box-shadow: var(--shadow-glow-sm);
}

.bt-profile__avatar--pcd {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.bt-profile__main-info {
    flex: 1;
    min-width: 0;
}

.bt-profile__name {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--slate-50);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.bt-profile__role {
    font-size: var(--text-lg);
    color: var(--slate-400);
    margin-top: var(--space-1);
}

.bt-profile__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-top: var(--space-3);
}

.bt-profile__meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--slate-400);
}

.bt-profile__meta-item svg {
    width: 14px;
    height: 14px;
    color: var(--purple-400);
    flex-shrink: 0;
}

.bt-profile__badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.bt-profile__actions {
    display: flex;
    gap: var(--space-2);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .bt-profile__header {
        flex-direction: column;
        padding: var(--space-6);
    }
    .bt-profile__actions {
        width: 100%;
    }
    .bt-profile__actions .bt-btn {
        flex: 1;
    }
}


/* --- Profile Sections --- */
.bt-section {
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--space-4);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.bt-section:hover {
    border-color: var(--glass-border-hover);
}

.bt-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    cursor: pointer;
    user-select: none;
    transition: background var(--transition-fast);
}

.bt-section__header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.bt-section__title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--slate-200);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bt-section__title svg {
    width: 16px;
    height: 16px;
    color: var(--purple-400);
}

.bt-section__chevron {
    color: var(--slate-500);
    transition: transform var(--transition-normal);
}

.bt-section__chevron svg {
    width: 16px;
    height: 16px;
}

.bt-section.collapsed .bt-section__chevron {
    transform: rotate(-90deg);
}

.bt-section__body {
    padding: 0 var(--space-5) var(--space-5);
    transition: all var(--transition-normal);
}

.bt-section.collapsed .bt-section__body {
    display: none;
}

/* Info Grid inside sections */
.bt-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-4);
}

.bt-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bt-info-item__label {
    font-size: var(--text-xs);
    color: var(--slate-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bt-info-item__value {
    font-size: var(--text-sm);
    color: var(--slate-200);
    line-height: 1.5;
    word-break: break-word;
}

.bt-info-item__value a {
    color: var(--purple-400);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.bt-info-item__value a:hover {
    color: var(--purple-300);
    text-decoration: underline;
}


/* --- Observations Timeline --- */
.bt-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.bt-timeline__item {
    display: flex;
    gap: var(--space-3);
    position: relative;
}

.bt-timeline__item::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 32px;
    bottom: -16px;
    width: 1px;
    background: rgba(168, 85, 247, 0.1);
}

.bt-timeline__item:last-child::before {
    display: none;
}

.bt-timeline__dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bt-timeline__dot svg {
    width: 14px;
    height: 14px;
    color: var(--purple-400);
}

.bt-timeline__content {
    flex: 1;
    min-width: 0;
}

.bt-timeline__text {
    font-size: var(--text-sm);
    color: var(--slate-300);
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.02);
    padding: var(--space-3);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.bt-timeline__meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-1);
    font-size: var(--text-xs);
    color: var(--slate-500);
}

.bt-timeline__add {
    margin-top: var(--space-4);
}

.bt-timeline__add textarea {
    width: 100%;
    min-height: 80px;
    padding: var(--space-3);
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    color: var(--slate-200);
    font-size: var(--text-sm);
    font-family: inherit;
    resize: vertical;
    transition: border-color var(--transition-fast);
}

.bt-timeline__add textarea::placeholder {
    color: var(--slate-500);
}

.bt-timeline__add textarea:focus {
    outline: none;
    border-color: var(--purple-500);
}

.bt-timeline__add-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--space-2);
}


/* --- Vagas History Table --- */
.bt-vagas-table {
    width: 100%;
    border-collapse: collapse;
}

.bt-vagas-table th {
    text-align: left;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bt-vagas-table td {
    padding: var(--space-3);
    font-size: var(--text-sm);
    color: var(--slate-300);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
}

.bt-vagas-table tr:last-child td {
    border-bottom: none;
}

.bt-vagas-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 640px) {
    .bt-vagas-table thead { display: none; }
    .bt-vagas-table tr {
        display: flex;
        flex-direction: column;
        gap: var(--space-1);
        padding: var(--space-3) 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }
    .bt-vagas-table td {
        padding: var(--space-1) 0;
        border-bottom: none;
    }
    .bt-vagas-table td::before {
        content: attr(data-label);
        font-size: var(--text-xs);
        color: var(--slate-500);
        display: block;
        margin-bottom: 2px;
    }
}


/* ============================================
   Form
   ============================================ */
.bt-form {
    max-width: 800px;
    margin: 0 auto;
}

.bt-form__section {
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-4);
}

.bt-form__section-title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--slate-200);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.bt-form__section-title svg {
    width: 16px;
    height: 16px;
    color: var(--purple-400);
}

.bt-form__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.bt-form__row:last-child {
    margin-bottom: 0;
}

.bt-form__group {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.bt-form__group--full {
    grid-column: 1 / -1;
}

.bt-form__label {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bt-form__label--required::after {
    content: ' *';
    color: var(--color-error);
}

.bt-form__input,
.bt-form__select,
.bt-form__textarea {
    width: 100%;
    padding: var(--space-2) var(--space-3);
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    color: var(--slate-200);
    font-size: var(--text-sm);
    font-family: inherit;
    transition: all var(--transition-fast);
    min-height: 40px;
}

.bt-form__input::placeholder,
.bt-form__textarea::placeholder {
    color: var(--slate-600);
}

.bt-form__input:focus,
.bt-form__select:focus,
.bt-form__textarea:focus {
    outline: none;
    border-color: var(--purple-500);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
    background: rgba(18, 18, 31, 0.8);
}

.bt-form__input.invalid,
.bt-form__select.invalid,
.bt-form__textarea.invalid {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.bt-form__select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 36px;
    cursor: pointer;
}

.bt-form__select option {
    background: var(--bg-card);
    color: var(--slate-200);
}

.bt-form__textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.6;
}

.bt-form__error {
    font-size: var(--text-xs);
    color: var(--color-error);
    margin-top: 2px;
    display: none;
}

.bt-form__group.has-error .bt-form__error {
    display: block;
}

.bt-form__group.has-error .bt-form__input,
.bt-form__group.has-error .bt-form__select {
    border-color: var(--color-error);
}


/* --- Tags Input (Skills) --- */
.bt-tags-input {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    min-height: 40px;
    cursor: text;
    transition: all var(--transition-fast);
}

.bt-tags-input:focus-within {
    border-color: var(--purple-500);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.bt-tags-input__field {
    flex: 1;
    min-width: 120px;
    background: none;
    border: none;
    color: var(--slate-200);
    font-size: var(--text-sm);
    font-family: inherit;
    outline: none;
    padding: 2px 0;
}

.bt-tags-input__field::placeholder {
    color: var(--slate-600);
}


/* --- Repeater (Formacao, Experiencia, Idiomas) --- */
.bt-repeater {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.bt-repeater__item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-md);
    align-items: flex-start;
}

.bt-repeater__item-content {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-3);
}

.bt-repeater__item-remove {
    flex-shrink: 0;
    margin-top: 18px;
}

.bt-repeater__add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3);
    border: 1px dashed rgba(168, 85, 247, 0.2);
    border-radius: var(--border-radius-md);
    background: none;
    color: var(--purple-400);
    font-size: var(--text-sm);
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
    width: 100%;
}

.bt-repeater__add:hover {
    border-color: var(--purple-500);
    background: rgba(168, 85, 247, 0.05);
}

.bt-repeater__add svg {
    width: 16px;
    height: 16px;
}


/* --- Form Actions --- */
.bt-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    padding-top: var(--space-6);
}

@media (max-width: 640px) {
    .bt-form__actions {
        flex-direction: column-reverse;
    }
    .bt-form__actions .bt-btn {
        width: 100%;
    }
}


/* ============================================
   Modal
   ============================================ */
.bt-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    animation: fadeIn 0.2s ease;
}

.bt-modal {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    padding: var(--space-8);
    max-width: 420px;
    width: 100%;
    text-align: center;
    animation: slideUp 0.25s var(--ease-out-expo);
}

.bt-modal__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
}

.bt-modal__icon--warning {
    background: var(--color-warning-bg);
    border: 1px solid var(--color-warning-border);
    color: var(--color-warning);
}

.bt-modal__icon--danger {
    background: var(--color-error-bg);
    border: 1px solid var(--color-error-border);
    color: var(--color-error);
}

.bt-modal__icon svg {
    width: 24px;
    height: 24px;
}

.bt-modal__title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--slate-100);
    margin-bottom: var(--space-2);
}

.bt-modal__text {
    font-size: var(--text-sm);
    color: var(--slate-400);
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

.bt-modal__actions {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
}

.bt-modal__actions .bt-btn {
    min-width: 100px;
}


/* ============================================
   Toast Notifications
   ============================================ */
.bt-toast-container {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    display: flex;
    flex-direction: column-reverse;
    gap: var(--space-2);
    z-index: var(--z-toast);
    max-width: 400px;
}

@media (max-width: 640px) {
    .bt-toast-container {
        left: var(--space-4);
        right: var(--space-4);
        bottom: var(--space-4);
        max-width: none;
    }
}

.bt-toast {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--border-radius-md);
    border: 1px solid;
    font-size: var(--text-sm);
    color: var(--slate-200);
    animation: slideInRight 0.3s var(--ease-out-expo), fadeOut 0.3s ease 3.7s forwards;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.bt-toast--success {
    background: rgba(34, 197, 94, 0.12);
    border-color: var(--color-success-border);
}

.bt-toast--error {
    background: rgba(239, 68, 68, 0.12);
    border-color: var(--color-error-border);
}

.bt-toast--warning {
    background: rgba(245, 158, 11, 0.12);
    border-color: var(--color-warning-border);
}

.bt-toast--info {
    background: rgba(59, 130, 246, 0.12);
    border-color: var(--color-info-border);
}

.bt-toast__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.bt-toast--success .bt-toast__icon { color: var(--color-success); }
.bt-toast--error .bt-toast__icon { color: var(--color-error); }
.bt-toast--warning .bt-toast__icon { color: var(--color-warning); }
.bt-toast--info .bt-toast__icon { color: var(--color-info); }

.bt-toast__message {
    flex: 1;
    line-height: 1.4;
}

.bt-toast__close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--slate-500);
    cursor: pointer;
    padding: 2px;
    border-radius: var(--border-radius-sm);
    transition: color var(--transition-fast);
}

.bt-toast__close:hover {
    color: var(--slate-300);
}

.bt-toast__close svg {
    width: 14px;
    height: 14px;
}


/* ============================================
   Empty State
   ============================================ */
.bt-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-16) var(--space-8);
    text-align: center;
    grid-column: 1 / -1;
}

.bt-empty__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.06);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    color: var(--purple-400);
}

.bt-empty__icon svg {
    width: 28px;
    height: 28px;
}

.bt-empty__title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--slate-300);
    margin-bottom: var(--space-2);
}

.bt-empty__text {
    font-size: var(--text-sm);
    color: var(--slate-500);
    max-width: 320px;
    line-height: 1.6;
}


/* ============================================
   Spinner
   ============================================ */
.bt-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(168, 85, 247, 0.2);
    border-top-color: var(--purple-500);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.bt-spinner--lg {
    width: 36px;
    height: 36px;
    border-width: 3px;
}

.bt-spinner--sm {
    width: 14px;
    height: 14px;
    border-width: 2px;
}

.bt-spinner--inline {
    display: inline-block;
    vertical-align: middle;
}


/* ============================================
   Error Screen
   ============================================ */
.bt-error-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: var(--space-8);
}

.bt-error-screen__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-error-bg);
    border: 1px solid var(--color-error-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
}

.bt-error-screen__icon svg {
    width: 36px;
    height: 36px;
    color: var(--color-error);
}

.bt-error-screen__title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--slate-100);
    margin-bottom: var(--space-2);
}

.bt-error-screen__text {
    font-size: var(--text-base);
    color: var(--slate-400);
    max-width: 360px;
    line-height: 1.6;
}


/* ============================================
   Utility
   ============================================ */
.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }


/* ============================================
   Animations
   ============================================ */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes cardAppear {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.bt-card {
    animation: cardAppear 0.3s var(--ease-out-expo) backwards;
}

.bt-card:nth-child(1) { animation-delay: 0ms; }
.bt-card:nth-child(2) { animation-delay: 40ms; }
.bt-card:nth-child(3) { animation-delay: 80ms; }
.bt-card:nth-child(4) { animation-delay: 120ms; }
.bt-card:nth-child(5) { animation-delay: 160ms; }
.bt-card:nth-child(6) { animation-delay: 200ms; }
.bt-card:nth-child(7) { animation-delay: 240ms; }
.bt-card:nth-child(8) { animation-delay: 280ms; }
.bt-card:nth-child(9) { animation-delay: 320ms; }

/* View transitions */
.bt-view-enter {
    animation: fadeIn 0.25s ease, slideUp 0.3s var(--ease-out-expo);
}
