/* ============================================
   MODERN DASHBOARD - COMPLETE REDESIGN
   AI-Powered Recruitment Platform
   ============================================ */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    color: #1f2937;
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== DASHBOARD CONTAINER ===== */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    max-width: 1920px;
    margin: 0 auto;
}

/* ===== SIDEBAR ===== */
.dashboard-sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.06);
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.sidebar-logo i {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    -webkit-text-fill-color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.5rem;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    font-weight: 500;
    font-size: 0.9375rem;
}

.nav-link i {
    width: 20px;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.nav-link span:first-of-type {
    flex: 1;
}

.nav-link:hover {
    background: rgba(102, 126, 234, 0.06);
    color: #667eea;
}

.nav-link.active {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.12) 0%, transparent 100%);
    color: #667eea;
    font-weight: 600;
    border-left: 3px solid #667eea;
}

.nav-badge {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

.nav-count {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 22px;
    text-align: center;
}

.nav-highlight {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    color: #667eea;
    font-weight: 600;
    margin: 0.5rem 1rem;
    border-radius: 10px;
    border-left: none;
}

.nav-highlight:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(2px);
}

.nav-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin: 1rem 1.5rem;
}

/* AI Widget */
.sidebar-ai-widget {
    margin: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35);
}

.ai-widget-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 0.875rem;
}

.ai-avatar {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.ai-widget-header h5 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
}

.ai-status {
    font-size: 0.75rem;
    opacity: 0.92;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

.ai-widget-text {
    font-size: 0.875rem;
    opacity: 0.95;
    margin-bottom: 0.875rem;
    line-height: 1.5;
}

.btn-ai-chat {
    width: 100%;
    padding: 0.75rem;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 9px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
}

.btn-ai-chat:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* ===== MAIN CONTENT ===== */
.dashboard-main {
    flex: 1;
    padding: 2.5rem;
    overflow-y: auto;
}

/* Welcome Banner */
.welcome-banner {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.welcome-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.625rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.welcome-subtitle {
    font-size: 1.0625rem;
    color: #6b7280;
    font-weight: 400;
}

.date-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 12px;
    color: #667eea;
    font-weight: 600;
    font-size: 0.9375rem;
}

.date-box i {
    font-size: 1.125rem;
}

/* ===== AI INSIGHTS BANNER ===== */
.ai-insights-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 18px;
    padding: 1.75rem 2rem;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.35);
    position: relative;
    overflow: hidden;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-insights-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.insights-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    animation: pulse 2s ease-in-out infinite;
}

.insights-content {
    flex: 1;
    color: white;
    position: relative;
    z-index: 1;
}

.insights-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.insights-content h3 i {
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.8; }
}

.insights-content p {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.insights-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-insight {
    padding: 0.625rem 1.25rem;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-insight:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-insight.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-insight.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.insights-close {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.insights-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

/* ===== METRICS GRID ===== */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    padding: 1.75rem;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.metric-card[data-tilt] {
    transform-style: preserve-3d;
}

.metric-card[data-tilt]:hover {
    transform: translateY(-8px) scale(1.02);
}

.metric-sparkle {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.metric-card:hover .metric-sparkle {
    opacity: 1;
    animation: sparkleMove 2s ease-in-out infinite;
}

@keyframes sparkleMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10px, -10px) scale(1.1); }
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.metric-primary::before { background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); }
.metric-success::before { background: linear-gradient(90deg, #10b981 0%, #34d399 100%); }
.metric-warning::before { background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%); }
.metric-info::before { background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%); }

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.metric-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.625rem;
    color: white;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.metric-card:hover .metric-icon {
    transform: scale(1.08) rotate(-3deg);
}

.metric-primary .metric-icon { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.35);
}

