﻿/**
 * TalentorX Dashboard Styles - SaaS Level Design
 * LinkedIn/Notion/Stripe inspired modern UI
 * 
 * @package TalentorX
 * @since 3.0.1
 */

/* ============================================
   CSS VARIABLES & THEME
   ============================================ */
:root {
    /* Colors */
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --primary-light: #E6F2FF;
    --secondary: #64748B;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    
    /* Neutrals */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* ── POLISH: Richer page background tokens ── */
    --page-bg: #F0F4FF;
    --page-bg-gradient: linear-gradient(145deg, #EEF2FF 0%, #F5F7FF 40%, #F0F4FF 100%);
    --sidebar-bg: #FFFFFF;
    --sidebar-border: rgba(99, 102, 241, 0.10);
    --header-bg: rgba(255, 255, 255, 0.92);
    --header-border: rgba(99, 102, 241, 0.08);

    /* ── POLISH: Elevated card tokens ── */
    --card-bg: #FFFFFF;
    --card-border: rgba(99, 102, 241, 0.09);
    --card-shadow: 0 1px 3px rgba(99, 102, 241, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --card-shadow-hover: 0 8px 24px rgba(99, 102, 241, 0.10), 0 2px 6px rgba(0, 0, 0, 0.05);
    --card-shadow-md: 0 4px 12px rgba(99, 102, 241, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);

    /* Layout */
    --sidebar-width: 280px;
    --header-height: 72px;
    --border-radius: 14px;
    --border-radius-sm: 10px;
    --border-radius-lg: 18px;
    
    /* Shadows — kept for backward compat, card tokens preferred */
    --shadow-sm: 0 1px 3px rgba(99, 102, 241, 0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 2px 6px rgba(99, 102, 241, 0.07), 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(99, 102, 241, 0.09), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 28px rgba(99, 102, 241, 0.10), 0 4px 8px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 40px rgba(99, 102, 241, 0.12), 0 8px 16px rgba(0,0,0,0.05);
    
    /* Motion */
    --motion-fast: 120ms;
    --motion-base: 200ms;
    --motion-slow: 300ms;
    --motion-ease: cubic-bezier(0.2, 0, 0, 1);
    --transition: all var(--motion-base) var(--motion-ease);
    --space-05: 4px;
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-6: 48px;
    --text-xs: 12px;
    --text-sm: 14px;
    --text-md: 16px;
    --text-lg: 20px;
    --text-xl: 24px;
    --text-2xl: 32px;

    /* Semantic border tokens */
    --warning-border:    #FDE68A;
    --success-border:    #6EE7B7;
    --danger-border:     #FCA5A5;
    --info-border:       #93C5FD;
    --card-border-hover: rgba(99, 102, 241, 0.18);

    /* Semantic text tokens */
    --text-primary: var(--gray-900);
    --text-body:    var(--gray-700);
    --text-muted:   var(--gray-500);
    --text-subtle:  var(--gray-400);

    /* Semantic color backgrounds */
    --success-bg: #D1FAE5;
    --warning-bg: #FEF3C7;
    --danger-bg:  #FEE2E2;
    --info-bg:    #DBEAFE;
}

/* ============================================
   RESET & BASE
   ============================================ */
.tx-dashboard * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.tx-dashboard {
    --tx-admin-bar-offset: 0px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-size: var(--text-sm);
    line-height: 1.5;
    color: var(--gray-900);
    background: var(--page-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: none;
    margin: 0;
    /* Subtle fixed background gradient — never moves, never distracts */
    background-image: var(--page-bg-gradient);
    background-attachment: fixed;
}

.tx-dashboard h1 { font-size: var(--text-xl); line-height: 1.2; }
.tx-dashboard h2 { font-size: var(--text-lg); line-height: 1.3; }
.tx-dashboard h3 { font-size: var(--text-md); line-height: 1.35; }
.tx-dashboard p,
.tx-dashboard li,
.tx-dashboard label,
.tx-dashboard input,
.tx-dashboard textarea,
.tx-dashboard select,
.tx-dashboard button,
.tx-dashboard a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.admin-bar .tx-dashboard {
    --tx-admin-bar-offset: 32px;
}

/* ============================================
   LAYOUT STRUCTURE
   ============================================ */
.tx-dashboard-wrapper {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    width: 100%;
    min-height: calc(100vh - var(--tx-admin-bar-offset));
    /* Transparent so the fixed body gradient shows through */
    background: transparent;
    align-items: start;
    position: relative;
}

/* ── Decorative background blobs ──────────────────────────────────────────
   Two very soft radial glows sit behind all content (z-index: 0).
   They are pointer-events: none and never overlap interactive elements.
   Opacity is intentionally low — they add depth without distraction.
   ──────────────────────────────────────────────────────────────────────── */
.tx-dashboard-wrapper::before,
.tx-dashboard-wrapper::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    /* Slow, subtle float — 20s cycle, barely perceptible */
    animation: tx-blob-drift 20s ease-in-out infinite alternate;
}

.tx-dashboard-wrapper::before {
    width: 520px;
    height: 520px;
    top: -120px;
    right: -80px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.07) 0%, transparent 70%);
    animation-delay: 0s;
}

.tx-dashboard-wrapper::after {
    width: 400px;
    height: 400px;
    bottom: 60px;
    left: 60px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes tx-blob-drift {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(12px, -16px) scale(1.03); }
    100% { transform: translate(-8px, 10px) scale(0.98); }
}

/* All direct children of wrapper sit above the blobs */
.tx-dashboard-wrapper > * {
    position: relative;
    z-index: 1;
}

/* ============================================
   SIDEBAR
   ============================================ */
.tx-sidebar {
    width: 100%;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    position: sticky;
    top: var(--tx-admin-bar-offset);
    height: calc(100vh - var(--tx-admin-bar-offset));
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
    /* Subtle left-edge shadow to separate from content */
    box-shadow: 2px 0 16px rgba(99, 102, 241, 0.06);
}

.tx-sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.tx-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.tx-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, #0052CC 100%);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.tx-logo-text h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.tx-logo-text p {
    font-size: 12px;
    color: var(--gray-500);
    margin: 0;
}

/* User Profile in Sidebar */
.tx-sidebar-user {
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tx-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 15px;
    flex-shrink: 0;
}

.tx-user-info {
    flex: 1;
    min-width: 0;
}

.tx-user-name {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tx-user-tin {
    font-size: 12px;
    color: var(--gray-500);
    font-family: 'Courier New', monospace;
}

/* Navigation */
.tx-nav {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

.tx-nav-section {
    margin-bottom: 24px;
}

.tx-nav-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    padding: 0 12px 8px;
}

.tx-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    transition: background var(--motion-base) var(--motion-ease),
                color var(--motion-base) var(--motion-ease),
                box-shadow var(--motion-base) var(--motion-ease);
    margin-bottom: 2px;
    font-weight: 500;
}

.tx-nav-item:hover {
    background: rgba(99, 102, 241, 0.06);
    color: var(--gray-900);
}

.tx-nav-item.active {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.10) 0%, rgba(99, 102, 241, 0.07) 100%);
    color: var(--primary);
    box-shadow: inset 3px 0 0 var(--primary);
}

.tx-nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tx-nav-badge {
    margin-left: auto;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* Sidebar Footer */
.tx-sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
}

.tx-logout-btn {
    width: 100%;
    padding: 10px 16px;
    background: var(--gray-100);
    border: none;
    border-radius: var(--border-radius-sm);
    color: var(--gray-700);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tx-logout-btn:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.tx-main {
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    max-width: none;
    overflow-x: hidden;
}

/* Top Header */
.tx-header {
    height: var(--header-height);
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: var(--tx-admin-bar-offset);
    z-index: 90;
    /* Frosted glass effect — subtle backdrop blur */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 8px rgba(99, 102, 241, 0.06);
}

.tx-header-left h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
}

.tx-header-left p {
    font-size: 14px;
    color: var(--gray-500);
}

.tx-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tx-header-search {
    position: relative;
}

.tx-search-input {
    width: 300px;
    padding: 10px 16px 10px 40px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    transition: var(--transition);
}

.tx-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.tx-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.tx-notifications-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.tx-notifications-btn:hover {
    background: var(--gray-200);
}

.tx-notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid white;
}

/* Content Area */
.tx-content {
    padding: 24px 28px;
    max-width: 100%;
    overflow-x: auto;
}

.tx-section-panel {
    display: block;
}

.tx-grid-2col {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    align-items: start;
}

.tx-grid-main,
.tx-grid-sidebar {
    min-width: 0;
}

.tx-grid-2up {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.tx-grid-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr);
    gap: 12px;
    margin-bottom: 16px;
}

.tx-widget-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tx-widget-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-sm);
    background: var(--card-bg);
    transition: box-shadow var(--motion-base) var(--motion-ease),
                transform var(--motion-base) var(--motion-ease),
                border-color var(--motion-base) var(--motion-ease);
}

.tx-widget-item:hover {
    border-color: rgba(99, 102, 241, 0.16);
    box-shadow: var(--card-shadow-md);
    transform: translateY(-1px);
}

.tx-widget-item-main {
    min-width: 0;
    flex: 1;
}

.tx-widget-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.tx-widget-item-text {
    font-size: 13px;
    color: var(--gray-600);
}

.tx-widget-item-meta {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 6px;
}

.tx-widget-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.tx-widget-empty {
    padding: 24px;
    text-align: center;
    border: 1px dashed var(--gray-300);
    border-radius: var(--border-radius-sm);
    color: var(--gray-500);
    background: var(--gray-50);
}

.tx-loading-indicator {
    padding: 16px 0;
    color: var(--gray-500);
    font-weight: 500;
}

.tx-loading-indicator.is-hidden {
    display: none;
}

/* ============================================
   CARDS
   ============================================ */
.tx-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    /* Micro-lift on hover — professional SaaS feel */
    transition: box-shadow var(--motion-base) var(--motion-ease),
                transform var(--motion-base) var(--motion-ease),
                border-color var(--motion-base) var(--motion-ease);
}

.tx-card:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(99, 102, 241, 0.14);
    transform: translateY(-1px);
}

.tx-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tx-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
}

.tx-card-subtitle {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 4px;
}

.tx-card-body {
    padding: 24px;
}

.tx-card-footer {
    padding: 16px 24px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

/* ============================================
   STATS GRID
   ============================================ */
.tx-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 1100px) {
    .tx-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .tx-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

.tx-stat-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: box-shadow var(--motion-base) var(--motion-ease),
                transform var(--motion-base) var(--motion-ease),
                border-color var(--motion-base) var(--motion-ease);
    border: 1px solid var(--card-border);
    /* Subtle top accent — adds premium feel without being loud */
    border-top: 3px solid transparent;
    background-clip: padding-box;
}

.tx-stat-card:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(99, 102, 241, 0.14);
    border-top-color: var(--primary);
    transform: translateY(-2px);
}

.tx-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.tx-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.tx-stat-icon.blue { background: #DBEAFE; color: #1E40AF; }
.tx-stat-icon.green { background: #D1FAE5; color: #065F46; }
.tx-stat-icon.orange { background: #FED7AA; color: #92400E; }
.tx-stat-icon.purple { background: #E9D5FF; color: #6B21A8; }
.tx-stat-icon.red { background: #FEE2E2; color: #991B1B; }
.tx-stat-icon.yellow { background: #FEF3C7; color: #92400E; }

/* Semantic stat icon aliases */
.tx-stat-icon.primary { background: #DBEAFE; color: #1E40AF; }
.tx-stat-icon.success { background: #D1FAE5; color: #065F46; }
.tx-stat-icon.warning { background: #FED7AA; color: #92400E; }
.tx-stat-icon.info    { background: #CFFAFE; color: #155E75; }
.tx-stat-icon.danger  { background: #FEE2E2; color: #991B1B; }
.tx-stat-icon.neutral { background: #F3F4F6; color: #374151; }

/* Stat icon SVG sizing */
.tx-stat-icon svg { width: 22px; height: 22px; }

.tx-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
    margin-bottom: 6px;
}

.tx-stat-label {
    font-size: 14px;
    color: var(--gray-600);
    font-weight: 500;
}

.tx-stat-change {
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

.tx-stat-change.positive {
    color: var(--success);
}

.tx-stat-change.negative {
    color: var(--danger);
}

/* ============================================
   BUTTONS
   ============================================ */
.tx-btn {
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    justify-content: center;
    min-height: 40px;
}

.tx-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.25);
}

.tx-btn-primary:hover {
    background: linear-gradient(135deg, #1a7aff 0%, var(--primary) 100%);
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.35);
    transform: translateY(-1px);
}

.tx-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.tx-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.tx-btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.tx-btn-secondary:hover {
    background: var(--gray-300);
}

.tx-btn-success {
    background: var(--success);
    color: white;
}

.tx-btn-danger {
    background: var(--danger);
    color: white;
}

.tx-btn-outline {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.tx-btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.tx-btn-ghost {
    background: transparent;
    border: 1px solid transparent;
    color: var(--gray-600);
}

.tx-btn-ghost:hover {
    background: var(--gray-100);
    color: var(--gray-900);
    border-color: var(--gray-200);
}

.tx-btn-sm {
    padding: 5px 12px;
    font-size: 12px;
    min-height: 32px;
}

.tx-btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.tx-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.tx-btn.is-loading {
    pointer-events: none;
}

.tx-btn.is-success {
    background: var(--success);
    color: #fff;
}

/* ============================================
   BADGES
   ============================================ */
.tx-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.tx-badge-success {
    background: #D1FAE5;
    color: #065F46;
}

.tx-badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

.tx-badge-danger {
    background: #FEE2E2;
    color: #991B1B;
}

.tx-badge-info {
    background: #DBEAFE;
    color: #1E40AF;
}

.tx-badge-gray {
    background: var(--gray-200);
    color: var(--gray-700);
}

/* ============================================
   EMPTY STATES
   ============================================ */
.tx-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.tx-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--gray-400);
}

.tx-empty-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.tx-empty-text {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 24px;
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.tx-progress {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.tx-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #0052CC 100%);
    transition: width 0.3s ease;
}

/* ============================================
   PROFILE COMPLETION CARD
   ============================================ */
.tx-profile-completion {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.06) 0%, rgba(255,255,255,0.95) 100%);
    border: 1.5px solid rgba(0, 102, 255, 0.18);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 102, 255, 0.07);
}

.tx-completion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.tx-completion-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
}

.tx-completion-percentage {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.tx-completion-items {
    margin-top: 16px;
}

.tx-completion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.tx-completion-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tx-completion-checkbox.completed {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

/* ============================================
   ACTIVITY TIMELINE
   ============================================ */
.tx-timeline {
    position: relative;
    padding-left: 32px;
}

.tx-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.tx-timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.tx-timeline-dot {
    position: absolute;
    left: -28px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary);
}

.tx-timeline-content {
    background: var(--gray-50);
    padding: 16px;
    border-radius: var(--border-radius-sm);
}

.tx-timeline-title {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.tx-timeline-text {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.tx-timeline-time {
    font-size: 12px;
    color: var(--gray-500);
}

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

.tx-table thead {
    background: var(--gray-50);
}

.tx-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tx-table td {
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: top;
}

.tx-table tbody tr:hover {
    background: var(--gray-50);
}

.tx-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   FORMS
   ============================================ */
.tx-form-group {
    margin-bottom: 20px;
}

.tx-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.tx-form-input,
.tx-form-select,
.tx-form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    transition: var(--transition);
}

.tx-form-input:focus,
.tx-form-select:focus,
.tx-form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.tx-form-help {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
}

.tx-form-select-inline {
    min-width: 180px;
    width: auto;
}

.tx-table-wrap {
    overflow-x: auto;
}

.tx-table-subtext {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
}

.tx-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tx-bulk-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.tx-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-700);
    font-weight: 500;
}

.tx-pipeline-board {
    display: grid;
    grid-template-columns: repeat(8, minmax(180px, 1fr));
    gap: 16px;
    overflow-x: auto;
}

.tx-pipeline-column {
    background: rgba(249, 250, 251, 0.80);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    min-height: 320px;
    padding: 12px;
}

.tx-pipeline-column.is-dragging-over {
    border-color: var(--primary);
    background: rgba(0, 102, 255, 0.04);
}

.tx-pipeline-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
}

.tx-pipeline-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tx-pipeline-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    cursor: grab;
    box-shadow: var(--card-shadow);
    transition: box-shadow var(--motion-base) var(--motion-ease),
                transform var(--motion-base) var(--motion-ease);
}

.tx-pipeline-card:hover {
    box-shadow: var(--card-shadow-md);
    transform: translateY(-1px);
}

.tx-pipeline-meta,
.tx-pipeline-empty {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
}

.tx-candidate-card,
.tx-notification-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-sm);
    background: var(--card-bg);
    margin-bottom: 12px;
    transition: box-shadow var(--motion-base) var(--motion-ease),
                transform var(--motion-base) var(--motion-ease);
}

.tx-candidate-card:hover,
.tx-notification-item:hover {
    box-shadow: var(--card-shadow-md);
    transform: translateY(-1px);
}

.tx-notification-item-unread {
    border-color: rgba(0, 102, 255, 0.22);
    background: rgba(230, 242, 255, 0.45);
}

.tx-candidate-skills {
    margin-top: 8px;
    color: var(--gray-700);
}

.tx-stats-grid-compact {
    margin-bottom: 20px;
}

.tx-stat-card-compact {
    margin-bottom: 0;
    padding: 20px;
}

.tx-card-plain {
    box-shadow: none;
}

.tx-bar-row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) 50px;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.tx-bar-track {
    background: var(--gray-200);
    border-radius: 999px;
    height: 12px;
    overflow: hidden;
}

.tx-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), #38bdf8);
}

.tx-bar-label,
.tx-bar-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
}

.tx-profile-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 860px) {
    .tx-sidebar {
        position: relative;
        top: 0;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }

    .tx-dashboard-wrapper {
        grid-template-columns: 1fr;
    }

    .tx-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .tx-header {
        padding: 0 16px;
    }
    
    .tx-content {
        padding: 16px;
    }
    
    .tx-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .tx-search-input {
        width: 200px;
    }
    
    .tx-grid-2col {
        grid-template-columns: 1fr;
    }
    
    .tx-grid-2up,
    .tx-grid-filters {
        grid-template-columns: 1fr;
    }

    .tx-pipeline-board {
        grid-template-columns: 1fr;
    }

    .tx-candidate-card,
    .tx-notification-item,
    .tx-bulk-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .tx-bar-row {
        grid-template-columns: 1fr;
    }
}

/* Mobile breakpoints for small screens */
@media (max-width: 480px) {
    .tx-sidebar {
        width: 100%;
    }
    
    .tx-main {
        width: 100%;
    }
    
    .tx-header {
        padding: 0 12px;
    }
    
    .tx-content {
        padding: 12px;
    }
    
    .tx-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .tx-grid-2col {
        gap: 16px;
    }
    
    .tx-search-input {
        width: 150px;
    }
    
    .tx-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .tx-modal-content {
        width: 95%;
        margin: 20px auto;
        max-height: 90vh;
        overflow-y: auto;
    }
}

@media (max-width: 782px) {
    body.admin-bar .tx-dashboard {
        --tx-admin-bar-offset: 46px;
    }
}

@media (max-width: 375px) {
    .tx-header-title h1 {
        font-size: 18px;
    }
    
    .tx-stat-card {
        padding: 12px;
    }
    
    .tx-stat-value {
        font-size: 24px;
    }
    
    .tx-search-input {
        width: 120px;
    }
    
    .tx-user-actions {
        gap: 8px;
    }
    
    .tx-btn-icon {
        width: 36px;
        height: 36px;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.tx-mt-1 { margin-top: 8px; }
.tx-mt-2 { margin-top: 16px; }
.tx-mt-3 { margin-top: 24px; }
.tx-mt-4 { margin-top: 32px; }

.tx-mb-1 { margin-bottom: 8px; }
.tx-mb-2 { margin-bottom: 16px; }
.tx-mb-3 { margin-bottom: 24px; }
.tx-mb-4 { margin-bottom: 32px; }

.tx-text-center { text-align: center; }
.tx-text-right { text-align: right; }

.tx-flex { display: flex; }
.tx-flex-between { display: flex; justify-content: space-between; }
.tx-flex-center { display: flex; align-items: center; justify-content: center; }
.tx-gap-2 { gap: 16px; }
.tx-ml-1 { margin-left: 8px; }

/* ============================================
   LOADING SPINNER
   ============================================ */
.tx-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

/* ============================================
   TOGGLE SWITCH (Open to Work / Hiring)
   ============================================ */
.tx-toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border: 2px solid var(--gray-200);
    transition: var(--transition);
}

.tx-toggle-container.active {
    background: var(--primary-light);
    border-color: var(--primary);
}

.tx-toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
    background: var(--gray-300);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.tx-toggle-switch.active {
    background: var(--primary);
}

.tx-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.tx-toggle-switch.active .tx-toggle-slider {
    transform: translateX(24px);
}

.tx-toggle-label {
    flex: 1;
}

.tx-toggle-title {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.tx-toggle-description {
    font-size: 13px;
    color: var(--gray-600);
}

.tx-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.tx-status-badge.tx-status-pending { background: #FEF3C7; color: #92400E; }
.tx-status-badge.tx-status-selected,
.tx-status-badge.tx-status-active { background: #D1FAE5; color: #065F46; }
.tx-status-badge.tx-status-rejected,
.tx-status-badge.tx-status-suspended { background: #FEE2E2; color: #991B1B; }
.tx-status-badge.tx-status-under_review,
.tx-status-badge.tx-status-shortlisted { background: #DBEAFE; color: #1E40AF; }

/* ATS pipeline statuses — previously unstyled */
.tx-status-badge.tx-status-applied { background: #EDE9FE; color: #5B21B6; }
.tx-status-badge.tx-status-screening { background: #FEF9C3; color: #713F12; }
.tx-status-badge.tx-status-interview-scheduled { background: #CFFAFE; color: #155E75; }
.tx-status-badge.tx-status-interview_scheduled { background: #CFFAFE; color: #155E75; }
.tx-status-badge.tx-status-interviewed { background: #E0F2FE; color: #0C4A6E; }
.tx-status-badge.tx-status-offered { background: #FEF3C7; color: #78350F; }
.tx-status-badge.tx-status-accepted { background: #DCFCE7; color: #14532D; }
.tx-status-badge.tx-status-on_hold { background: #FEF3C7; color: #92400E; }
.tx-status-badge.tx-status-hired { background: #D1FAE5; color: #065F46; }
.tx-status-badge.tx-status-withdrawn { background: #F3F4F6; color: #374151; }
.tx-status-badge.tx-status-draft { background: #F9FAFB; color: #6B7280; border: 1px solid #E5E7EB; }

/* Toast — fully styled via JS inline styles for stacking support.
   This block provides the animation keyframe only. */
.tx-toast {
    /* All positioning and visual styles applied inline by Toast.show() */
}

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

.tx-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 9999;
}

/* When shown via JS .css('display','flex') */
.tx-modal[style*="flex"] { display: flex !important; }

.tx-modal-content {
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
}

.tx-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tx-modal-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.tx-modal-close {
    background: transparent;
    border: none;
    font-size: 22px;
    color: var(--gray-500);
    width: 32px;
    height: 32px;
    cursor: pointer;
    border-radius: 8px;
}

.tx-modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.tx-modal-body {
    padding: 24px;
}

.tx-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.tx-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tx-status-badge.open-to-work {
    background: #D1FAE5;
    color: #065F46;
}

.tx-status-badge.hiring {
    background: #DBEAFE;
    color: #1E40AF;
}

.tx-status-badge.open-for-placement {
    background: #FEF3C7;
    color: #92400E;
}

.tx-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

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

@media (prefers-reduced-motion: reduce) {
    .tx-dashboard,
    .tx-dashboard *,
    .tx-dashboard *::before,
    .tx-dashboard *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
    }

    .tx-btn:hover,
    .tx-stat-card:hover,
    .tx-widget-item:hover {
        transform: none !important;
        box-shadow: var(--shadow) !important;
    }
}

.tx-page-shell {
    padding: var(--space-3);
    max-width: 1100px;
    margin: 0 auto;
}
.tx-page-header {
    margin-bottom: var(--space-3);
}
.tx-page-subtitle {
    color: var(--gray-600);
}
.tx-page-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
}
.tx-job-title-row {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    margin-bottom: 4px;
}
.tx-applied-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: var(--text-xs);
    font-weight: 700;
    background: #d1fae5;
    color: #065f46;
}
.tx-form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
}
.tx-profile-progress-wrap {
    height: 10px;
    background: var(--gray-200);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: var(--space-2);
}
.tx-profile-progress-bar {
    height: 10px;
    background: var(--primary);
}

@media (max-width: 768px) {
    .tx-page-shell { padding: var(--space-2); }
    .tx-page-grid,
    .tx-form-grid-2 { grid-template-columns: 1fr; }
}

/* ============================================
   MISSING COMPONENTS — PHASE 3 ADDITIONS
   ============================================ */

/* Form actions row */
.tx-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
    margin-top: 8px;
    border-top: 1px solid var(--gray-100);
}

/* Table responsive wrapper */
.tx-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.tx-table-responsive .tx-table {
    min-width: 600px;
}

/* Skeleton loading */
.tx-skeleton-wrapper {
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tx-skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
    border-radius: var(--border-radius-sm);
}

.tx-skeleton-text {
    height: 16px;
    width: 60%;
}

.tx-skeleton-rect {
    height: 80px;
    width: 100%;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Error state */
.tx-error-state {
    text-align: center;
    padding: 48px 24px;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: var(--border-radius);
}

.tx-error-icon {
    font-size: 40px;
    margin-bottom: 12px;
    color: var(--danger);
}

.tx-error-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.tx-error-text {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 16px;
}

/* Application history timeline */
.tx-timeline-marker {
    position: absolute;
    left: -28px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.tx-timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.tx-timeline-status {
    font-weight: 600;
}

.tx-timeline-date {
    font-size: 12px;
    color: var(--gray-500);
}

.tx-timeline-remark {
    font-size: 13px;
    color: var(--gray-700);
    background: var(--gray-50);
    border-left: 3px solid var(--gray-300);
    padding: 8px 12px;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    margin-top: 8px;
}

.tx-timeline-empty {
    text-align: center;
    padding: 32px;
    color: var(--gray-500);
    font-size: 14px;
}

/* Stats grid — 4-column fixed for dashboards */
.tx-stats-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

/* Notification dot on header bell */
.tx-header-right .tx-notifications-btn {
    font-size: 20px;
}

/* Section panel transitions */
.tx-section-panel {
    animation: fadeIn var(--motion-base) var(--motion-ease);
}

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

/* Card hover — subtle lift */
.tx-card {
    transition: box-shadow var(--motion-base) var(--motion-ease);
}

.tx-card:hover {
    box-shadow: var(--shadow-md);
}

/* Stat card — consistent min height */
.tx-stat-card {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Widget list — consistent item height */
.tx-widget-item {
    min-height: 64px;
}

/* Nav item — active indicator */
.tx-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
}

.tx-nav-item {
    position: relative;
}

/* Form section headings */
.tx-form h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 20px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-100);
}

.tx-form h3:first-child {
    margin-top: 0;
}

/* Help text */
.tx-help-text {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
    display: block;
}

/* Inline code */
.tx-dashboard code {
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    color: var(--gray-700);
}

/* Loading indicator text */
.tx-loading-indicator:not(.is-hidden) {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-500);
    font-size: 14px;
    padding: 24px 0;
}

.tx-loading-indicator:not(.is-hidden)::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

/* Sidebar scrollbar */
.tx-sidebar::-webkit-scrollbar {
    width: 4px;
}

.tx-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.tx-sidebar::-webkit-scrollbar-thumb {
    background: var(--gray-200);
    border-radius: 2px;
}

/* Content scrollbar */
.tx-content::-webkit-scrollbar {
    height: 6px;
}

.tx-content::-webkit-scrollbar-track {
    background: var(--gray-100);
}

.tx-content::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

/* Table — clean rows, no zebra */
.tx-table tbody tr:nth-child(even) {
    background: transparent;
}

/* Responsive additions */
@media (max-width: 1024px) {
    .tx-stats-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .tx-stats-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .tx-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .tx-form-actions .tx-btn {
        width: 100%;
        justify-content: center;
    }

    .tx-table-responsive {
        border-radius: var(--border-radius-sm);
    }

    .tx-timeline {
        padding-left: 24px;
    }

    .tx-timeline-marker {
        left: -20px;
    }
}

@media (max-width: 480px) {
    .tx-stats-grid-4 {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .tx-stat-card {
        padding: 16px;
        min-height: 100px;
    }

    .tx-stat-value {
        font-size: 24px;
    }

    .tx-card-header {
        padding: 16px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .tx-card-body {
        padding: 16px;
    }

    .tx-modal-content {
        border-radius: var(--border-radius);
        max-height: 95vh;
    }

    .tx-modal-body {
        padding: 16px;
    }
}

/* Made with Bob */

/* ============================================
   DESIGN SYSTEM POLISH — SPRINT ADDITIONS
   ============================================ */

/* Quick-link cards on dashboard home */
.tx-quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.tx-quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--gray-900);
    transition: var(--transition);
    cursor: pointer;
}

.tx-quick-link:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.tx-quick-link-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-sm);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: var(--transition);
}

.tx-quick-link:hover .tx-quick-link-icon {
    background: var(--primary);
    color: #fff;
}

.tx-quick-link-text strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.tx-quick-link-text span {
    font-size: 12px;
    color: var(--gray-500);
}

.tx-quick-link:hover .tx-quick-link-text span {
    color: var(--primary);
}

/* Stat card — unified structure */
.tx-stat-card .tx-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

/* Section header with action */
.tx-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}

.tx-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
}

/* Relationship / partnership list items */
.tx-partner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    background: #fff;
    margin-bottom: 8px;
}

.tx-partner-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-900);
}

.tx-partner-meta {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 2px;
}

/* Inline form for calendar create */
.tx-inline-form {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.tx-inline-form-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-200);
}

/* Upcoming events list */
.tx-event-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tx-event-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    background: #fff;
    transition: var(--transition);
}

.tx-event-item:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-sm);
}

.tx-event-accent {
    width: 4px;
    height: 36px;
    border-radius: 2px;
    background: var(--primary);
    flex-shrink: 0;
}

.tx-event-info { flex: 1; min-width: 0; }
.tx-event-title { font-size: 13px; font-weight: 600; color: var(--gray-900); }
.tx-event-time { font-size: 11px; color: var(--gray-500); margin-top: 2px; }

/* Placement calendar section heading */
.tx-subsection-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-700);
    margin: 20px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-100);
}

/* Recruiter relationship request form */
.tx-request-form {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.tx-request-form .tx-form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Empty state for sections */
.tx-section-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-500);
}