.metric-success .metric-icon { 
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.metric-warning .metric-icon { 
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

.metric-info .metric-icon { 
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

.metric-content {
    flex: 1;
    min-width: 0;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: #111827;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.metric-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 0.625rem;
}

.metric-trend {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.metric-trend.positive { color: #10b981; }
.metric-trend i { font-size: 0.6875rem; }

.metric-ai-tip {
    margin-top: 0.625rem;
    padding: 0.5rem 0.75rem;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 8px;
    font-size: 0.75rem;
    color: #667eea;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

/* ===== PREDICTIVE ANALYTICS ===== */
.predictive-analytics-section {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.analytics-card {
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.5) 0%, transparent 100%);
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.analytics-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.analytics-card:hover::before {
    transform: scaleX(1);
}

.analytics-card:hover {
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.analytics-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.analytics-card:hover .analytics-icon {
    transform: scale(1.1) rotate(-5deg);
}

.gradient-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
}

.gradient-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.gradient-green {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.gradient-orange {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3);
}

.analytics-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.prediction-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: #111827;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.analytics-content p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.analytics-progress {
    height: 8px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 1.5s ease;
}

.analytics-label {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 600;
}

.trend-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 60px;
    margin-bottom: 0.75rem;
}

.trend-bar {
    flex: 1;
    background: linear-gradient(180deg, #3b82f6 0%, #60a5fa 100%);
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
}

.analytics-card:hover .trend-bar {
    transform: scaleY(1.1);
}

.success-indicators {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.indicator {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.indicator.active {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
    animation: popIn 0.4s ease backwards;
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.indicator.active:nth-child(1) { animation-delay: 0.1s; }
.indicator.active:nth-child(2) { animation-delay: 0.2s; }
.indicator.active:nth-child(3) { animation-delay: 0.3s; }
.indicator.active:nth-child(4) { animation-delay: 0.4s; }
.indicator.active:nth-child(5) { animation-delay: 0.5s; }

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    color: #667eea;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.15);
    transition: all 0.2s ease;
}

.analytics-card:hover .skill-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
.ai-activity-section,
.ai-recommendations-panel,
.dashboard-section {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.ai-activity-section:hover,
.ai-recommendations-panel:hover,
.dashboard-section:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Section Headers */
.activity-header,
.recommendations-header,
.section-header {
    padding: 1.75rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.6) 0%, transparent 100%);
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.section-header {
    justify-content: space-between;
}

.activity-icon,
.ai-badge-large {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.activity-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.35);
}

.ai-badge-large {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 6px 16px rgba(251, 191, 36, 0.35);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.activity-header h3,
.recommendations-header h3,
.section-title h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.activity-header p,
.recommendations-header p {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.section-title i {
    font-size: 1.375rem;
    color: #667eea;
}

.activity-live {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #10b981;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.5rem 0.875rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
}

.live-indicator {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.btn-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    background: rgba(102, 126, 234, 0.06);
    transition: all 0.2s ease;
}

.btn-link:hover {
    background: rgba(102, 126, 234, 0.12);
    gap: 0.625rem;
}

/* Activity Timeline */
.activity-timeline,
.recommendations-grid {
    padding: 1.75rem 2rem;
}

.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.activity-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.25rem;
    padding: 1.25rem;
    background: rgba(249, 250, 251, 0.5);
    border-radius: 14px;
    transition: all 0.25s ease;
    align-items: start;
}

.activity-item:hover {
    background: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateX(6px);
}

.activity-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: white;
    flex-shrink: 0;
}

.activity-icon-badge.success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.activity-icon-badge.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.activity-icon-badge.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.activity-icon-badge.info {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.375rem;
}

.activity-content p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.625rem;
}

.activity-time {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #9ca3af;
}

.btn-mini {
    padding: 0.5rem 0.875rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-mini:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Recommendations */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.recommendation-card {
    background: rgba(249, 250, 251, 0.5);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.recommendation-card:hover {
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.recommendation-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1.375rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.recommendation-card:hover .recommendation-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.08) rotate(-3deg);
}

.recommendation-card h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    color: #111827;
}

.recommendation-card p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.recommendation-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.recommendation-link:hover {
    gap: 0.625rem;
    color: #764ba2;
}

/* CTA Panel */
.cta-panel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2.5rem;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-icon-bg {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.25rem;
    position: relative;
    z-index: 1;
}

.cta-content {
    color: white;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.625rem;
}

.cta-description {
    font-size: 1rem;
    opacity: 0.95;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.cta-features {
    display: flex;
    gap: 1.75rem;
    list-style: none;
    flex-wrap: wrap;
}

.cta-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.cta-features i {
    color: #10b981;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 1.875rem;
    background: white;
    color: #667eea;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.cta-help {
    margin-top: 0.625rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
}

/* Jobs Table */
.jobs-table-wrapper {
    overflow-x: auto;
}

.jobs-table {
    width: 100%;
    border-collapse: collapse;
}

.jobs-table thead {
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.6) 0%, transparent 100%);
}

.jobs-table th {
    text-align: left;
    padding: 1.125rem 2rem;
    font-weight: 600;
    font-size: 0.8125rem;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.jobs-table td {
    padding: 1.375rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.job-row {
    transition: all 0.2s ease;
}

.job-row:hover {
    background: rgba(102, 126, 234, 0.03);
}

.job-row:last-child td {
    border-bottom: none;
}

.job-title-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.job-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    flex-shrink: 0;
}

.job-name {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.job-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8125rem;
    color: #9ca3af;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-draft {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-closed {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.applicant-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.match-score {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.score-bar {
    width: 72px;
    height: 7px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    transition: width 1s ease;
}

.score-text {
    font-weight: 700;
    font-size: 0.875rem;
    color: #111827;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.04);
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-action:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Empty State */
.empty-state {
    padding: 3.5rem 2rem;
    text-align: center;
}

.empty-icon {
    width: 92px;
    height: 92px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.75rem;
    color: #667eea;
}

.empty-state h4 {
    font-size: 1.375rem;
    margin-bottom: 0.625rem;
    color: #111827;
}

.empty-state p {
    color: #6b7280;
    margin-bottom: 1.25rem;
}

.btn-primary-empty {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
    transition: all 0.3s ease;
}

.btn-primary-empty:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.45);
}

/* AI Chat Modal */
.ai-chat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.ai-chat-modal.active {
    display: flex;
}

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

.ai-chat-container {
    background: white;
    border-radius: 18px;
    width: 90%;
    max-width: 560px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.ai-chat-header {
    padding: 1.375rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 18px 18px 0 0;
}

.ai-chat-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.ai-avatar-large {
    width: 46px;
    height: 46px;
    background: white;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1.375rem;
}

.ai-chat-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
}

.ai-status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

.ai-status-text {
    font-size: 0.8125rem;
    opacity: 0.92;
}

.close-chat {
    background: rgba(255, 255, 255, 0.18);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 1.125rem;
    transition: all 0.2s ease;
}

.close-chat:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: rotate(90deg);
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: #f9fafb;
}

.ai-message,
.user-message {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    animation: messageSlide 0.3s ease;
}

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

.ai-message-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .ai-message-avatar {
    background: #10b981;
}

.ai-message-content {
    background: white;
    padding: 0.875rem 1.125rem;
    border-radius: 11px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    max-width: 70%;
}

.user-message .ai-message-content {
    background: #667eea;
    color: white;
}

.ai-message-content p {
    margin: 0;
    line-height: 1.5;
    font-size: 0.9375rem;
}

.ai-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.875rem;
}

.ai-suggestions button {
    padding: 0.5rem 0.875rem;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 8px;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-suggestions button:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

.ai-chat-input {
    padding: 1.125rem 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 0.75rem;
    background: white;
    border-radius: 0 0 18px 18px;
}

.ai-chat-input input {
    flex: 1;
    padding: 0.75rem 1.125rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.ai-chat-input input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ai-chat-input button {
    padding: 0.75rem 1.125rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.0625rem;
    transition: all 0.2s ease;
}

.ai-chat-input button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.ai-typing {
    display: flex;
    gap: 0.25rem;
    padding: 0.5rem;
}

.ai-typing span {
    width: 7px;
    height: 7px;
    background: #9ca3af;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.ai-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-8px);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.04);
}

::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

/* Responsive */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-panel {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .cta-icon-bg {
        margin: 0 auto;
    }
    
    .cta-features {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .dashboard-sidebar {
        position: fixed;
        left: -280px;
        z-index: 1000;
        transition: left 0.3s ease;
    }
    
    .dashboard-main {
        padding: 1.5rem;
    }
    
    .welcome-banner {
        flex-direction: column;
        gap: 1.25rem;
        text-align: center;
    }
    
    .welcome-title {
        font-size: 1.875rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .metric-value {
        font-size: 2.125rem;
    }
    
    .activity-header,
    .recommendations-header {
        flex-wrap: wrap;
    }
    
    .activity-live {
        margin-left: 0;
    }
}

/* ============================================
   APPLICATIONS PAGE - MODERN DESIGN
   ============================================ */

.applications-page {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
}

/* Page Header */
.applications-page .page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.25);
    position: relative;
    overflow: hidden;
}

.applications-page .page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.applications-page .header-content {
    position: relative;
    z-index: 1;
}

.applications-page .page-title {
    color: white;
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.applications-page .page-title i {
    font-size: 2rem;
}

.applications-page .page-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.125rem;
    font-weight: 400;
}

.applications-page .header-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-ai-analyze,
.btn-export {
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
}

.btn-ai-analyze {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-ai-analyze:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.btn-export {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.btn-export:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* AI Insights Banner */
.applications-page .ai-insights-banner {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    display: flex;
    gap: 2rem;
    align-items: stretch;
}

.insight-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.insight-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.insight-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.insight-icon.excellent {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.insight-icon.good {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.insight-icon.pending {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.insight-icon.low {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    color: white;
}

.insight-content {
    flex: 1;
}

.insight-value {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.insight-label {
    font-size: 0.9375rem;
    color: #64748b;
    font-weight: 500;
}

/* Filters & Search */
.filters-container {
    background: white;
    border-radius: 20px;
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.875rem 1.125rem 0.875rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.search-box i {
    position: absolute;
    left: 1.125rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.125rem;
}

.filter-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9375rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 150px;
}

.filter-select:hover {
    border-color: #667eea;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.btn-clear-filters {
    padding: 0.75rem 1.25rem;
    background: #f1f5f9;
    border: none;
    border-radius: 10px;
    color: #64748b;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear-filters:hover {
    background: #e2e8f0;
    color: #475569;
}

/* Applications Grid */
.applications-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.application-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.application-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.application-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* AI Score Indicator */
.ai-score-indicator {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.score-circle {
    width: 72px;
    height: 72px;
    position: relative;
}

.circular-chart {
    display: block;
    width: 100%;
    height: 100%;
}

.circle-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 3;
}

.circle {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    animation: progress 1s ease-out forwards;
}

.ai-score-indicator.excellent .circle {
    stroke: #fbbf24;
}

.ai-score-indicator.good .circle {
    stroke: #10b981;
}

.ai-score-indicator.moderate .circle {
    stroke: #3b82f6;
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
}

.ai-match-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

.ai-score-indicator.excellent .ai-match-label {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.ai-score-indicator.good .ai-match-label {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.ai-score-indicator.moderate .ai-match-label {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

/* Candidate Info */
.candidate-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-right: 100px;
}

.candidate-avatar {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.candidate-info {
    flex: 1;
}

.candidate-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.candidate-position {
    font-size: 1.0625rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.candidate-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.9375rem;
}

.meta-item i {
    color: #94a3b8;
}

/* Skills & Highlights */
.skills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 1.5rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
}

.highlights-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.highlights-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.highlights-title i {
    color: #667eea;
}

.highlight-item {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    margin-bottom: 0.625rem;
    font-size: 0.9375rem;
    color: #334155;
}

.highlight-item:last-child {
    margin-bottom: 0;
}

.highlight-item i {
    color: #10b981;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* Application Actions */
.application-actions {
    display: flex;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f1f5f9;
}

.btn-action {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
}

.btn-action.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-action.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.btn-action.secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-action.secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.btn-action.reject {
    background: white;
    color: #ef4444;
    border: 2px solid #fee2e2;
}

.btn-action.reject:hover {
    background: #fef2f2;
    border-color: #ef4444;
    transform: translateY(-2px);
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
}

.status-badge.pending {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.status-badge.reviewed {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.status-badge.shortlisted {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.status-badge i {
    font-size: 0.75rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.empty-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #94a3b8;
}

.empty-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.empty-description {
    font-size: 1.0625rem;
    color: #64748b;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Animations */
@keyframes progress {
    0% {
        stroke-dasharray: 0 100;
    }
}

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

.application-card {
    animation: fadeInUp 0.5s ease forwards;
}

.application-card:nth-child(1) { animation-delay: 0.05s; }
.application-card:nth-child(2) { animation-delay: 0.1s; }
.application-card:nth-child(3) { animation-delay: 0.15s; }
.application-card:nth-child(4) { animation-delay: 0.2s; }
.application-card:nth-child(5) { animation-delay: 0.25s; }

/* Responsive */
@media (max-width: 768px) {
    .applications-page .page-header {
        padding: 1.5rem;
    }
    
    .applications-page .page-title {
        font-size: 1.75rem;
    }
    
    .applications-page .ai-insights-banner {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: 100%;
    }
    
    .candidate-header {
        flex-direction: column;
        align-items: start;
        padding-right: 0;
    }
    
    .ai-score-indicator {
        position: relative;
        top: auto;
        right: auto;
        align-self: center;
        margin-top: 1rem;
    }
    
    .application-actions {
        flex-direction: column;
    }
}