.tx-section-empty-icon {
    font-size: 36px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.tx-section-empty-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.tx-section-empty-text {
    font-size: 13px;
    color: var(--gray-400);
    max-width: 320px;
    margin: 0 auto 16px;
}

/* Responsive quick links */
@media (max-width: 480px) {
    .tx-quick-links {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   PLACEMENT CALENDAR — PREMIUM REDESIGN
   Modern SaaS calendar for TPO operations
   ============================================================ */

/* ---- Outer wrapper ---- */
.txc-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

/* ---- Toolbar ---- */
.txc-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.txc-nav { display: flex; align-items: center; gap: 6px; }
.txc-nav-btn {
    width: 34px; height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .18s;
    backdrop-filter: blur(4px);
}
.txc-nav-btn:hover { background: rgba(255,255,255,0.28); border-color: rgba(255,255,255,0.4); transform: scale(1.05); }
.txc-month-label {
    font-size: 18px; font-weight: 700;
    color: #fff;
    min-width: 180px; text-align: center;
    letter-spacing: -0.3px;
}
.txc-toolbar-right { display: flex; align-items: center; gap: 10px; }
.txc-today-btn {
    font-size: 12px; font-weight: 600;
    padding: 7px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
    transition: all .18s;
    backdrop-filter: blur(4px);
}
.txc-today-btn:hover { background: rgba(255,255,255,0.28); }

/* ---- Add Event button ---- */
.txc-add-btn {
    font-size: 13px; font-weight: 700;
    padding: 8px 18px;
    border-radius: 8px;
    border: none;
    background: #fff;
    color: #667eea;
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex; align-items: center; gap: 6px;
}
.txc-add-btn:hover { background: #f0f4ff; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.18); }

/* ---- Legend ---- */
.txc-legend {
    display: flex; flex-wrap: wrap; gap: 16px;
    padding: 12px 24px;
    background: #f8f9ff;
    border-bottom: 1px solid #e8eaf6;
}
.txc-legend-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #5c6bc0; font-weight: 600; letter-spacing: 0.2px; }
.txc-legend-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }

/* ---- Grid wrapper ---- */
.txc-grid-wrap { padding: 16px 20px 12px; background: #fafbff; }

/* ---- Weekday headers ---- */
.txc-weekdays {
    display: grid; grid-template-columns: repeat(7, 1fr);
    margin-bottom: 8px;
    gap: 3px;
}
.txc-weekday {
    text-align: center;
    font-size: 11px; font-weight: 700;
    color: #7986cb;
    padding: 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ---- Calendar grid ---- */
.txc-grid {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    min-height: 300px;
    position: relative;
}
.txc-grid.is-loading { opacity: 0.5; pointer-events: none; }
.txc-grid.is-loading::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(248,249,255,0.8);
    border-radius: 10px;
    z-index: 1;
}

/* ---- Day cells ---- */
.txc-day {
    min-height: 88px;
    border-radius: 10px;
    border: 1.5px solid #eef0f8;
    padding: 8px 7px 6px;
    cursor: default;
    transition: all .18s;
    background: #fff;
    overflow: hidden;
    position: relative;
}
.txc-day-blank {
    background: transparent;
    border-color: transparent;
    cursor: default;
}
.txc-day-has-events {
    cursor: pointer;
    border-color: #e3e6f5;
}
.txc-day-has-events:hover {
    background: #f0f4ff;
    border-color: #c5cae9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.12);
}
.txc-day-today {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f4ff 100%) !important;
    border-color: #667eea !important;
    border-width: 2px !important;
    box-shadow: 0 2px 8px rgba(102,126,234,0.15);
}
.txc-day-today .txc-day-num {
    color: #667eea;
    font-weight: 800;
    background: #667eea;
    color: #fff;
    width: 22px; height: 22px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
}
.txc-day-num {
    font-size: 12px; font-weight: 600;
    color: #3c4a6b;
    margin-bottom: 5px;
    line-height: 1;
}
.txc-day-blank .txc-day-num { color: #c5cae9; }
.txc-day-chips { display: flex; flex-direction: column; gap: 3px; }
.txc-event-chip {
    font-size: 10px; font-weight: 600;
    color: #fff;
    padding: 3px 6px;
    border-radius: 5px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    cursor: pointer;
    transition: all .15s;
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.txc-event-chip:hover { opacity: 0.88; transform: translateX(1px); }
.txc-event-more {
    font-size: 10px; font-weight: 700;
    color: #7986cb;
    padding: 2px 4px;
    background: #eef0f8;
    border-radius: 4px;
    display: inline-block;
    margin-top: 1px;
}

/* ---- Upcoming events section ---- */
.txc-upcoming {
    padding: 20px 24px 24px;
    border-top: 2px solid #eef0f8;
    background: #fafbff;
}
.txc-upcoming-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.txc-upcoming-title {
    font-size: 13px; font-weight: 700;
    color: #3c4a6b;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.txc-upcoming-count {
    font-size: 11px; font-weight: 700;
    color: #fff;
    background: #667eea;
    padding: 2px 8px;
    border-radius: 20px;
}
.txc-upcoming-empty {
    font-size: 13px; color: #9fa8da;
    padding: 16px 0;
    text-align: center;
}
.txc-upcoming-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid #eef0f8;
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all .18s;
    background: #fff;
}
.txc-upcoming-item:hover {
    background: #f0f4ff;
    border-color: #c5cae9;
    transform: translateX(3px);
    box-shadow: 0 3px 10px rgba(102,126,234,0.1);
}
.txc-upcoming-accent { width: 4px; height: 40px; border-radius: 3px; flex-shrink: 0; }
.txc-upcoming-info { flex: 1; min-width: 0; }
.txc-upcoming-name {
    font-size: 13px; font-weight: 600;
    color: #2d3561;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.txc-upcoming-meta { font-size: 11px; color: #9fa8da; margin-top: 3px; }
.txc-upcoming-badge {
    font-size: 10px; font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap; flex-shrink: 0;
    letter-spacing: 0.2px;
}

/* ---- Detail slide-in panel ---- */
.txc-panel-overlay {
    position: fixed; inset: 0;
    background: rgba(15,23,42,0.5);
    z-index: 9999;
    display: flex; align-items: stretch; justify-content: flex-end;
}
.txc-panel {
    width: 100%; max-width: 440px;
    background: #fff;
    box-shadow: -12px 0 40px rgba(0,0,0,0.15);
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform .25s cubic-bezier(.2,0,0,1);
    overflow-y: auto;
}
.txc-panel.is-open { transform: translateX(0); }
.txc-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 22px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: sticky; top: 0; z-index: 1;
}
.txc-panel-title { font-size: 15px; font-weight: 700; color: #fff; }
.txc-panel-close {
    width: 32px; height: 32px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
    color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.txc-panel-close:hover { background: rgba(255,255,255,0.28); }
.txc-panel-body { padding: 0; flex: 1; }

/* ---- Event detail inside panel ---- */
.txc-ev-header {
    padding: 22px 22px 18px;
    border-bottom: 1px solid #eef0f8;
    background: #fafbff;
}
.txc-ev-type-badge {
    display: inline-block;
    font-size: 10px; font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.txc-ev-title {
    font-size: 20px; font-weight: 700;
    color: #2d3561;
    line-height: 1.3;
    margin: 0 0 10px;
}
.txc-ev-status-pill {
    display: inline-block;
    font-size: 10px; font-weight: 700;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}
.txc-ev-body {
    padding: 18px 22px;
    display: flex; flex-direction: column;
    gap: 14px;
}
.txc-ev-row {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 12px 14px;
    background: #f8f9ff;
    border-radius: 8px;
    border: 1px solid #eef0f8;
}
.txc-ev-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.txc-ev-row-label {
    font-size: 10px; font-weight: 700;
    color: #9fa8da;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}
.txc-ev-row-val { font-size: 14px; color: #2d3561; font-weight: 600; }
.txc-ev-desc {
    background: #f0f4ff;
    border: 1px solid #c5cae9;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px; color: #3c4a6b;
    line-height: 1.7;
}

/* ---- Day panel list ---- */
.txc-day-panel-date {
    font-size: 16px; font-weight: 700;
    color: #2d3561;
    padding: 20px 22px 14px;
    border-bottom: 1px solid #eef0f8;
    background: #fafbff;
}
.txc-day-panel-list { padding: 14px 22px; display: flex; flex-direction: column; gap: 10px; }
.txc-day-panel-item {
    padding: 14px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all .15s;
    border-left-width: 4px !important;
}
.txc-day-panel-item:hover { opacity: 0.88; transform: translateX(2px); }
.txc-dpi-title { font-size: 14px; font-weight: 600; color: #2d3561; }
.txc-dpi-time { font-size: 12px; color: #7986cb; margin-top: 4px; font-weight: 500; }

/* ---- College action buttons in panel ---- */
.txc-ev-actions {
    display: flex; gap: 8px; flex-wrap: wrap;
    padding: 16px 22px 22px;
    border-top: 1px solid #eef0f8;
    background: #fafbff;
}
.txc-ev-edit-btn, .txc-ev-notify-btn, .txc-ev-delete-btn {
    flex: 1; min-width: 90px;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1.5px solid #e3e6f5;
    background: #fff;
    font-size: 12px; font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
    text-align: center;
}
.txc-ev-edit-btn { color: #3f51b5; }
.txc-ev-edit-btn:hover { background: #e8eaf6; border-color: #9fa8da; }
.txc-ev-notify-btn { color: #7c3aed; }
.txc-ev-notify-btn:hover { background: #f5f3ff; border-color: #c4b5fd; }
.txc-ev-delete-btn { color: #e53935; }
.txc-ev-delete-btn:hover { background: #ffebee; border-color: #ef9a9a; }

/* ---- Add/Edit Event modal ---- */
.txc-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(15,23,42,0.55);
    z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.txc-modal-box {
    background: #fff;
    border-radius: 16px;
    width: 100%; max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0,0,0,0.2);
    animation: txcModalIn .22s cubic-bezier(.2,0,0,1);
}
@keyframes txcModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.txc-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px 16px 0 0;
    position: sticky; top: 0; z-index: 1;
}
.txc-modal-title { font-size: 16px; font-weight: 700; color: #fff; }
.txc-modal-close {
    width: 32px; height: 32px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
    color: #fff; cursor: pointer; font-size: 20px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.txc-modal-close:hover { background: rgba(255,255,255,0.28); }
.txc-modal-body { padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; }
.txc-modal-footer {
    display: flex; justify-content: flex-end; gap: 10px;
    padding: 16px 24px 20px;
    border-top: 1px solid #eef0f8;
    background: #fafbff;
    border-radius: 0 0 16px 16px;
    position: sticky; bottom: 0;
}

/* ---- Form elements inside modal ---- */
.txc-form-row { display: flex; flex-direction: column; gap: 6px; }
.txc-form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.txc-form-label {
    font-size: 11px; font-weight: 700;
    color: #5c6bc0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.txc-form-input {
    width: 100%; padding: 10px 13px;
    border: 1.5px solid #e3e6f5;
    border-radius: 9px;
    font-size: 13px; color: #2d3561;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}
.txc-form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.12);
}
textarea.txc-form-input { resize: vertical; min-height: 80px; }

/* ---- Modal buttons ---- */
.txc-btn-primary {
    padding: 10px 22px; border-radius: 9px; border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff; font-size: 13px; font-weight: 700; cursor: pointer;
    transition: all .18s;
    box-shadow: 0 3px 10px rgba(102,126,234,0.3);
}
.txc-btn-primary:hover { opacity: 0.92; transform: translateY(-1px); box-shadow: 0 5px 16px rgba(102,126,234,0.4); }
.txc-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.txc-btn-ghost {
    padding: 10px 22px; border-radius: 9px;
    border: 1.5px solid #e3e6f5; background: #fff;
    color: #5c6bc0; font-size: 13px; font-weight: 600; cursor: pointer;
    transition: all .15s;
}
.txc-btn-ghost:hover { background: #f0f4ff; border-color: #c5cae9; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .txc-panel { max-width: 100%; }
    .txc-day { min-height: 60px; }
    .txc-event-chip { font-size: 9px; padding: 2px 4px; }
    .txc-toolbar { padding: 14px 16px 12px; }
    .txc-month-label { font-size: 15px; min-width: 140px; }
    .txc-legend { padding: 10px 16px; gap: 10px; }
    .txc-grid-wrap { padding: 10px 10px 8px; }
    .txc-upcoming { padding: 14px 16px 18px; }
    .txc-form-row-2 { grid-template-columns: 1fr; }
    .txc-modal-box { max-width: 100%; border-radius: 12px; }
    .txc-ev-actions { flex-direction: column; }
    .txc-ev-edit-btn, .txc-ev-notify-btn, .txc-ev-delete-btn { flex: none; width: 100%; }
}
/* ============================================
   DATE/TIME PICKER — hardcoded values, no CSS variable dependencies
   Renders correctly in both dashboard and WP admin contexts
   ============================================ */
.tx-dtp-layer {
    position: fixed;
    inset: 0;
    z-index: 100000;
    pointer-events: none;
}

.tx-dtp-layer .tx-dtp-card,
.tx-dtp-layer .tx-dtp-backdrop {
    pointer-events: all;
}

.tx-dtp-layer.is-popover .tx-dtp-backdrop {
    background: transparent;
}

.tx-dtp-layer.is-modal .tx-dtp-backdrop {
    background: rgba(15, 23, 42, 0.5);
}

.tx-dtp-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100000;
}

.tx-dtp-card {
    position: fixed;
    width: 316px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.07);
    padding: 12px;
    z-index: 100001;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

.tx-dtp-card * { box-sizing: border-box; }

.tx-dtp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 4px 8px;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 6px;
}

.tx-dtp-title {
    font-weight: 700;
    font-size: 14px;
    color: #111827;
    flex: 1;
    text-align: center;
}

.tx-dtp-nav {
    width: 30px !important;
    height: 30px !important;
    min-height: 0 !important;
    border-radius: 8px !important;
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    color: #374151 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px;
    line-height: 1;
    padding: 0 !important;
    box-shadow: none !important;
    outline: none;
    flex-shrink: 0;
    text-shadow: none !important;
}

.tx-dtp-nav:hover {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
    color: #111827 !important;
    box-shadow: none !important;
}

.tx-dtp-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 0 2px;
    margin-bottom: 4px;
}

.tx-dtp-weekday {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-align: center;
    padding: 3px 0;
}

.tx-dtp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 0 2px;
}

.tx-dtp-day {
    height: 36px !important;
    min-height: 0 !important;
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-shadow: none !important;
    outline: none;
    width: 100%;
    text-shadow: none !important;
    transition: background 100ms ease, color 100ms ease;
}

.tx-dtp-day:hover:not(.is-muted):not(.is-selected) {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border-color: transparent !important;
}

.tx-dtp-day.is-muted {
    cursor: default;
    color: transparent !important;
    background: transparent !important;
    pointer-events: none;
}

.tx-dtp-day.is-today:not(.is-selected) {
    border-color: #0066ff !important;
    color: #0066ff !important;
    font-weight: 700 !important;
    background: transparent !important;
}

.tx-dtp-day.is-selected {
    background: #0066ff !important;
    border-color: #0066ff !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

.tx-dtp-time {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 8px 2px 4px;
    padding: 9px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
}

.tx-dtp-time-label {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
}

.tx-dtp-time-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tx-dtp-select {
    height: 32px !important;
    border-radius: 8px !important;
    border: 1px solid #e5e7eb !important;
    padding: 0 8px !important;
    font-weight: 600;
    font-size: 13px;
    background: #ffffff !important;
    color: #111827 !important;
    box-shadow: none !important;
    outline: none;
}

.tx-dtp-time-sep {
    font-weight: 800;
    color: #6b7280;
    font-size: 14px;
}

.tx-dtp-footer {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 2px 2px;
    margin-top: 6px;
    border-top: 1px solid #f3f4f6;
}

.tx-dtp-btn {
    flex: 1;
    height: 36px !important;
    min-height: 0 !important;
    border-radius: 8px !important;
    border: 1px solid #e5e7eb !important;
    background: #ffffff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer;
    color: #374151 !important;
    box-shadow: none !important;
    outline: none;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-shadow: none !important;
    transition: background 100ms ease;
}

.tx-dtp-btn:hover {
    background: #f9fafb !important;
}

.tx-dtp-btn-primary {
    background: #0066ff !important;
    border-color: #0066ff !important;
    color: #ffffff !important;
}

.tx-dtp-btn-primary:hover {
    background: #0052cc !important;
    border-color: #0052cc !important;
    color: #ffffff !important;
}

@media (max-width: 520px) {
    .tx-dtp-card {
        position: fixed !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: calc(100% - 32px) !important;
        max-width: 360px;
    }
}

/* ============================================
   VISUAL CONSISTENCY SPRINT — FINAL POLISH
   ============================================ */

/* ------------------------------------------
   1. BUTTON SYSTEM — complete hover/active/focus
   ------------------------------------------ */

/* Primary — lift on hover */
.tx-btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}
.tx-btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Danger — consistent with admin.css */
.tx-btn-danger:hover {
    background: #B91C1C;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}
.tx-btn-danger:active:not(:disabled) {
    transform: translateY(0);
}

/* Success */
.tx-btn-success:hover {
    background: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

/* Secondary */
.tx-btn-secondary:hover {
    background: var(--gray-300);
    color: var(--gray-800);
    text-decoration: none;
}

/* Ensure border on outline/ghost buttons is always 1px */
.tx-btn-outline { border-width: 1px; border-style: solid; }
.tx-btn-ghost   { border-width: 1px; border-style: solid; }

/* Consistent border-radius across all sizes */
.tx-btn,
.tx-btn-sm,
.tx-btn-lg { border-radius: var(--border-radius-sm); }

/* Danger outline variant */
.tx-btn-outline-danger {
    background: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
}
.tx-btn-outline-danger:hover {
    background: #FEF2F2;
    border-color: #B91C1C;
    color: #B91C1C;
}

/* ------------------------------------------
   2. MODAL — narrow confirm dialogs
   ------------------------------------------ */

/* Confirm/destructive modals should be narrower than content modals */
.tx-modal-content.tx-modal-sm {
    max-width: 440px;
}

/* Default modal — cap at 560px for most dialogs */
.tx-modal-content {
    max-width: 560px;
}

/* Wide modals (candidate profile, job post) */
.tx-modal-content.tx-modal-lg {
    max-width: 760px;
}

/* Modal footer — single spacing source */
.tx-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--gray-100);
    margin-top: 0; /* remove double spacing */
}

/* Modal body — consistent padding */
.tx-modal-body {
    padding: 20px 24px;
}

/* ------------------------------------------
   3. STATUS BADGE — remove unused gap
   ------------------------------------------ */
.tx-status-badge {
    gap: 0; /* no icon inside badge — gap was wasted space */
    padding: 4px 10px; /* tighter than 6px 12px — more refined */
    border-radius: 999px; /* pill shape — consistent with admin */
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* ------------------------------------------
   4. EMPTY STATE — stronger icon circle
   ------------------------------------------ */
.tx-empty-state {
    padding: 48px 24px;
}

.tx-empty-icon {
    width: 72px;
    height: 72px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    font-size: 32px;
    margin-bottom: 16px;
}

.tx-empty-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.tx-empty-text {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 20px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

/* ------------------------------------------
   5. PIPELINE BOARD — column tints only (grid defined above)
   ------------------------------------------ */

/* On Hold column — amber tint to signal pause state */
.tx-pipeline-column[data-drop-status="on_hold"] {
    background: #fffbeb;
    border-color: #fde68a;
}

/* Rejected column — subtle red tint */
.tx-pipeline-column[data-drop-status="rejected"] {
    background: #fff5f5;
    border-color: #fecaca;
}

/* Hired column — subtle green tint */
.tx-pipeline-column[data-drop-status="selected"] {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

/* ------------------------------------------
   6. TIMELINE — fix dot positioning
   ------------------------------------------ */
.tx-timeline-item {
    position: relative; /* required for absolute dot */
}

/* ------------------------------------------
   7. CARD — consistent header/body/footer
   ------------------------------------------ */
.tx-card-header {
    padding: 18px 24px;
}

.tx-card-body {
    padding: 20px 24px;
}

.tx-card-footer {
    padding: 14px 24px;
}

/* ------------------------------------------
   8. TYPOGRAPHY — consistent hierarchy
   ------------------------------------------ */

/* Section headings inside content area */
.tx-content h2,
.tx-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
}

/* Card titles */
.tx-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
}

/* Table subtext */
.tx-table-subtext {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 2px;
    line-height: 1.4;
}

/* Form labels */
.tx-form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

/* ------------------------------------------
   9. NOTIFICATION ITEMS — consistent spacing
   ------------------------------------------ */
.tx-notification-item {
    padding: 14px 16px;
    gap: 12px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 8px;
    align-items: flex-start;
}

.tx-notification-item h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 3px;
}

.tx-notification-item p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
}

.tx-notification-item-unread {
    border-color: #bfdbfe;
    background: #f0f7ff;
}

/* ------------------------------------------
   10. RESPONSIVE — toast top-right on mobile
   ------------------------------------------ */
@media (max-width: 480px) {
    /* Toasts go full-width on small screens */
    .tx-toast {
        right: 12px !important;
        left: 12px !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}

/* ============================================
   JOB CARD — UNIFIED PREMIUM DESIGN
   Single canonical definition used everywhere:
   dashboard jobs, college browse-jobs, public jobs page.
   ============================================ */

/* Applied badge */
.tx-applied-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

/* ============================================
   JOB DETAIL MODAL — TWO-COLUMN LAYOUT
   ============================================ */

.tx-job-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

.tx-job-detail-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.tx-job-detail-sidebar {
    position: sticky;
    top: 0;
}

/* Section headings inside job detail */
.tx-job-detail-main .tx-jd-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.tx-job-detail-main .tx-jd-section-body {
    font-size: 14px;
    color: #374151;
    line-height: 1.8;
    white-space: pre-wrap;
}

/* Sidebar card */
.tx-job-detail-sidebar-card {
    background: #fafbfc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Sidebar section label */
.tx-jd-sidebar-label {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

/* Rating cards */
.tx-jd-rating-card {
    flex: 1;
    min-width: 120px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}

.tx-jd-rating-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Social link buttons */
.tx-jd-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    padding: 4px 0;
    transition: color var(--motion-fast) var(--motion-ease);
}

.tx-jd-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE — JOB CARD + DETAIL
   ============================================ */

@media (max-width: 640px) {
    .tx-job-detail-layout {
        grid-template-columns: 1fr;
    }

    .tx-job-detail-sidebar {
        position: static;
    }
}

/* ============================================
   PROFESSIONAL JOB CARDS (Unified Design)
   ============================================ */

/* Grid wrapper for Browse Jobs in college panel and any role using renderJobCardForRole */
.tx-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.tx-job-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
    position: relative;
    border-top: 3px solid transparent;
    /* No margin-bottom — grid gap handles spacing */
}

.tx-job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    border-top-color: #667eea;
}

.tx-job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.tx-company-logo-sm {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.tx-job-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.tx-job-badge.new {
    background: #dbeafe;
    color: #1e40af;
}

/* Recruiter job status badges */
.tx-job-badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.tx-job-badge-active {
    background: #d1fae5;
    color: #065f46;
}

.tx-job-badge-closed {
    background: #f3f4f6;
    color: #6b7280;
}

.tx-job-badge-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.tx-job-badge-draft {
    background: #f3f4f6;
    color: #6b7280;
}

.tx-job-badge-default {
    background: #f3f4f6;
    color: #374151;
}

/* Delete button variant on job cards */
.tx-job-actions .tx-btn-danger {
    color: #dc2626;
    border-color: #fca5a5;
}

.tx-job-actions .tx-btn-danger:hover {
    background: #fee2e2;
    border-color: #dc2626;
}

.tx-job-title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 8px 0 4px 0;
    line-height: 1.3;
}

.tx-job-company {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.tx-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0;
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.tx-job-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #6b7280;
}

.tx-job-desc {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tx-job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.tx-job-tag {
    padding: 3px 8px;
    background: #f3f4f6;
    color: #374151;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.tx-job-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.tx-btn-view {
    flex: 1;
    padding: 8px 14px;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tx-btn-view:hover {
    background: #e5e7eb;
}

.tx-btn-apply {
    flex: 1;
    padding: 8px 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tx-btn-apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.35);
}

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

/* Grid layout for job cards */
#jobs-list,
#tx-public-jobs-list,
#tx-available-jobs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #jobs-list,
    #tx-public-jobs-list,
    #tx-available-jobs {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PLACEMENT CALENDAR — COLLEGE EDIT EXTENSIONS
   Add Event button, modal form, action buttons
   ============================================ */

/* Toolbar right group */
.txc-toolbar-right { display: flex; align-items: center; gap: 8px; }

/* Add Event button */
.txc-add-btn {
    font-size: 13px; font-weight: 600;
    padding: 7px 16px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
}
.txc-add-btn:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(102,126,234,.35); }

/* Event action buttons inside detail panel */
.txc-ev-actions {
    display: flex; gap: 8px; flex-wrap: wrap;
    padding: 16px 20px 20px;
    border-top: 1px solid var(--gray-100);
}
.txc-ev-edit-btn, .txc-ev-notify-btn, .txc-ev-delete-btn {
    flex: 1; min-width: 100px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    background: #fff;
    font-size: 12px; font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}
.txc-ev-edit-btn { color: #2563eb; }
.txc-ev-edit-btn:hover { background: #eff6ff; border-color: #bfdbfe; }
.txc-ev-notify-btn { color: #7c3aed; }
.txc-ev-notify-btn:hover { background: #f5f3ff; border-color: #ddd6fe; }
.txc-ev-delete-btn { color: #dc2626; }
.txc-ev-delete-btn:hover { background: #fef2f2; border-color: #fecaca; }

/* Calendar event modal overlay */
.txc-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(15,23,42,.5);
    z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.txc-modal-box {
    background: #fff;
    border-radius: 14px;
    width: 100%; max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 48px rgba(0,0,0,.18);
    animation: txcModalIn .2s ease-out;
}
@keyframes txcModalIn { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
.txc-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--gray-200);
    position: sticky; top: 0; background: #fff; z-index: 1;
}
.txc-modal-title { font-size: 16px; font-weight: 700; color: var(--gray-900); }
.txc-modal-close {
    width: 32px; height: 32px; border-radius: 8px;
    border: 1px solid var(--gray-200); background: #fff;
    color: var(--gray-500); cursor: pointer; font-size: 20px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.txc-modal-close:hover { background: var(--gray-100); color: var(--gray-900); }
.txc-modal-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.txc-modal-footer {
    display: flex; justify-content: flex-end; gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--gray-100);
    position: sticky; bottom: 0; background: #fff;
}

/* Form rows inside modal */
.txc-form-row { display: flex; flex-direction: column; gap: 5px; }
.txc-form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.txc-form-label { font-size: 12px; font-weight: 600; color: var(--gray-700); text-transform: uppercase; letter-spacing: .3px; }
.txc-form-input {
    width: 100%; padding: 9px 12px;
    border: 1px solid var(--gray-300); border-radius: 8px;
    font-size: 13px; color: var(--gray-900);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}
.txc-form-input:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102,126,234,.1); }
textarea.txc-form-input { resize: vertical; min-height: 72px; }

/* Modal action buttons */
.txc-btn-primary {
    padding: 9px 20px; border-radius: 8px; border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
    transition: all .18s;
}
.txc-btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.txc-btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.txc-btn-ghost {
    padding: 9px 20px; border-radius: 8px;
    border: 1px solid var(--gray-200); background: #fff;
    color: var(--gray-700); font-size: 13px; font-weight: 600; cursor: pointer;
    transition: all .15s;
}
.txc-btn-ghost:hover { background: var(--gray-100); }

@media (max-width: 540px) {
    .txc-form-row-2 { grid-template-columns: 1fr; }
    .txc-modal-box { max-width: 100%; }
    .txc-ev-actions { flex-direction: column; }
    .txc-ev-edit-btn, .txc-ev-notify-btn, .txc-ev-delete-btn { flex: none; width: 100%; }
}


/* ============================================================
   CALENDAR COMMUNICATION HUB — NEW UI ELEMENTS
   ============================================================ */

/* Communicate button in toolbar */
.txc-comm-btn {
    font-size: 12px; font-weight: 600;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
    transition: all .18s;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}
.txc-comm-btn:hover { background: rgba(255,255,255,0.28); }

/* Send to Students button in event panel */
.txc-ev-send-btn {
    flex: 1; min-width: 90px;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1.5px solid #e3e6f5;
    background: #fff;
    font-size: 12px; font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
    text-align: center;
    color: #0369a1;
}
.txc-ev-send-btn:hover { background: #e0f2fe; border-color: #7dd3fc; }

/* Radio label groups */
.txc-delivery-opts, .txc-recipient-opts {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-top: 6px;
}
.txc-radio-label {
    display: flex; align-items: center; gap: 7px;
    font-size: 13px; color: #3c4a6b; font-weight: 500;
    cursor: pointer;
    padding: 7px 14px;
    border: 1.5px solid #e3e6f5;
    border-radius: 8px;
    background: #fff;
    transition: all .15s;
}
.txc-radio-label:hover { border-color: #c5cae9; background: #f0f4ff; }
.txc-radio-label input[type="radio"] { accent-color: #667eea; }

/* Student search row */
.txc-student-search-row {
    display: flex; gap: 8px; align-items: center;
    margin-bottom: 10px;
}
.txc-student-search-row .txc-form-input { flex: 1; }

/* Student list */
.txc-student-list {
    max-height: 240px;
    overflow-y: auto;
    border: 1.5px solid #e3e6f5;
    border-radius: 10px;
    background: #fafbff;
}
.txc-student-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #eef0f8;
    cursor: pointer;
    transition: background .12s;
}
.txc-student-item:last-child { border-bottom: none; }
.txc-student-item:hover { background: #f0f4ff; }
.txc-student-item input[type="checkbox"] { accent-color: #667eea; width: 16px; height: 16px; flex-shrink: 0; }
.txc-student-info { flex: 1; min-width: 0; }
.txc-student-name { font-size: 13px; font-weight: 600; color: #2d3561; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txc-student-meta { font-size: 11px; color: #9fa8da; margin-top: 2px; }

/* Selector count badge */
#txc-selector-count, #txc-comm-count {
    font-size: 12px; color: #667eea; font-weight: 600;
}

/* ============================================================
   ATS HIRING JOURNEY TIMELINE — Premium Design
   ============================================================ */

/* Journey wrapper — used inside modal */
.tx-ats-journey-wrap {
    padding: 20px 24px 8px;
}

/* Journey container */
.tx-ats-journey {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 4px 0;
}

/* Each step */
.tx-ats-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    min-height: 52px;
}
.tx-ats-step--last { min-height: auto; }

/* Vertical connector line — runs from bottom of dot to top of next dot */
.tx-ats-connector {
    position: absolute;
    left: 15px;
    top: 34px;
    width: 2px;
    bottom: 0;
    border-radius: 1px;
    z-index: 0;
}
.tx-ats-connector--done { background: linear-gradient(180deg, #667eea 0%, #764ba2 100%); }
.tx-ats-connector--pending { background: #e5e7eb; }

/* Stage dot */
.tx-ats-dot {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    margin-top: 2px;
    transition: all .2s;
}
.tx-ats-dot--completed {
    color: #fff;
    box-shadow: 0 2px 8px rgba(102,126,234,0.25);
}
.tx-ats-dot--current {
    color: #fff;
    box-shadow: 0 3px 12px rgba(102,126,234,0.35);
    animation: txAtsPulse 2s ease-in-out infinite;
    font-size: 14px;
}
.tx-ats-dot--pending {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #d1d5db;
    font-size: 9px;
}
@keyframes txAtsPulse {
    0%, 100% { box-shadow: 0 3px 12px rgba(102,126,234,0.35); }
    50% { box-shadow: 0 3px 20px rgba(102,126,234,0.55); }
}

/* Step content */
.tx-ats-content {
    flex: 1;
    padding: 4px 0 20px 0;
    min-width: 0;
}
.tx-ats-step--last .tx-ats-content { padding-bottom: 8px; }

.tx-ats-label {
    font-size: 13px;
    font-weight: 700;
    color: #9ca3af;
    line-height: 1.4;
    margin-bottom: 1px;
    transition: color .2s;
}
.tx-ats-step--completed .tx-ats-label,
.tx-ats-step--current .tx-ats-label { color: inherit; }
.tx-ats-step--pending .tx-ats-label { color: #d1d5db; }

.tx-ats-date {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 4px;
    font-weight: 500;
}
.tx-ats-remark {
    font-size: 12px;
    color: #4b5563;
    background: #f8f9ff;
    border: 1px solid #e3e6f5;
    border-radius: 6px;
    padding: 6px 10px;
    margin-top: 5px;
    line-height: 1.5;
    max-width: 320px;
}
.tx-ats-override-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    background: #fef08a;
    color: #92400e;
    border: 1px solid #fde047;
    margin-top: 3px;
    vertical-align: middle;
}

/* Full history collapsible */
.tx-ats-history-details {
    margin: 16px 24px 20px;
    border-top: 1px solid #eef0f8;
    padding-top: 12px;
}
.tx-ats-history-details summary {
    font-size: 12px;
    font-weight: 600;
    color: #9fa8da;
    cursor: pointer;
    user-select: none;
    padding: 4px 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tx-ats-history-details summary::-webkit-details-marker { display: none; }
.tx-ats-history-details summary::before { content: '▶'; font-size: 9px; transition: transform .15s; }
.tx-ats-history-details[open] summary::before { transform: rotate(90deg); }
.tx-ats-history-list { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.tx-ats-history-row {
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
    padding: 8px 12px;
    background: #fafbff;
    border: 1px solid #eef0f8;
    border-radius: 8px;
    font-size: 12px;
}
.tx-ats-history-arrow { color: #9fa8da; font-size: 14px; flex-shrink: 0; }
.tx-ats-history-ts { margin-left: auto; color: #9ca3af; font-size: 11px; white-space: nowrap; }
.tx-ats-history-note { width: 100%; color: #6b7280; font-size: 11px; padding-top: 3px; }

/* Empty state for timeline */
.tx-ats-empty {
    padding: 32px 24px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}

/* Status badge — missing in_review alias */
.tx-status-badge.tx-status-in_review { background: #FEF9C3; color: #713F12; }

/* Recruiter Events section */
.tx-events-header-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}
.tx-event-card {
    background: #fff;
    border: 1.5px solid #eef0f8;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 10px;
    transition: all .18s;
    cursor: pointer;
}
.tx-event-card:hover {
    border-color: #c5cae9;
    box-shadow: 0 3px 12px rgba(102,126,234,0.1);
    transform: translateY(-1px);
}
.tx-event-card-header {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    margin-bottom: 8px;
}
.tx-event-card-title {
    font-size: 14px; font-weight: 700; color: #2d3561;
    flex: 1; min-width: 0;
}
.tx-event-card-badge {
    font-size: 10px; font-weight: 700;
    padding: 3px 9px; border-radius: 20px;
    white-space: nowrap; flex-shrink: 0;
}
.tx-event-card-meta {
    display: flex; flex-wrap: wrap; gap: 10px;
    font-size: 12px; color: #9fa8da;
}
.tx-event-card-meta-item { display: flex; align-items: center; gap: 4px; }
.tx-event-card-note {
    font-size: 12px; color: #6b7280;
    margin-top: 8px; padding-top: 8px;
    border-top: 1px solid #eef0f8;
    line-height: 1.5;
}
.tx-event-card-actions {
    display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap;
}

/* Recruiter event detail panel */
.tx-rev-panel-candidate {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    background: #f0f4ff;
    border: 1px solid #c5cae9;
    border-radius: 10px;
    margin-bottom: 14px;
}
.tx-rev-panel-candidate-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff; font-weight: 700; font-size: 15px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.tx-rev-panel-candidate-name { font-size: 14px; font-weight: 700; color: #2d3561; }
.tx-rev-panel-candidate-meta { font-size: 12px; color: #9fa8da; margin-top: 2px; }

/* Calendar modal body scroll fix */
.txc-modal-body {
    overflow-y: auto;
    max-height: calc(80vh - 120px);
}

@media (max-width: 640px) {
    .tx-ats-journey-wrap { padding: 14px 16px 4px; }
    .tx-ats-journey { padding: 2px 0; }
    .tx-ats-dot { width: 26px; height: 26px; font-size: 11px; }
    .tx-ats-connector { left: 12px; }
    .tx-ats-label { font-size: 12px; }
    .tx-ats-history-details { margin: 12px 16px 16px; }
}


/* ========================================================================
   RECRUITER PANEL PROFESSIONALIZATION - Phase 7
   ======================================================================== */

/* Premium Hiring Toggle */
.tx-hiring-toggle-wrapper {
    display: flex;
    align-items: center;
}

.tx-hiring-toggle {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.tx-hiring-toggle-track {
    width: 180px;
    height: 48px;
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    border-radius: 24px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.tx-hiring-toggle.active .tx-hiring-toggle-track {
    background: linear-gradient(135deg, #10b981, #059669);
}

.tx-hiring-toggle-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.tx-hiring-toggle.active .tx-hiring-toggle-thumb {
    transform: translateX(132px);
}

.tx-hiring-toggle-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    pointer-events: none;
}

.tx-hiring-toggle-label-off,
.tx-hiring-toggle-label-on {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.tx-hiring-toggle-label-off {
    color: #6b7280;
}

.tx-hiring-toggle.active .tx-hiring-toggle-label-off {
    opacity: 0.3;
}

.tx-hiring-toggle-label-on {
    color: #fff;
    opacity: 0.3;
}

.tx-hiring-toggle.active .tx-hiring-toggle-label-on {
    opacity: 1;
}

/* Widget Item Icon */
.tx-widget-item-icon {
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Badge Styles */
.tx-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.tx-badge-success {
    background: #d1fae5;
    color: #065f46;
}

.tx-badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.tx-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.tx-badge-info {
    background: #dbeafe;
    color: #1e40af;
}

/* Request Item Styles */
.tx-request-item {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.tx-request-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tx-info-banner-text span {
    display: block;
    font-size: 13px;
    color: #6b7280;
}

/* ============================================================
   TALENTORX CONNECT — Polish Sprint (Final)
   ============================================================ */

/* ── Section header ─────────────────────────────────────────── */
.tx-connect-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}
.tx-connect-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 3px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tx-connect-section-subtitle {
    font-size: 13px;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.5;
}

/* ── Tab bar ─────────────────────────────────────────────────── */
.tx-connect-tabs {
    display: flex;
    gap: 2px;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 20px;
}
.tx-connect-tab {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    border-radius: 0;
    transition: color 150ms, border-color 150ms;
    white-space: nowrap;
}
.tx-connect-tab:hover { color: var(--gray-800); }
.tx-connect-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ── Search bar ──────────────────────────────────────────────── */
.tx-connect-search-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding: 14px 16px;
    background: var(--gray-50);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--gray-200);
}
.tx-connect-search-bar .tx-form-input {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
    background: #fff;
}

/* ── Discovery cards grid ────────────────────────────────────── */
.tx-connect-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.tx-connect-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 16px;
    transition: border-color 150ms, box-shadow 150ms;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.tx-connect-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light), var(--shadow-sm);
}
.tx-connect-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
.tx-connect-card-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}
.tx-connect-card-info {
    flex: 1;
    min-width: 0;
}
.tx-connect-card-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.tx-connect-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}
.tx-connect-chip {
    display: inline-block;
    padding: 2px 8px;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}
.tx-connect-card-status { flex-shrink: 0; }
.tx-connect-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
    margin-top: auto;
}
.tx-connect-status-text {
    font-size: 12px;
    font-weight: 600;
}
.tx-connect-status-pending  { color: #92400e; }
.tx-connect-status-approved { color: #065f46; }
.tx-connect-status-suspended { color: #3730a3; }

/* ── Profile preview modal ───────────────────────────────────── */
.tx-connect-profile-preview {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.tx-connect-profile-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--gray-100);
}
.tx-connect-profile-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--gray-200);
    flex-shrink: 0;
}
.tx-connect-profile-logo-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tx-connect-profile-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 8px;
    line-height: 1.2;
}
.tx-connect-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--gray-500);
}
.tx-connect-profile-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.tx-connect-profile-section {
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
}
.tx-connect-profile-section:last-child { border-bottom: none; }
.tx-connect-profile-section h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--gray-400);
    margin: 0 0 10px;
}
.tx-connect-profile-section p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}
.tx-connect-profile-stat {
    font-size: 13px;
    color: var(--gray-700);
    font-weight: 500;
    margin-bottom: 8px;
}
.tx-connect-profile-streams {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.tx-connect-profile-job {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
}
.tx-connect-profile-job:last-child { border-bottom: none; }
.tx-connect-profile-job-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
}
.tx-connect-profile-job-meta {
    font-size: 11px;
    color: var(--gray-500);
    margin-top: 2px;
}
.tx-connect-profile-contact {
    background: var(--gray-50);
    border-radius: var(--border-radius-sm);
    padding: 14px;
    border: 1px solid var(--gray-200);
}
.tx-connect-contact-masked {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #fef9c3;
    border: 1px solid #fde68a;
    border-radius: 8px;
}
.tx-connect-contact-icon { font-size: 20px; flex-shrink: 0; }
.tx-connect-contact-text strong {
    display: block;
    font-size: 13px;
    color: #92400e;
    margin-bottom: 2px;
}
.tx-connect-contact-text p {
    font-size: 12px;
    color: #92400e;
    margin: 0;
}
.tx-connect-contact-details {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.tx-connect-contact-row {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: var(--gray-700);
    align-items: baseline;
}
.tx-connect-contact-label {
    font-weight: 600;
    color: var(--gray-500);
    min-width: 90px;
    flex-shrink: 0;
    font-size: 12px;
}

/* ── Requests list ───────────────────────────────────────────── */
.tx-connect-requests-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tx-connect-request-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    transition: border-color 150ms, box-shadow 150ms;
}
.tx-connect-request-item:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-sm);
}
.tx-connect-request-main { flex: 1; min-width: 0; }
.tx-connect-request-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 3px;
}
.tx-connect-request-meta {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 4px;
}
.tx-connect-request-msg {
    font-size: 12px;
    color: var(--gray-600);
    font-style: italic;
    margin-top: 6px;
    padding: 6px 10px;
    background: var(--gray-50);
    border-radius: 6px;
    border-left: 3px solid var(--gray-300);
    line-height: 1.5;
}
.tx-connect-request-note {
    font-size: 11px;
    color: #92400e;
    margin-top: 5px;
    padding: 4px 8px;
    background: #fef9c3;
    border-radius: 4px;
}
.tx-connect-request-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
    min-width: 100px;
}
.tx-connect-request-date {
    font-size: 11px;
    color: var(--gray-400);
}
.tx-connect-request-by {
    font-size: 11px;
    color: var(--gray-400);
    text-transform: capitalize;
}

/* ── Connected list ──────────────────────────────────────────── */
.tx-connect-connected-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tx-connect-connected-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tx-connect-connected-info { flex: 1; min-width: 0; }
.tx-connect-connected-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 3px;
}
.tx-connect-connected-location {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 8px;
}
.tx-connect-contact-reveal {
    font-size: 13px;
    color: var(--gray-700);
    line-height: 1.7;
    padding: 10px 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    margin-top: 6px;
}
.tx-connect-contact-reveal a { color: #065f46; }
.tx-connect-contact-masked-small {
    font-size: 12px;
    color: var(--gray-400);
    font-style: italic;
    margin-top: 4px;
    padding: 6px 10px;
    background: var(--gray-50);
    border-radius: 6px;
    border: 1px dashed var(--gray-300);
}

/* Connected item — restructured for clean horizontal action row */
.tx-connect-connected-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    transition: border-color 150ms, box-shadow 150ms;
}
.tx-connect-connected-item:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-sm);
}
.tx-connect-connected-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.tx-connect-connected-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid var(--gray-100);
}

/* ── Chat slide-over ─────────────────────────────────────────── */
.tx-connect-chat-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100vw;
    height: 100vh;
    background: #fff;
    box-shadow: -6px 0 32px rgba(0,0,0,.12);
    z-index: 99998;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 280ms cubic-bezier(.2,0,0,1);
}
.tx-connect-chat-panel.is-open { transform: translateX(0); }
.tx-connect-chat-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 99997;
    animation: txFadeIn 200ms ease both;
}
@keyframes txFadeIn { from { opacity:0; } to { opacity:1; } }

.tx-connect-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,.15);
    background: linear-gradient(135deg, #667eea, #764ba2);
    flex-shrink: 0;
}
.tx-connect-chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tx-connect-chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tx-connect-chat-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.tx-connect-chat-subtitle {
    font-size: 11px;
    color: rgba(255,255,255,.7);
    margin-top: 1px;
}
.tx-connect-chat-close {
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 150ms;
    line-height: 1;
}
.tx-connect-chat-close:hover { background: rgba(255,255,255,.3); }

.tx-connect-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--gray-50);
    scroll-behavior: smooth;
}
.tx-connect-chat-loading,
.tx-connect-chat-empty,
.tx-connect-chat-error {
    text-align: center;
    padding: 40px 16px;
    font-size: 13px;
    color: var(--gray-400);
    align-self: center;
    width: 100%;
}
.tx-connect-chat-empty { font-size: 14px; }
.tx-connect-chat-error { color: #dc2626; }

/* Chat bubbles */
.tx-chat-bubble {
    max-width: 80%;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.tx-chat-mine { align-self: flex-end; align-items: flex-end; }
.tx-chat-theirs { align-self: flex-start; align-items: flex-start; }
.tx-chat-bubble-meta {
    font-size: 10px;
    color: var(--gray-400);
    padding: 0 4px;
    letter-spacing: .2px;
}
.tx-chat-bubble-body {
    padding: 9px 13px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
}
.tx-chat-mine .tx-chat-bubble-body {
    background: #667eea;
    color: #fff;
    border-bottom-right-radius: 4px;
}
.tx-chat-theirs .tx-chat-bubble-body {
    background: #fff;
    color: var(--gray-800);
    border: 1px solid var(--gray-200);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.tx-connect-chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid var(--gray-200);
    background: #fff;
    flex-shrink: 0;
    align-items: flex-end;
}
.tx-connect-chat-input {
    flex: 1;
    resize: none;
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 13px;
    font-family: inherit;
    line-height: 1.4;
    transition: border-color 150ms, box-shadow 150ms;
    min-height: 40px;
    max-height: 120px;
    background: var(--gray-50);
}
.tx-connect-chat-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,.12);
    background: #fff;
}
.tx-connect-chat-send {
    flex-shrink: 0;
    height: 40px;
    padding: 0 16px;
    border-radius: 10px;
}

/* ── Drives slide-over ───────────────────────────────────────── */
.tx-connect-drives-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 480px;
    max-width: 100vw;
    height: 100vh;
    background: #fff;
    box-shadow: -6px 0 32px rgba(0,0,0,.12);
    z-index: 99998;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 280ms cubic-bezier(.2,0,0,1);
}
.tx-connect-drives-panel.is-open { transform: translateX(0); }
.tx-connect-drives-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,.15);
    background: linear-gradient(135deg, #10b981, #059669);
    flex-shrink: 0;
}
.tx-connect-drives-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.tx-connect-drives-subtitle {
    font-size: 12px;
    color: rgba(255,255,255,.8);
    margin-top: 2px;
}
.tx-connect-drives-close {
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 150ms;
}
.tx-connect-drives-close:hover { background: rgba(255,255,255,.3); }
.tx-connect-drives-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: var(--gray-50);
}
.tx-connect-drives-empty {
    text-align: center;
    padding: 48px 16px;
    color: var(--gray-400);
}

/* Drive cards */
.tx-drives-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tx-drive-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    padding: 14px 16px;
    transition: border-color 150ms, box-shadow 150ms;
}
.tx-drive-card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-sm);
}
.tx-drive-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.tx-drive-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
}
.tx-drive-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 6px;
}
.tx-drive-card-desc {
    font-size: 12px;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 8px;
    padding: 6px 10px;
    background: var(--gray-50);
    border-radius: 6px;
    border-left: 3px solid var(--gray-200);
}
.tx-drive-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--gray-100);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
    .tx-connect-cards { grid-template-columns: 1fr; }
    .tx-connect-request-item { flex-direction: column; }
    .tx-connect-request-side { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .tx-connect-chat-panel,
    .tx-connect-drives-panel { width: 100vw; }
    .tx-connect-tabs { overflow-x: auto; }
    .tx-connect-tab { padding: 8px 14px; font-size: 12px; }
}




/* ============================================================
   RECRUITER PANEL UI CLEANUP SPRINT
   ============================================================ */

/* ── Dashboard bottom grid (Pending Actions + Recent Activity) ── */
.tx-dashboard-bottom-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .tx-dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Hiring status card ── */
.tx-hiring-status-card {
    margin-bottom: 24px;
}

.tx-hiring-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.tx-hiring-status-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.tx-hiring-status-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.tx-hiring-status-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.tx-hiring-status-desc {
    font-size: 13px;
    color: var(--gray-500);
}

/* ── Hiring toggle label refinement ── */
.tx-hiring-toggle-label-off,
.tx-hiring-toggle-label-on {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: none;
}

/* ── Jobs filter bar ── */
.tx-jobs-filter-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 14px 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
}

.tx-jobs-filter-bar .tx-form-select,
.tx-jobs-filter-bar .tx-form-input {
    flex: 1;
    min-width: 120px;
    max-width: 200px;
    background: #fff;
}

.tx-jobs-filter-bar .tx-form-input[type="search"] {
    max-width: 260px;
    flex: 2;
}

@media (max-width: 640px) {
    .tx-jobs-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .tx-jobs-filter-bar .tx-form-select,
    .tx-jobs-filter-bar .tx-form-input {
        max-width: none;
    }
}

/* ── Analytics filter bar ── */
.tx-analytics-filter-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* ── Applications filter bar ── */
.tx-applications-filter-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding: 12px 14px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
}

.tx-applications-filter-bar .tx-form-select,
.tx-applications-filter-bar .tx-form-input {
    flex: 1;
    min-width: 120px;
    background: #fff;
}

.tx-applications-filter-bar .tx-form-input[type="search"] {
    flex: 2;
    min-width: 180px;
}

.tx-applications-filter-extended {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding: 10px 14px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-top: none;
    border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
}

.tx-applications-filter-extended .tx-form-input {
    flex: 1;
    min-width: 140px;
    background: #fff;
}

.tx-applications-filter-toggle {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 12px;
    color: var(--gray-500);
}

@media (max-width: 640px) {
    .tx-applications-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .tx-applications-filter-bar .tx-form-select,
    .tx-applications-filter-bar .tx-form-input {
        max-width: none;
    }
}

/* ── Bulk action bar ── */
.tx-bulk-action-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--border-radius-sm);
    margin-bottom: 12px;
    font-size: 13px;
}

.tx-bulk-count {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

/* ── Applications view toggle (Table / Pipeline) ── */
.tx-view-toggle {
    display: flex;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background: var(--gray-50);
}

.tx-view-toggle-btn {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 150ms;
    white-space: nowrap;
}

.tx-view-toggle-btn:hover {
    color: var(--gray-800);
    background: var(--gray-100);
}

.tx-view-toggle-btn.active {
    background: var(--primary);
    color: #fff;
}

/* ── Pipeline board — responsive horizontal scroll ── */
.tx-pipeline-board {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}

/* ── Company profile form grid ── */
/* tx-form-grid-2 is already defined in the design system — no change needed */

/* ── Ghost button (dismiss/clear) ── */
.tx-btn-ghost {
    background: transparent;
    border: 1px solid transparent;
    color: var(--gray-400);
    padding: 4px 8px;
    min-height: 28px;
    font-size: 13px;
}

.tx-btn-ghost:hover {
    background: var(--gray-100);
    color: var(--gray-700);
    border-color: var(--gray-200);
}

/* ── Job card delete button — danger variant of tx-btn-view ── */
.tx-btn-view-danger {
    flex: 1;
    padding: 8px 14px;
    background: #fff5f5;
    color: #dc2626;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tx-btn-view-danger:hover {
    background: #fee2e2;
    border-color: #dc2626;
    color: #b91c1c;
}

/* ============================================================
   PHASE 2 — CSS ISOLATION & COMPONENT HARDENING
   All rules below are scoped to .tx-dashboard or the
   TalentorX standalone body classes so they cannot bleed
   into public theme pages.
   ============================================================ */

/* ── App-shell body reset ──────────────────────────────────
   Ensures the standalone page body has no inherited theme
   margin/padding and uses the correct font stack.
   ---------------------------------------------------------- */
body.talentorx-dashboard-page,
body.talentorx-standalone-page {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
                 Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Typography hardening ──────────────────────────────────
   Themes commonly set h1–h3 with their own font-family,
   color, and margin. We re-declare all properties that
   matter so the theme cannot cascade in.
   ---------------------------------------------------------- */
.tx-dashboard h1,
.tx-dashboard h2,
.tx-dashboard h3,
.tx-dashboard h4,
.tx-dashboard h5,
.tx-dashboard h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
                 Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

.tx-dashboard h1 { font-size: var(--text-xl);  line-height: 1.2; }
.tx-dashboard h2 { font-size: var(--text-lg);  line-height: 1.3; }
.tx-dashboard h3 { font-size: var(--text-md);  line-height: 1.35; }
.tx-dashboard h4 { font-size: var(--text-sm);  line-height: 1.4; }
.tx-dashboard h5 { font-size: var(--text-xs);  line-height: 1.4; }
.tx-dashboard h6 { font-size: var(--text-xs);  line-height: 1.4; }

.tx-dashboard p {
    margin: 0;
    padding: 0;
    font-size: var(--text-sm);
    color: var(--gray-700);
    line-height: 1.6;
}

/* ── Link hardening ────────────────────────────────────────
   Themes set a { color: ... } globally. Inside the dashboard
   we own link colors explicitly.
   ---------------------------------------------------------- */
.tx-dashboard a {
    color: var(--primary);
    text-decoration: none;
}

.tx-dashboard a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* Nav items are links — keep their own color contract */
.tx-dashboard .tx-nav-item,
.tx-dashboard .tx-nav-item:hover,
.tx-dashboard .tx-nav-item:visited {
    color: var(--gray-700);
    text-decoration: none;
}

.tx-dashboard .tx-nav-item.active,
.tx-dashboard .tx-nav-item.active:hover {
    color: var(--primary);
    text-decoration: none;
}

/* ── Button hardening ──────────────────────────────────────
   Themes set button { font-family, font-size, border, etc. }
   globally. We re-declare all properties inside .tx-dashboard.
   ---------------------------------------------------------- */
.tx-dashboard .tx-btn {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
                 Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    justify-content: center;
    min-height: 40px;
    transition: var(--transition);
    box-sizing: border-box;
    vertical-align: middle;
    white-space: nowrap;
}

.tx-dashboard .tx-btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
}

.tx-dashboard .tx-btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.tx-dashboard .tx-btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
    border: none;
}

.tx-dashboard .tx-btn-secondary:hover {
    background: var(--gray-300);
    color: var(--gray-900);
    text-decoration: none;
}

.tx-dashboard .tx-btn-success {
    background: var(--success);
    color: #fff;
    border: none;
}

.tx-dashboard .tx-btn-danger {
    background: var(--danger);
    color: #fff;
    border: none;
}

.tx-dashboard .tx-btn-outline {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.tx-dashboard .tx-btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    text-decoration: none;
}

.tx-dashboard .tx-btn-ghost {
    background: transparent;
    border: 1px solid transparent;
    color: var(--gray-600);
}

.tx-dashboard .tx-btn-ghost:hover {
    background: var(--gray-100);
    color: var(--gray-900);
    border-color: var(--gray-200);
    text-decoration: none;
}

.tx-dashboard .tx-btn-sm {
    padding: 5px 12px;
    font-size: 12px;
    min-height: 32px;
}

.tx-dashboard .tx-btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

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

.tx-dashboard .tx-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ── Form hardening ────────────────────────────────────────
   Themes set input, select, textarea globally. We re-declare
   all properties inside .tx-dashboard.
   ---------------------------------------------------------- */
.tx-dashboard .tx-form-input,
.tx-dashboard .tx-form-select,
.tx-dashboard .tx-form-textarea {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
                 Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--gray-800);
    background: #fff;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    box-sizing: border-box;
    transition: border-color var(--motion-base) var(--motion-ease),
                box-shadow var(--motion-base) var(--motion-ease);
    -webkit-appearance: none;
    appearance: none;
}

.tx-dashboard .tx-form-input:focus,
.tx-dashboard .tx-form-select:focus,
.tx-dashboard .tx-form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.tx-dashboard .tx-form-label {
    display: block;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
    line-height: 1.4;
}

.tx-dashboard .tx-form-help {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
    display: block;
}

/* ── Table hardening ───────────────────────────────────────
   Themes set table, th, td globally. We re-declare inside
   .tx-dashboard.
   ---------------------------------------------------------- */
.tx-dashboard .tx-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-family: inherit;
    font-size: 14px;
    color: var(--gray-700);
}

.tx-dashboard .tx-table thead {
    background: var(--gray-50);
}

.tx-dashboard .tx-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--gray-200);
    white-space: nowrap;
    vertical-align: middle;
    background: var(--gray-50);
}

.tx-dashboard .tx-table td {
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: top;
    color: var(--gray-700);
    font-size: 14px;
    background: transparent;
}

.tx-dashboard .tx-table tbody tr:hover td {
    background: var(--gray-50);
}

.tx-dashboard .tx-table tbody tr:last-child td {
    border-bottom: none;
}

/* ── Card hardening ────────────────────────────────────────
   Themes can set border-radius, box-shadow, or background on
   generic containers. We re-declare inside .tx-dashboard.
   ---------------------------------------------------------- */
.tx-dashboard .tx-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    margin-bottom: 20px;
    overflow: hidden;
}

.tx-dashboard .tx-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.tx-dashboard .tx-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

.tx-dashboard .tx-card-body {
    padding: 24px;
    background: #fff;
}

.tx-dashboard .tx-card-footer {
    padding: 16px 24px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

/* ── Badge / status pill hardening ────────────────────────
   Themes can set span or inline element styles globally.
   ---------------------------------------------------------- */
.tx-dashboard .tx-badge,
.tx-dashboard .tx-status-badge {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    border-radius: 12px;
    padding: 4px 12px;
    text-decoration: none;
    vertical-align: middle;
}

/* ── Modal hardening ───────────────────────────────────────
   Modals are appended to <body> by JS, so they live outside
   .tx-dashboard. We scope them to .tx-modal as the root and
   re-declare all properties so the theme cannot interfere.
   ---------------------------------------------------------- */
.tx-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    box-sizing: border-box;
}

.tx-modal * {
    box-sizing: border-box;
}

.tx-modal-content {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    animation: tx-modal-in 200ms cubic-bezier(0.2, 0, 0, 1) both;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
                 Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-size: 14px;
    color: var(--gray-800);
}

.tx-modal-content.tx-modal-lg  { max-width: 800px; }
.tx-modal-content.tx-modal-xl  { max-width: 1100px; }
.tx-modal-content.tx-modal-sm  { max-width: 420px; }

@keyframes tx-modal-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.tx-modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.tx-modal-header h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

.tx-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-400);
    font-size: 22px;
    line-height: 1;
    padding: 4px;
    border-radius: 6px;
    transition: color 120ms ease, background 120ms ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tx-modal-close:hover {
    color: var(--gray-700);
    background: var(--gray-100);
}

.tx-modal-body {
    padding: 20px 24px;
}

.tx-modal-body h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 12px;
    padding: 0;
}

.tx-modal-body p {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.6;
    margin: 0 0 12px;
}

.tx-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    position: sticky;
    bottom: 0;
    background: #fff;
}

/* Buttons inside modals — same contract as .tx-dashboard .tx-btn */
.tx-modal .tx-btn {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
                 Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    justify-content: center;
    min-height: 40px;
    transition: var(--transition);
    box-sizing: border-box;
    white-space: nowrap;
}

.tx-modal .tx-btn-primary  { background: var(--primary);    color: #fff; }
.tx-modal .tx-btn-primary:hover  { background: var(--primary-dark); color: #fff; text-decoration: none; }
.tx-modal .tx-btn-outline  { background: transparent; border: 1px solid var(--gray-300); color: var(--gray-700); }
.tx-modal .tx-btn-outline:hover  { border-color: var(--primary); color: var(--primary); background: var(--primary-light); text-decoration: none; }
.tx-modal .tx-btn-danger   { background: var(--danger);     color: #fff; }
.tx-modal .tx-btn-danger:hover   { background: #dc2626; color: #fff; text-decoration: none; }
.tx-modal .tx-btn-sm { padding: 5px 12px; font-size: 12px; min-height: 32px; }

/* Form inputs inside modals */
.tx-modal .tx-form-input,
.tx-modal .tx-form-select,
.tx-modal .tx-form-textarea {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: var(--gray-800);
    background: #fff;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    box-sizing: border-box;
    transition: border-color 150ms ease, box-shadow 150ms ease;
    -webkit-appearance: none;
    appearance: none;
}

.tx-modal .tx-form-input:focus,
.tx-modal .tx-form-select:focus,
.tx-modal .tx-form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.tx-modal .tx-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.tx-modal .tx-form-group {
    margin-bottom: 16px;
}

/* ── Theme style neutralization on isolated pages ──────────
   On pages where TalentorX owns the full document
   (talentorx-dashboard-page body class = controller path),
   we neutralize common theme layout containers that may still
   be injected by wp_head() hooks from plugins or the theme.
   This is CSS-level neutralization — safer than dequeue for
   now because some themes inject styles via inline <style>
   that cannot be dequeued.
   ---------------------------------------------------------- */
body.talentorx-dashboard-page .site,
body.talentorx-dashboard-page .site-content,
body.talentorx-dashboard-page .site-header,
body.talentorx-dashboard-page .site-footer,
body.talentorx-dashboard-page .entry-content,
body.talentorx-dashboard-page #page,
body.talentorx-dashboard-page #content,
body.talentorx-dashboard-page #masthead,
body.talentorx-dashboard-page #colophon,
body.talentorx-dashboard-page .wp-site-blocks,
body.talentorx-dashboard-page header.site-header,
body.talentorx-dashboard-page footer.site-footer {
    display: none !important;
}

/* ── Prevent theme max-width containers from constraining
   the dashboard layout on shortcode pages ──────────────── */
body.talentorx-standalone-page .tx-dashboard {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* ── Prevent theme content wrappers from adding unwanted
   padding/margin around the dashboard on shortcode pages ── */
body.talentorx-standalone-page .entry-content,
body.talentorx-standalone-page .post-content,
body.talentorx-standalone-page .page-content,
body.talentorx-standalone-page article,
body.talentorx-standalone-page .hentry {
    margin: 0;
    padding: 0;
    max-width: none;
    border: none;
    box-shadow: none;
    background: transparent;
}

/* ── Prevent theme from adding top margin for admin bar
   on TalentorX pages (admin bar is suppressed in Phase 1) ── */
body.talentorx-dashboard-page.admin-bar,
body.talentorx-standalone-page.admin-bar {
    margin-top: 0 !important;
}

body.talentorx-dashboard-page.admin-bar #wpadminbar,
body.talentorx-standalone-page.admin-bar #wpadminbar {
    display: none !important;
}

/* ── Reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .tx-dashboard *,
    .tx-modal * {
        animation-duration: 1ms !important;
        transition-duration: 1ms !important;
    }
}


/* ============================================================
   PHASE 3 — VISUAL CONSISTENCY & UX POLISH
   All additions are scoped. No existing rules are removed.
   ============================================================ */

/* ── Spacing token corrections ─────────────────────────────
   Standardise the few places that used off-scale values.
   ---------------------------------------------------------- */
.tx-dashboard .tx-widget-list   { gap: 12px; }
.tx-dashboard .tx-pipeline-cards { gap: 12px; }   /* was 10px */

/* ── Typography snap-to-scale ──────────────────────────────
   Snap the three off-scale sizes to the nearest token value.
   ---------------------------------------------------------- */
.tx-dashboard .tx-widget-item-title { font-size: var(--text-md);  font-weight: 600; color: var(--gray-900); }
.tx-dashboard .tx-widget-item-text  { font-size: var(--text-sm);  color: var(--gray-600); }
.tx-dashboard .tx-card-title        { font-size: var(--text-lg);  font-weight: 600; color: var(--gray-900); }

/* ── Border-radius token alignment ─────────────────────────
   Replace the two hardcoded values that fell outside the
   token system.
   ---------------------------------------------------------- */
.tx-dashboard .tx-progress      { border-radius: var(--border-radius-sm); }
.tx-dashboard .tx-progress-bar  { border-radius: var(--border-radius-sm); }
.tx-dashboard .tx-nav-badge     { border-radius: var(--border-radius); }

/* ── Card header / footer padding consistency ───────────────
   Make card-header top/bottom match card-body (24px).
   ---------------------------------------------------------- */
.tx-dashboard .tx-card-header {
    padding: 20px 24px;   /* intentional asymmetry: 20px vertical keeps header compact */
}
.tx-dashboard .tx-card-body   { padding: 24px; }
.tx-dashboard .tx-card-footer { padding: 16px 24px; }

/* ── Stat card value size ───────────────────────────────────
   Align to the 2xl token (32px) instead of the raw 28px.
   ---------------------------------------------------------- */
.tx-dashboard .tx-stat-value { font-size: var(--text-2xl); }

/* ── Quick-link component ───────────────────────────────────
   Used in student and job-seeker dashboards.
   Was missing from dashboard.css entirely.
   ---------------------------------------------------------- */
.tx-dashboard .tx-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.tx-dashboard .tx-quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--gray-800);
    transition: var(--transition);
    cursor: pointer;
}

.tx-dashboard .tx-quick-link:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.tx-dashboard .tx-quick-link-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-sm);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: background var(--motion-base) var(--motion-ease);
}

.tx-dashboard .tx-quick-link:hover .tx-quick-link-icon {
    background: var(--primary-light);
}

.tx-dashboard .tx-quick-link-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.tx-dashboard .tx-quick-link-text strong {
    font-size: var(--text-sm);
    font-weight: 600;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tx-dashboard .tx-quick-link-text span {
    font-size: var(--text-xs);
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Info banner component ──────────────────────────────────
   Used in student and college dashboards.
   ---------------------------------------------------------- */
.tx-dashboard .tx-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
}

.tx-dashboard .tx-info-banner.warning {
    background: #FFFBEB;
    border-left-color: var(--warning);
}

.tx-dashboard .tx-info-banner.success {
    background: #ECFDF5;
    border-left-color: var(--success);
}

.tx-dashboard .tx-info-banner.danger {
    background: #FEF2F2;
    border-left-color: var(--danger);
}

.tx-dashboard .tx-info-banner-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.tx-dashboard .tx-info-banner-text {
    flex: 1;
    font-size: var(--text-sm);
    color: var(--gray-700);
    line-height: 1.5;
}

.tx-dashboard .tx-info-banner-text strong {
    color: var(--gray-900);
}

/* ── Section empty state ────────────────────────────────────
   Used in student and job-seeker dashboards.
   ---------------------------------------------------------- */
.tx-dashboard .tx-section-empty {
    text-align: center;
    padding: 40px 20px;
}

.tx-dashboard .tx-section-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--gray-400);
}

.tx-dashboard .tx-section-empty-title {
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.tx-dashboard .tx-section-empty-text {
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin-bottom: 20px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Hiring / status toggle component ───────────────────────
   Used in recruiter dashboard.
   ---------------------------------------------------------- */
.tx-dashboard .tx-hiring-status-card {
    margin-bottom: 20px;
}

.tx-dashboard .tx-hiring-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.tx-dashboard .tx-hiring-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tx-dashboard .tx-hiring-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.tx-dashboard .tx-hiring-toggle-track {
    width: 44px;
    height: 24px;
    background: var(--gray-300);
    border-radius: 12px;
    transition: background var(--motion-base) var(--motion-ease);
    position: relative;
}

.tx-dashboard .tx-hiring-toggle-track.is-active {
    background: var(--primary);
}

.tx-dashboard .tx-hiring-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform var(--motion-base) var(--motion-ease);
}

.tx-dashboard .tx-hiring-toggle-track.is-active .tx-hiring-toggle-thumb {
    transform: translateX(20px);
}

.tx-dashboard .tx-hiring-toggle-labels {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tx-dashboard .tx-hiring-toggle-label-off,
.tx-dashboard .tx-hiring-toggle-label-on {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--gray-500);
    transition: color var(--motion-base) var(--motion-ease);
}

.tx-dashboard .tx-hiring-toggle-track.is-active ~ .tx-hiring-toggle-labels .tx-hiring-toggle-label-on {
    color: var(--primary);
}

/* ── Dashboard bottom grid ──────────────────────────────────
   Used in recruiter and college dashboards for the two-column
   bottom section.
   ---------------------------------------------------------- */
.tx-dashboard .tx-dashboard-bottom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* ── Profile completion bar ─────────────────────────────────
   Replaces inline styles in profile-page.php.
   ---------------------------------------------------------- */
.tx-profile-progress-wrap {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    margin-bottom: 20px;
}

.tx-profile-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: var(--border-radius-sm);
    transition: width var(--motion-slow) var(--motion-ease);
}

/* ── Jobs page — token-aligned overrides ────────────────────
   The jobs-page.php uses an inline <style> block with
   hardcoded colors. These rules sit in the stylesheet and
   override the hardcoded values via higher specificity on
   the standalone body class.
   ---------------------------------------------------------- */
body.talentorx-jobs-page .tx-jobs-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

body.talentorx-jobs-page .tx-job-card {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border-top: 3px solid transparent;
    transition: transform var(--motion-base) var(--motion-ease),
                box-shadow var(--motion-base) var(--motion-ease),
                border-top-color var(--motion-base) var(--motion-ease);
}

body.talentorx-jobs-page .tx-job-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-top-color: var(--primary);
}

body.talentorx-jobs-page .tx-filter-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    outline: none;
}

body.talentorx-jobs-page .tx-btn-apply {
    background: var(--primary);
    border-radius: var(--border-radius-sm);
    transition: transform var(--motion-base) var(--motion-ease),
                box-shadow var(--motion-base) var(--motion-ease);
}

body.talentorx-jobs-page .tx-btn-apply:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

body.talentorx-jobs-page .tx-pagination button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

body.talentorx-jobs-page .tx-pagination button:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

body.talentorx-jobs-page .tx-company-logo-sm {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius-sm);
}

/* ── Hover states — consistent across all cards ─────────────
   Ensure every interactive card uses the same shadow step.
   ---------------------------------------------------------- */
.tx-dashboard .tx-stat-card:hover,
.tx-dashboard .tx-widget-item:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(99, 102, 241, 0.14);
}

.tx-dashboard .tx-pipeline-card:hover {
    box-shadow: var(--card-shadow-md);
    border-color: rgba(99, 102, 241, 0.14);
}

/* ── Button focus ring — consistent across all variants ─────
   Ensure keyboard users always see a clear focus indicator.
   ---------------------------------------------------------- */
.tx-dashboard .tx-btn:focus-visible,
.tx-modal .tx-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ── Table row hover — consistent ──────────────────────────
   Ensure the hover background is the same across all tables.
   ---------------------------------------------------------- */
.tx-dashboard .tx-table tbody tr:hover td,
.tx-modal .tx-table tbody tr:hover td {
    background: var(--gray-50);
}

/* ── Form grid — profile page ───────────────────────────────
   Defined here so profile-page.php can use the class instead
   of inline styles.
   ---------------------------------------------------------- */
.tx-form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 640px) {
    .tx-form-grid-2 { grid-template-columns: 1fr; }
}

/* ── Page shell — profile / jobs workspace ──────────────────
   Consistent max-width container for non-full-width pages.
   ---------------------------------------------------------- */
.tx-page-shell {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 24px;
}

.tx-page-header {
    margin-bottom: 24px;
}

.tx-page-header h1 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 4px;
}

.tx-page-subtitle {
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin: 0;
}

/* ── Notification dot — consistent size ─────────────────────
   Prevent the dot from being clipped on small screens.
   ---------------------------------------------------------- */
.tx-dashboard .tx-notification-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
    border-radius: 50%;
    background: var(--danger);
    border: 2px solid #fff;
}

/* ── Sidebar footer logout button ───────────────────────────
   Ensure consistent hover state.
   ---------------------------------------------------------- */
.tx-dashboard .tx-logout-btn:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

/* ── Status badge — missing statuses ────────────────────────
   Ensure every possible status has a defined style so no
   badge ever renders unstyled.
   ---------------------------------------------------------- */
.tx-dashboard .tx-status-badge,
.tx-modal .tx-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: var(--text-xs);
    font-weight: 600;
    white-space: nowrap;
    line-height: 1;
}

/* Fallback for any unmapped status */
.tx-dashboard .tx-status-badge:not([class*="tx-status-"]),
.tx-modal .tx-status-badge:not([class*="tx-status-"]) {
    background: var(--gray-100);
    color: var(--gray-600);
}

/* ── Job badge — consistent with token system ───────────────
   The job card badges (New, Live, Pending, etc.) use
   .tx-job-badge. Align them to the token system.
   ---------------------------------------------------------- */
.tx-dashboard .tx-job-badge,
body.talentorx-jobs-page .tx-job-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    line-height: 1;
}

.tx-dashboard .tx-job-badge.new,
body.talentorx-jobs-page .tx-job-badge.new {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.tx-dashboard .tx-job-badge-active,
body.talentorx-jobs-page .tx-job-badge-active {
    background: #D1FAE5;
    color: #065F46;
}

.tx-dashboard .tx-job-badge-pending,
body.talentorx-jobs-page .tx-job-badge-pending {
    background: #FEF3C7;
    color: #92400E;
}

.tx-dashboard .tx-job-badge-closed,
body.talentorx-jobs-page .tx-job-badge-closed {
    background: var(--gray-200);
    color: var(--gray-600);
}

.tx-dashboard .tx-job-badge-rejected,
body.talentorx-jobs-page .tx-job-badge-rejected {
    background: #FEE2E2;
    color: #991B1B;
}

.tx-dashboard .tx-job-badge-draft,
body.talentorx-jobs-page .tx-job-badge-draft {
    background: var(--gray-100);
    color: var(--gray-500);
    border: 1px solid var(--gray-200);
}

/* ── Responsive safety ──────────────────────────────────────
   Prevent horizontal overflow on small screens for the
   components added in Phase 3.
   ---------------------------------------------------------- */
@media (max-width: 640px) {
    .tx-dashboard .tx-quick-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tx-dashboard .tx-dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }

    .tx-dashboard .tx-hiring-status-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .tx-page-shell {
        padding: 20px 16px;
    }
}

@media (max-width: 400px) {
    .tx-dashboard .tx-quick-links {
        grid-template-columns: 1fr;
    }
}

/* ── Reduced motion — Phase 3 additions ─────────────────────
   Honour the user's motion preference for all new transitions.
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .tx-dashboard .tx-quick-link,
    .tx-dashboard .tx-hiring-toggle-track,
    .tx-dashboard .tx-hiring-toggle-thumb,
    body.talentorx-jobs-page .tx-job-card,
    body.talentorx-jobs-page .tx-btn-apply {
        transition: none;
    }
}

/* ── Form section heading ───────────────────────────────────
   Used in profile-page.php to separate form sections.
   Replaces inline h3 styles.
   ---------------------------------------------------------- */
.tx-form-section-heading {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: var(--space-2) 0 var(--space-1);
    padding: 0;
    line-height: 1.4;
}

.tx-form-section-heading:first-child {
    margin-top: 0;
}

/* ============================================================
   VISUAL POLISH SPRINT — Shared SaaS Design Layer
   Applied globally to all TalentorX dashboards.
   All rules are scoped to .tx-dashboard or body classes to
   prevent any bleed into WordPress admin or public pages.
   ============================================================ */

/* ── Standalone dashboard page body background ──────────────
   Applies the gradient to the full viewport on the controller
   path (body.talentorx-dashboard-page).
   ---------------------------------------------------------- */
body.talentorx-dashboard-page {
    background: var(--page-bg-gradient);
    background-attachment: fixed;
}

/* ── Table elevation ────────────────────────────────────────
   Wrap tables in a lightly elevated surface so they feel
   part of the card system rather than floating on the page.
   ---------------------------------------------------------- */
.tx-dashboard .tx-table-wrap {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.tx-dashboard .tx-table thead {
    background: rgba(99, 102, 241, 0.03);
}

.tx-dashboard .tx-table th {
    color: var(--gray-500);
    font-size: 11px;
    letter-spacing: 0.6px;
    border-bottom: 1px solid var(--card-border);
}

.tx-dashboard .tx-table tbody tr:hover td {
    background: rgba(99, 102, 241, 0.025);
}

.tx-dashboard .tx-table td {
    border-bottom: 1px solid rgba(99, 102, 241, 0.06);
}

.tx-dashboard .tx-table tbody tr:last-child td {
    border-bottom: none;
}

/* ── Empty state polish ─────────────────────────────────────
   Softer background, slightly elevated feel.
   ---------------------------------------------------------- */
.tx-dashboard .tx-empty-state {
    background: rgba(249, 250, 255, 0.70);
    border-radius: var(--border-radius);
    border: 1px dashed rgba(99, 102, 241, 0.15);
}

.tx-dashboard .tx-empty-icon {
    background: rgba(99, 102, 241, 0.06);
    color: rgba(99, 102, 241, 0.45);
}

.tx-dashboard .tx-widget-empty {
    background: rgba(249, 250, 255, 0.70);
    border: 1px dashed rgba(99, 102, 241, 0.15);
    border-radius: var(--border-radius-sm);
}

/* ── Progress bar polish ────────────────────────────────────
   Richer gradient, slightly taller for better visibility.
   ---------------------------------------------------------- */
.tx-dashboard .tx-progress {
    background: rgba(99, 102, 241, 0.08);
    border-radius: 6px;
    height: 8px;
}

.tx-dashboard .tx-progress-bar {
    background: linear-gradient(90deg, var(--primary) 0%, #6366F1 100%);
    border-radius: 6px;
}

/* ── Card header separator ──────────────────────────────────
   Softer border between card header and body.
   ---------------------------------------------------------- */
.tx-dashboard .tx-card-header {
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}

.tx-dashboard .tx-card-footer {
    background: rgba(99, 102, 241, 0.025);
    border-top: 1px solid rgba(99, 102, 241, 0.08);
}

/* ── Sidebar header/footer separators ───────────────────────
   Match the softer border style.
   ---------------------------------------------------------- */
.tx-dashboard .tx-sidebar-header,
.tx-dashboard .tx-sidebar-user {
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}

.tx-dashboard .tx-sidebar-footer {
    border-top: 1px solid rgba(99, 102, 241, 0.08);
}

/* ── Logo icon gradient ─────────────────────────────────────
   Richer gradient on the TX logo mark.
   ---------------------------------------------------------- */
.tx-dashboard .tx-logo-icon {
    background: linear-gradient(135deg, #0066FF 0%, #6366F1 100%);
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.25);
}

/* ── User avatar gradient ───────────────────────────────────
   Consistent with logo gradient.
   ---------------------------------------------------------- */
.tx-dashboard .tx-user-avatar {
    background: linear-gradient(135deg, #0066FF 0%, #6366F1 100%);
    box-shadow: 0 2px 6px rgba(0, 102, 255, 0.20);
}

/* ── Stat icon backgrounds — slightly richer ────────────────
   Keep the semantic colors but add a touch more saturation.
   ---------------------------------------------------------- */
.tx-dashboard .tx-stat-icon.blue,
.tx-dashboard .tx-stat-icon.primary  { background: #EEF2FF; color: #4338CA; }
.tx-dashboard .tx-stat-icon.green,
.tx-dashboard .tx-stat-icon.success  { background: #ECFDF5; color: #059669; }
.tx-dashboard .tx-stat-icon.orange,
.tx-dashboard .tx-stat-icon.warning  { background: #FFF7ED; color: #C2410C; }
.tx-dashboard .tx-stat-icon.purple   { background: #F5F3FF; color: #7C3AED; }
.tx-dashboard .tx-stat-icon.info     { background: #EFF6FF; color: #1D4ED8; }
.tx-dashboard .tx-stat-icon.danger,
.tx-dashboard .tx-stat-icon.red      { background: #FEF2F2; color: #DC2626; }

/* ── Toggle container polish ────────────────────────────────
   Softer active state.
   ---------------------------------------------------------- */
.tx-dashboard .tx-toggle-container.active {
    background: rgba(0, 102, 255, 0.05);
    border-color: rgba(0, 102, 255, 0.22);
}

/* ── Notification dot — keep above blobs ───────────────────
   Ensure the red dot on the bell icon is always visible.
   ---------------------------------------------------------- */
.tx-dashboard .tx-notification-dot {
    z-index: 2;
}

/* ── Modal z-index safety ───────────────────────────────────
   Modals must always sit above the decorative blob layer.
   The blobs are z-index: 0; modals are already z-index: 9999+
   in their own styles, but this ensures the wrapper blobs
   (z-index: 0 via ::before/::after) never interfere.
   ---------------------------------------------------------- */
.tx-modal,
.tx-admin-modal,
[id$="-modal"],
.tx-job-modal {
    z-index: 10000;
}

/* ── Reduced motion — honour user preference ────────────────
   Disable the blob animation and card lifts for users who
   prefer reduced motion.
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .tx-dashboard-wrapper::before,
    .tx-dashboard-wrapper::after {
        animation: none;
    }

    .tx-dashboard .tx-card,
    .tx-dashboard .tx-stat-card,
    .tx-dashboard .tx-widget-item,
    .tx-dashboard .tx-pipeline-card,
    .tx-dashboard .tx-candidate-card,
    .tx-dashboard .tx-notification-item {
        transition: none;
        transform: none !important;
    }
}

/* ── Mobile: disable fixed background attachment ────────────
   background-attachment: fixed causes rendering issues on
   iOS Safari. Switch to scroll on small screens.
   ---------------------------------------------------------- */
@media (max-width: 768px) {
    .tx-dashboard,
    body.talentorx-dashboard-page {
        background-attachment: scroll;
    }

    /* Disable blob pseudo-elements on mobile — not needed at small sizes */
    .tx-dashboard-wrapper::before,
    .tx-dashboard-wrapper::after {
        display: none;
    }
}

/* ============================================================
   PHASE 4.0 - PREMIUM SAAS DASHBOARD POLISH (SAFE OVERRIDES)
   Scope: .tx-dashboard and TalentorX jobs standalone pages.
   ============================================================ */
.tx-dashboard {
    --tx-ui-surface:       rgba(255, 255, 255, 0.92);
    --tx-ui-surface-solid: #ffffff;
    --tx-ui-border:        rgba(179, 197, 255, 0.62);
    --tx-ui-border-strong: rgba(159, 179, 250, 0.74);
    --tx-ui-shadow-soft:   0 12px 30px rgba(30, 64, 175, 0.1);
    --tx-ui-shadow-raise:  0 20px 44px rgba(37, 99, 235, 0.14);
    --tx-ui-text:          #0f1b38;
    --tx-ui-text-soft:     #5c6f99;
    --tx-ui-gradient:      linear-gradient(180deg, rgba(255,255,255,0.78) 0%, rgba(245, 248, 255, 0.86) 100%);
    color: var(--tx-ui-text);
    background:
        radial-gradient(900px 520px at 6% -12%, rgba(79, 70, 229, 0.14) 0%, rgba(79, 70, 229, 0) 62%),
        radial-gradient(860px 420px at 94% 3%, rgba(37, 99, 235, 0.12) 0%, rgba(37, 99, 235, 0) 58%),
        linear-gradient(180deg, #eef4ff 0%, #f4f7ff 52%, #f8faff 100%);
}

.tx-dashboard .tx-sidebar {
    background: rgba(255, 255, 255, 0.84);
    border-right: 1px solid var(--tx-ui-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 6px 0 24px rgba(30, 64, 175, 0.08);
}

.tx-dashboard .tx-header {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--tx-ui-border);
    border-radius: 16px;
    box-shadow: var(--tx-ui-shadow-soft);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.tx-dashboard .tx-header-left h1,
.tx-dashboard .tx-card-title,
.tx-dashboard .tx-widget-item-title,
.tx-dashboard .tx-stat-value {
    color: var(--tx-ui-text);
    letter-spacing: -0.02em;
}

.tx-dashboard .tx-header-left p,
.tx-dashboard .tx-card-subtitle,
.tx-dashboard .tx-widget-item-text,
.tx-dashboard .tx-widget-item-meta,
.tx-dashboard .tx-stat-label,
.tx-dashboard .tx-table-subtext {
    color: var(--tx-ui-text-soft);
}

.tx-dashboard .tx-card,
.tx-dashboard .tx-stat-card,
.tx-dashboard .tx-widget-item,
.tx-dashboard .tx-notification-item,
.tx-dashboard .tx-info-banner,
.tx-dashboard .tx-empty-state,
.tx-dashboard .tx-widget-empty {
    background: var(--tx-ui-gradient);
    border: 1px solid var(--tx-ui-border);
    box-shadow: var(--tx-ui-shadow-soft);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.tx-dashboard .tx-card:hover,
.tx-dashboard .tx-stat-card:hover,
.tx-dashboard .tx-widget-item:hover,
.tx-dashboard .tx-notification-item:hover,
.tx-dashboard .tx-quick-link:hover {
    box-shadow: var(--tx-ui-shadow-raise);
}

.tx-dashboard .tx-btn {
    border-radius: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.tx-dashboard .tx-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.tx-dashboard .tx-btn-primary:hover {
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28);
}

.tx-dashboard .tx-btn-outline,
.tx-dashboard .tx-btn-ghost {
    border-color: rgba(171, 190, 255, 0.86);
    background: rgba(255, 255, 255, 0.84);
    color: #3551a8;
}

.tx-dashboard .tx-btn-outline:hover,
.tx-dashboard .tx-btn-ghost:hover {
    border-color: rgba(112, 142, 248, 0.95);
    background: #edf3ff;
    color: #1f3fa2;
}

.tx-dashboard .tx-form-input,
.tx-dashboard .tx-form-select,
.tx-dashboard .tx-form-textarea,
.tx-dashboard input[type="search"] {
    border: 1px solid #c5d5ff;
    border-radius: 11px;
    background: #fafdff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.tx-dashboard .tx-form-input:focus,
.tx-dashboard .tx-form-select:focus,
.tx-dashboard .tx-form-textarea:focus,
.tx-dashboard input[type="search"]:focus {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.tx-dashboard .tx-table-wrap {
    border: 1px solid var(--tx-ui-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
}

.tx-dashboard .tx-table thead {
    background: linear-gradient(180deg, rgba(236, 242, 255, 0.94) 0%, rgba(248, 251, 255, 0.96) 100%);
}

.tx-dashboard .tx-table th {
    color: #60729b;
}

.tx-dashboard .tx-table td {
    color: #304064;
    border-bottom-color: rgba(189, 205, 247, 0.48);
}

.tx-dashboard .tx-table tbody tr:hover td {
    background: rgba(239, 245, 255, 0.82);
}

.tx-dashboard .tx-modal-content {
    border: 1px solid rgba(183, 198, 246, 0.72);
    border-radius: 16px;
    box-shadow: 0 28px 52px rgba(15, 23, 42, 0.22);
}

.tx-dashboard .tx-modal-header,
.tx-dashboard .tx-modal-footer {
    border-color: rgba(182, 198, 246, 0.62);
}

/* Jobs standalone page polish (overrides template-level styles safely). */
body.talentorx-jobs-page .tx-jobs-wrapper,
body.talentorx-jobs-workspace-page .tx-page-shell {
    max-width: 1440px;
    background: transparent;
    padding: 24px;
}

body.talentorx-jobs-page .tx-jobs-header,
body.talentorx-jobs-workspace-page .tx-page-header {
    background:
        radial-gradient(440px 220px at 88% -30%, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 68%),
        linear-gradient(135deg, #2459e4 0%, #4f46e5 72%, #1e40af 100%);
    border: 1px solid rgba(172, 194, 255, 0.4);
    border-radius: 18px;
    box-shadow: 0 24px 46px rgba(37, 99, 235, 0.25);
}

body.talentorx-jobs-page .tx-filters-card,
body.talentorx-jobs-page .tx-job-card,
body.talentorx-jobs-page .tx-job-detail-sidebar-card,
body.talentorx-jobs-page .tx-job-modal-content,
body.talentorx-jobs-page .tx-empty-state,
body.talentorx-jobs-page .tx-empty,
body.talentorx-jobs-workspace-page .tx-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(184, 203, 255, 0.78);
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(30, 64, 175, 0.1);
}

body.talentorx-jobs-page .tx-job-card:hover {
    border-top-color: #3b82f6;
    box-shadow: 0 22px 42px rgba(30, 64, 175, 0.16);
}

body.talentorx-jobs-page .tx-filter-input,
body.talentorx-jobs-workspace-page .tx-form-input,
body.talentorx-jobs-workspace-page .tx-form-select {
    border: 1px solid #c7d8ff;
    border-radius: 10px;
    background: #fbfcff;
}

body.talentorx-jobs-page .tx-filter-input:focus,
body.talentorx-jobs-workspace-page .tx-form-input:focus,
body.talentorx-jobs-workspace-page .tx-form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

body.talentorx-jobs-page .tx-btn-apply,
body.talentorx-jobs-page .tx-jobs-gate-btn-primary,
body.talentorx-jobs-workspace-page .tx-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

body.talentorx-jobs-page .tx-btn-view,
body.talentorx-jobs-page .tx-jobs-gate-btn-secondary,
body.talentorx-jobs-workspace-page .tx-btn-outline {
    border: 1px solid rgba(175, 193, 255, 0.92);
    background: rgba(255, 255, 255, 0.9);
    color: #2d4faf;
}

body.talentorx-jobs-page .tx-jobs-gate {
    background: linear-gradient(135deg, #1f3fb1 0%, #4338ca 52%, #312e81 100%);
    border: 1px solid rgba(168, 185, 255, 0.34);
    box-shadow: 0 28px 52px rgba(49, 46, 129, 0.34);
}

@media (max-width: 768px) {
    .tx-dashboard .tx-sidebar,
    .tx-dashboard .tx-header,
    .tx-dashboard .tx-card,
    .tx-dashboard .tx-stat-card,
    .tx-dashboard .tx-widget-item,
    .tx-dashboard .tx-notification-item {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    body.talentorx-jobs-page .tx-jobs-wrapper,
    body.talentorx-jobs-workspace-page .tx-page-shell {
        padding: 16px;
    }
}

/* ============================================================
   PHASE 4.1 - DASHBOARD RHYTHM + CONNECT TAB HOTFIX
   Fixes:
   - cleaner opening spacing in role dashboards
   - robust tab appearance (theme-resistant) in Connect section
   ============================================================ */
.tx-dashboard .tx-main {
    padding: 14px 16px 22px;
}

.tx-dashboard .tx-header {
    margin-bottom: 14px;
    border-radius: 14px;
    padding: 0 22px;
}

.tx-dashboard .tx-content {
    padding: 0 2px 10px;
}

.tx-dashboard .tx-connect-section-header {
    margin-bottom: 16px;
    padding-bottom: 14px;
}

.tx-dashboard .tx-connect-tabs {
    display: inline-flex;
    gap: 6px;
    padding: 4px;
    margin-bottom: 16px;
    border: 1px solid rgba(181, 198, 244, 0.78);
    border-bottom: 1px solid rgba(181, 198, 244, 0.78);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(244, 247, 255, 0.95) 0%, rgba(236, 243, 255, 0.95) 100%);
}

.tx-dashboard .tx-connect-tab {
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid transparent;
    border-bottom: 1px solid transparent;
    background: transparent;
    border-radius: 9px;
    margin: 0;
    padding: 9px 16px;
    color: #5f719a;
    font-weight: 700;
    line-height: 1.2;
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.tx-dashboard .tx-connect-tab:hover {
    color: #334d91;
    background: rgba(255, 255, 255, 0.62);
}

.tx-dashboard .tx-connect-tab.active {
    color: #1f4ed0;
    background: #ffffff;
    border-color: rgba(161, 183, 247, 0.78);
    border-bottom-color: rgba(161, 183, 247, 0.78);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.14);
}

.tx-dashboard .tx-connect-search-bar {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(184, 199, 239, 0.72);
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.95) 0%, rgba(243, 247, 255, 0.95) 100%);
}

@media (max-width: 768px) {
    .tx-dashboard .tx-main {
        padding: 10px 10px 14px;
    }

    .tx-dashboard .tx-header {
        margin-bottom: 10px;
        padding: 0 14px;
        border-radius: 12px;
    }

    .tx-dashboard .tx-content {
        padding: 0 0 8px;
    }

    .tx-dashboard .tx-connect-tabs {
        width: 100%;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .tx-dashboard .tx-connect-tab {
        flex: 0 0 auto;
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* ============================================================
   PHASE 4.2 - FINAL PIXEL PASS (HEADER / TABS / SIDEBAR RHYTHM)
   Scope: recruiter, college, student, and job seeker dashboards.
   ============================================================ */
.tx-dashboard .tx-main {
    padding: 12px 16px 20px;
}

.tx-dashboard .tx-header {
    min-height: 68px;
    height: auto;
    margin-bottom: 12px;
    padding: 10px 20px;
    gap: 14px;
}

.tx-dashboard .tx-header-left {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tx-dashboard .tx-header-left h1 {
    margin: 0;
    font-size: clamp(1.55rem, 1.1rem + 0.7vw, 1.95rem);
    line-height: 1.15;
    letter-spacing: -0.018em;
}

.tx-dashboard .tx-header-left p {
    margin: 0;
    line-height: 1.35;
}

.tx-dashboard .tx-header-right {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.tx-dashboard .tx-sidebar-header {
    padding: 18px 18px 16px;
}

.tx-dashboard .tx-sidebar-user {
    padding: 12px 18px;
    gap: 12px;
}

.tx-dashboard .tx-nav {
    padding: 12px 12px 10px;
}

.tx-dashboard .tx-nav-section {
    margin-bottom: 18px;
}

.tx-dashboard .tx-nav-title {
    padding: 0 10px 7px;
    margin-bottom: 4px;
    font-size: 10.5px;
    letter-spacing: 0.08em;
}

.tx-dashboard .tx-nav-item {
    min-height: 40px;
    padding: 9px 12px;
    margin-bottom: 3px;
    border-radius: 10px;
}

.tx-dashboard .tx-sidebar-footer {
    margin-top: auto;
    padding: 12px 16px 14px;
}

.tx-dashboard .tx-logout-btn {
    min-height: 42px;
    border-radius: 10px;
}

.tx-dashboard .tx-connect-tabs,
.tx-dashboard .tx-view-toggle {
    display: inline-flex;
    gap: 6px;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(181, 198, 244, 0.78);
    background: linear-gradient(180deg, rgba(244, 247, 255, 0.95) 0%, rgba(236, 243, 255, 0.95) 100%);
}

.tx-dashboard .tx-connect-tab,
.tx-dashboard .tx-view-toggle-btn {
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 9px;
    margin: 0;
    min-height: 34px;
    padding: 8px 14px;
    color: #5f719a;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.tx-dashboard .tx-view-toggle-btn:hover {
    color: #334d91;
    background: rgba(255, 255, 255, 0.62);
}

.tx-dashboard .tx-view-toggle-btn.active {
    color: #1f4ed0;
    background: #ffffff;
    border-color: rgba(161, 183, 247, 0.78);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.14);
}

@media (max-width: 768px) {
    .tx-dashboard .tx-main {
        padding: 10px 10px 14px;
    }

    .tx-dashboard .tx-header {
        min-height: 0;
        margin-bottom: 10px;
        padding: 10px 14px;
        border-radius: 12px;
    }

    .tx-dashboard .tx-sidebar-header {
        padding: 14px 14px 12px;
    }

    .tx-dashboard .tx-sidebar-user {
        padding: 10px 14px;
    }

    .tx-dashboard .tx-nav {
        padding: 10px;
    }

    .tx-dashboard .tx-sidebar-footer {
        padding: 10px 12px 12px;
    }

    .tx-dashboard .tx-connect-tabs,
    .tx-dashboard .tx-view-toggle {
        width: 100%;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .tx-dashboard .tx-connect-tab,
    .tx-dashboard .tx-view-toggle-btn {
        flex: 0 0 auto;
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* ============================================================
   PHASE 5.0 — PREMIUM SAAS UI UPGRADE
   New utility classes. Additive only — no existing rules changed.
   Scope: .tx-dashboard
   ============================================================ */

/* ── Card accent modifiers ──────────────────────────────────
   Replaces inline border-left hardcoded colors in templates.
   ---------------------------------------------------------- */
.tx-card.tx-card-accent-warning {
    border-left: 4px solid var(--warning);
}

.tx-card.tx-card-accent-success {
    border-left: 4px solid var(--success);
}

.tx-card.tx-card-accent-danger {
    border-left: 4px solid var(--danger);
}

.tx-card.tx-card-accent-info {
    border-left: 4px solid var(--info);
}

/* ── Icon-only button variant ───────────────────────────────
   Square button for icon-only actions.
   ---------------------------------------------------------- */
.tx-btn.tx-btn-icon {
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    justify-content: center;
    border-radius: var(--border-radius-sm);
}

.tx-btn.tx-btn-icon.tx-btn-sm {
    width: 28px;
    height: 28px;
    min-height: 28px;
}

/* ── Filter label ───────────────────────────────────────────
   Replaces repeated inline label styles in filter bars.
   ---------------------------------------------------------- */
.tx-filter-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 5px;
}

/* ── Dashboard bulk action bar ──────────────────────────────
   Replaces inline styles on recruiter assigned-candidates
   bulk action bar. IDs (#tx-asn-bulk-bar etc.) are preserved.
   ---------------------------------------------------------- */
.tx-bulk-bar-dashboard {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tx-bulk-bar-dashboard .tx-form-select-sm,
.tx-bulk-bar-dashboard .tx-form-input-sm {
    padding: 6px 8px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    background: #fff;
    color: var(--gray-800);
    transition: border-color var(--motion-fast) var(--motion-ease),
                box-shadow var(--motion-fast) var(--motion-ease);
}

.tx-bulk-bar-dashboard .tx-form-select-sm:focus,
.tx-bulk-bar-dashboard .tx-form-input-sm:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.tx-bulk-bar-dashboard .tx-form-input-sm {
    flex: 1;
    min-width: 200px;
}

/* ── Status gate page ───────────────────────────────────────
   Replaces inline styles on status-pending / status-suspended
   full-page centered card layout.
   ---------------------------------------------------------- */
.tx-status-gate {
    max-width: 720px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 40px 20px;
}

/* ── Empty icon semantic modifiers ─────────────────────────
   Replaces inline background/color overrides on .tx-empty-icon
   in status pages.
   ---------------------------------------------------------- */
.tx-empty-icon--warning {
    background: var(--warning-bg, #FEF3C7);
    color: var(--warning, #F59E0B);
}

.tx-empty-icon--danger {
    background: var(--danger-bg, #FEE2E2);
    color: var(--danger, #EF4444);
}

.tx-empty-icon--success {
    background: var(--success-bg, #D1FAE5);
    color: var(--success, #10B981);
}

.tx-empty-icon--info {
    background: var(--info-bg, #DBEAFE);
    color: var(--info, #3B82F6);
}

/* ── Autocomplete dropdown ──────────────────────────────────
   Replaces inline styles on #tx-rel-college-results.
   The ID is preserved; this class is added alongside it.
   ---------------------------------------------------------- */
.tx-autocomplete-dropdown {
    display: none;
    position: absolute;
    z-index: 100;
    background: #fff;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    max-height: 200px;
    overflow-y: auto;
    width: calc(100% - 32px);
    margin-top: 4px;
    box-shadow: var(--shadow-md);
}

/* ── Profile completion card internals ──────────────────────
   Replaces inline layout/typography styles in recruiter
   profile completion card.
   ---------------------------------------------------------- */
.tx-completion-layout {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.tx-completion-layout > div {
    flex: 1;
}

.tx-completion-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
}

.tx-completion-desc {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.5;
}

.tx-completion-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.tx-completion-meta-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
}

.tx-completion-meta-count {
    font-size: 12px;
    color: var(--gray-500);
}

.tx-completion-missing {
    margin-bottom: 16px;
}

.tx-completion-missing-label {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
}

.tx-completion-missing-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Warning progress bar fill variant */
.tx-progress-bar.tx-progress-bar--warning {
    background: linear-gradient(90deg, var(--warning, #F59E0B), #D97706);
}

/* Compact form field variants for bulk bars */
.tx-form-select-sm {
    padding: 6px 8px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    background: #fff;
    color: var(--gray-800);
    height: 32px;
    transition: border-color var(--motion-fast) var(--motion-ease),
                box-shadow var(--motion-fast) var(--motion-ease);
}

.tx-form-select-sm:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.tx-form-input-sm {
    padding: 6px 8px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    background: #fff;
    color: var(--gray-800);
    height: 32px;
    transition: border-color var(--motion-fast) var(--motion-ease),
                box-shadow var(--motion-fast) var(--motion-ease);
}

.tx-form-input-sm:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* ── Responsive header search ───────────────────────────────
   Replaces fixed 300px width with fluid clamp.
   ---------------------------------------------------------- */
.tx-search-input {
    width: clamp(180px, 25vw, 300px);
}

/* ── Refined button focus and outline distinction ───────────
   Ensures tx-btn-outline hover is visually distinct from
   tx-btn-ghost hover.
   ---------------------------------------------------------- */
.tx-btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 1px var(--primary-light);
}

.tx-btn-ghost:hover {
    background: var(--gray-100);
    color: var(--gray-900);
    border-color: var(--gray-200);
    box-shadow: none;
}

/* Consistent focus ring across all button variants */
.tx-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--primary-light);
}

/* ── Responsive status gate ─────────────────────────────────
   Ensure status gate is readable on small screens.
   ---------------------------------------------------------- */
@media (max-width: 480px) {
    .tx-status-gate {
        padding: 24px 16px;
        align-items: flex-start;
        padding-top: 60px;
    }
}
