/* ============================================
   PROFESSIONAL EMPLOYER DASHBOARD STYLES
   Modern SaaS Design System
   ============================================ */

/* Welcome Banner */
.welcome-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 2.5rem 3rem;
    margin-bottom: 2.5rem;
    color: white;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.welcome-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    letter-spacing: -0.5px;
}

.welcome-subtitle {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.95;
}

.date-box {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.date-box i {
    font-size: 1.25rem;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.metric-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.metric-card:hover::before {
    transform: scaleY(1);
}

.metric-icon-wrapper {
    position: relative;
}

.metric-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    position: relative;
    transition: transform 0.3s ease;
}

.metric-card:hover .metric-icon {
    transform: scale(1.1) rotate(-5deg);
}

.metric-primary {
    color: #667eea;
}

.metric-primary .metric-icon {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
}

.metric-success {
    color: #10b981;
}

.metric-success .metric-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(52, 211, 153, 0.1) 100%);
    color: #10b981;
}

.metric-warning {
    color: #f59e0b;
}

.metric-warning .metric-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(251, 191, 36, 0.1) 100%);
    color: #f59e0b;
}

.metric-info {
    color: #3b82f6;
}

.metric-info .metric-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(96, 165, 250, 0.1) 100%);
    color: #3b82f6;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.95rem;
    color: var(--gray-600);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.metric-trend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.metric-trend.positive {
    color: #10b981;
}

/* CTA Panel - Primary Action */
.cta-panel {
    background: linear-gradient(135deg, #f6f8fb 0%, #ffffff 100%);
    border: 2px dashed #667eea;
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.cta-icon-bg {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cta-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0 0 0.75rem;
}

.cta-description {
    font-size: 1.05rem;
    color: var(--gray-600);
    margin: 0 0 1.25rem;
    line-height: 1.6;
}

.cta-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.cta-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-700);
    font-weight: 500;
}

.cta-features i {
    color: #10b981;
    font-size: 1.1rem;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

.btn-cta:hover::before {
    left: 100%;
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.btn-cta:hover .btn-arrow {
    transform: translateX(5px);
}

.cta-help {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Dashboard Section */
.dashboard-section {
    background: white;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    color: #667eea;
    font-size: 1.25rem;
}

.section-title h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.btn-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-link:hover {
    gap: 0.75rem;
    color: #764ba2;
}

/* Jobs Table */
.jobs-table-wrapper {
    overflow-x: auto;
}

.jobs-table {
    width: 100%;
    border-collapse: collapse;
}

.jobs-table thead {
    background: var(--gray-50);
}

.jobs-table th {
    text-align: left;
    padding: 1.25rem 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jobs-table td {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

.job-row {
    transition: background 0.2s ease;
}

.job-row:hover {
    background: var(--gray-50);
}

.job-title-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.job-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1.25rem;
}

.job-name {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.job-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-active {
    background: #10b98115;
    color: #10b981;
}

.status-draft {
    background: #f59e0b15;
    color: #f59e0b;
}

.status-closed {
    background: #ef444415;
    color: #ef4444;
}

.applicant-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-700);
}

/* Match Score */
.match-score {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.score-bar {
    width: 80px;
    height: 8px;
    background: var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.score-text {
    font-weight: 700;
    color: var(--gray-900);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-action:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Empty State */
.empty-state {
    padding: 4rem 2rem;
    text-align: center;
}

.empty-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-50) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gray-400);
}

.empty-state h4 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.empty-state p {
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary-empty {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #667eea;
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.btn-primary-empty:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Sidebar Section */
.dashboard-sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Insights Card */
.insights-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.insights-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.insights-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.insights-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
}

.insights-content {
    padding: 1.5rem;
}

.insight-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    transition: background 0.2s ease;
}

.insight-item:hover {
    background: var(--gray-50);
}

.insight-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.insight-icon.success {
    background: #10b981;
}

.insight-icon.info {
    background: #3b82f6;
}

.insight-icon.warning {
    background: #f59e0b;
}

.insight-icon.primary {
    background: #667eea;
}

.insight-text {
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.5;
}

.insights-footer {
    padding: 0 1.5rem 1.5rem;
}

.btn-insights {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem;
    background: var(--gray-100);
    color: #667eea;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-insights:hover {
    background: #667eea;
    color: white;
}

/* Quick Stats Card */
.quick-stats-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.quick-stats-card h4 {
    margin: 0 0 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.stat-value {
    font-weight: 700;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-mini {
    width: 60px;
    height: 6px;
    background: var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

/* Help Card */
.help-card {
    background: linear-gradient(135deg, #f6f8fb 0%, #ffffff 100%);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

.help-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #667eea15;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #667eea;
}

.help-card h4 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: var(--gray-900);
}

.help-card p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin: 0 0 1.25rem;
}

.btn-help {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.btn-help:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Responsive Design */
@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;
    }
}

@media (max-width: 768px) {
    .welcome-banner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .jobs-table-wrapper {
        overflow-x: scroll;
    }
}

/* --- Styles extracted from dashboard.php --- */

:root {
    --sidebar-width: 260px;
    --header-height: 70px;
    --primary-color: #4f46e5;
    --primary-light: #eef2ff;
    --bg-body: #f3f4f6;
    --bg-card: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Reset & Base - MOVED TO SIDEBAR PARTIAL TO AVOID GLOBAL CONFLICTS */
/* body { ... } */

/* Hide default header - MOVED TO SIDEBAR PARTIAL */
/* .header { display: none !important; } */


.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.app-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.sidebar-menu {
    flex: 1;
    padding: 1.5rem 1rem;
    overflow-y: auto;
}

.menu-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    margin: 1.5rem 0 0.5rem 0.75rem;
    letter-spacing: 0.05em;
}
.menu-category:first-child { margin-top: 0; }

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    margin-bottom: 0.25rem;
}

.menu-item:hover, .menu-item.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.menu-item.highlight {
    background: linear-gradient(135deg, var(--primary-color), #6366f1);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}
.menu-item.highlight:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
    color: white;
    text-decoration: none;
}

.menu-item .badge {
    margin-left: auto;
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
}
.menu-item .badge.warning { background: #f59e0b; }

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.user-mini-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-mini-profile .avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-info .name { font-weight: 600; font-size: 0.9rem; }
.user-info .role { font-size: 0.8rem; color: var(--text-muted); }

/* Main Content */
.app-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-header {
    height: var(--header-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-body);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    width: 300px;
    color: var(--text-muted);
}
.header-search input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    color: var(--text-main);
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: relative;
}
.icon-btn:hover {
    background: var(--bg-body);
    color: var(--primary-color);
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}

.content-wrapper {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Welcome Section */
.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}
.welcome-text h1 {
    font-size: 1.75rem;
    margin: 0 0 0.5rem 0;
}
.welcome-text p {
    color: var(--text-muted);
    margin: 0;
}
.date-display {
    background: var(--bg-card);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.stat-icon.blue { background: #e0e7ff; color: #4f46e5; }
.stat-icon.purple { background: #f3e8ff; color: #9333ea; }
.stat-icon.orange { background: #ffedd5; color: #ea580c; }
.stat-icon.green { background: #dcfce7; color: #16a34a; }

.stat-info .label { display: block; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.25rem; }
.stat-info .value { display: block; font-size: 1.75rem; font-weight: 700; color: var(--text-main); }

.stat-trend {
    margin-top: 1rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.stat-trend.positive { color: #16a34a; }
.stat-trend.warning { color: #ea580c; }

/* AI Action Card */
.ai-action-card {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: var(--radius-lg);
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ai-content { position: relative; z-index: 2; max-width: 60%; }
.ai-content h2 { margin: 0 0 0.75rem 0; font-size: 1.5rem; }
.ai-content p { margin: 0 0 1.5rem 0; opacity: 0.9; line-height: 1.5; }
.ai-content .btn-white {
    background: white;
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s;
}
.ai-content .btn-white:hover { transform: translateY(-2px); }

.ai-visual {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40%;
    z-index: 1;
}
.shape { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.1); }
.shape-1 { width: 200px; height: 200px; top: -50px; right: -50px; }
.shape-2 { width: 150px; height: 150px; bottom: -30px; right: 50px; }

/* Table */
.modern-table { width: 100%; border-collapse: collapse; }
.modern-table th { text-align: left; padding: 1rem 1.5rem; color: var(--text-muted); font-weight: 500; font-size: 0.85rem; border-bottom: 1px solid var(--border-color); }
.modern-table td { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
.modern-table tr:last-child td { border-bottom: none; }

.user-cell { display: flex; align-items: center; gap: 0.75rem; }
.avatar-sm { width: 32px; height: 32px; background: #e0e7ff; color: #4f46e5; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 600; }

.score-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}
.score-badge.high { background: #dcfce7; color: #16a34a; }
.score-badge.medium { background: #fef3c7; color: #d97706; }
.score-badge.low { background: #fee2e2; color: #dc2626; }

.status-pill {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.status-pill.draft { background: #f3f4f6; color: #6b7280; }
.status-pill.published { background: #dcfce7; color: #16a34a; }
.status-pill.closed { background: #fee2e2; color: #dc2626; }

/* Quick Actions */
.quick-actions { padding: 1.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
    padding: 1rem;
    border-radius: var(--radius-md);
    transition: background 0.2s;
}
.action-item:hover { background: var(--bg-body); }
.icon-box { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 0.25rem; }
.icon-box.purple { background: #f3e8ff; color: #9333ea; }
.icon-box.blue { background: #e0e7ff; color: #4f46e5; }
.icon-box.orange { background: #ffedd5; color: #ea580c; }

/* Insights */
.insight-list { padding: 0 1.5rem 1.5rem; }
.insight-item { padding: 1rem 0; border-bottom: 1px solid var(--border-color); }
.insight-item:last-child { border-bottom: none; }
.insight-item p { margin: 0 0 0.5rem 0; font-size: 0.95rem; line-height: 1.5; }
.text-sm { font-size: 0.85rem; color: var(--primary-color); text-decoration: none; }

.empty-state { text-align: center; padding: 2rem; color: var(--text-muted); }
.empty-state i { font-size: 2rem; margin-bottom: 1rem; opacity: 0.5; }

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-body: #0f172a;
        --bg-card: #1e293b;
        --text-main: #f1f5f9;
        --text-muted: #94a3b8;
        --border-color: #334155;
        --primary-light: rgba(79, 70, 229, 0.2);
    }
    .header-search { background: #1e293b; }
    .header-search input { color: white; }
}

/* Explicit Dark Theme Support */
[data-theme='dark'] {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --primary-light: rgba(79, 70, 229, 0.2);
}
[data-theme='dark'] .header-search { background: #1e293b; }
[data-theme='dark'] .header-search input { color: white; }

/* Notification Dropdown */
.header-actions .notification-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: none;
    z-index: 1000;
    overflow: hidden;
}
.header-actions .notification-dropdown.show { display: block; animation: slideDown 0.2s ease-out; }
.header-actions .dropdown-header { padding: 1rem; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.header-actions .dropdown-header h3 { margin: 0; font-size: 1rem; }
.header-actions .dropdown-content { max-height: 300px; overflow-y: auto; }
.header-actions .notification-item { padding: 1rem; display: flex; gap: 0.75rem; border-bottom: 1px solid var(--border-color); transition: background 0.2s; cursor: pointer; }
.header-actions .notification-item:hover { background: var(--bg-body); }
.header-actions .notification-item.unread { background: var(--primary-light); }
.header-actions .notification-item .icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.8rem; }
.header-actions .notification-item .icon.success { background: #dcfce7; color: #16a34a; }
.header-actions .notification-item .icon.primary { background: #e0e7ff; color: #4f46e5; }
.header-actions .notification-item .icon.warning { background: #fef3c7; color: #d97706; }
.header-actions .notification-item .text p { margin: 0 0 0.25rem; font-size: 0.9rem; line-height: 1.4; }
.header-actions .notification-item .text span { font-size: 0.75rem; color: var(--text-muted); }
.header-actions .dropdown-footer { padding: 0.75rem; text-align: center; border-top: 1px solid var(--border-color); }
.header-actions .dropdown-footer a { color: var(--primary-color); text-decoration: none; font-size: 0.9rem; font-weight: 500; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dark Mode for Dropdown */
[data-theme='dark'] .header-actions .notification-dropdown { background: #1e293b; border-color: #334155; }
[data-theme='dark'] .header-actions .notification-item:hover { background: #0f172a; }
[data-theme='dark'] .header-actions .notification-item.unread { background: rgba(79, 70, 229, 0.1); }


/* --- Styles extracted from jobs/index.php --- */

/* Filter Bar */
.filter-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.filter-group { display: flex; gap: 0.5rem; background: var(--bg-card); padding: 0.25rem; border-radius: 10px; border: 1px solid var(--border-color); }
.filter-chip { padding: 0.5rem 1rem; border-radius: 8px; text-decoration: none; color: var(--text-muted); font-size: 0.9rem; font-weight: 500; transition: all 0.2s; }
.filter-chip:hover { color: var(--text-main); }
.filter-chip.active { background: var(--primary-light); color: var(--primary-color); }

.search-box { position: relative; }
.search-box input { padding: 0.6rem 1rem 0.6rem 2.5rem; border-radius: 8px; border: 1px solid var(--border-color); width: 250px; outline: none; background: transparent; color: var(--text-main); }
.search-box i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); }

/* Jobs Grid */
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }

.job-card { background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border-color); padding: 1.5rem; transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; }
.job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.job-header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.job-icon { width: 48px; height: 48px; background: var(--primary-light); color: var(--primary-color); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.job-info h3 { margin: 0 0 0.25rem; font-size: 1.1rem; line-height: 1.4; color: var(--text-main); }
.job-location { font-size: 0.85rem; color: var(--text-muted); }
.job-status { margin-left: auto; }

.status-badge { padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.status-badge.published { background: #dcfce7; color: #16a34a; }
.status-badge.draft { background: #f3f4f6; color: #6b7280; }
.status-badge.closed { background: #fee2e2; color: #dc2626; }

.job-stats { display: flex; justify-content: space-between; padding: 1rem 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); margin-bottom: 1rem; }
.stat { text-align: center; }
.stat .value { display: block; font-weight: 700; font-size: 1.1rem; color: var(--text-main); }
.stat .label { font-size: 0.75rem; color: var(--text-muted); }

.job-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.date { font-size: 0.85rem; color: var(--text-muted); }
.actions { display: flex; gap: 0.5rem; }
.btn-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--text-muted); transition: all 0.2s; border: 1px solid transparent; text-decoration: none; }
.btn-icon:hover { background: var(--bg-body); color: var(--primary-color); border-color: var(--border-color); }
.btn-text { font-size: 0.9rem; color: var(--primary-color); font-weight: 500; text-decoration: none; padding: 0.25rem 0.5rem; }
.btn-text:hover { text-decoration: underline; }

.btn-primary { background: var(--primary-color); color: white; padding: 0.6rem 1.2rem; border-radius: 8px; text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 0.5rem; transition: background 0.2s; }
.btn-primary:hover { background: #4338ca; }

.empty-state-card { grid-column: 1 / -1; text-align: center; padding: 4rem 2rem; background: var(--bg-card); border-radius: var(--radius-lg); border: 1px dashed var(--border-color); }
.empty-icon { font-size: 3rem; color: var(--text-muted); opacity: 0.5; margin-bottom: 1.5rem; }
.empty-state-card h3 { margin: 0 0 0.5rem; color: var(--text-main); }
.empty-state-card p { color: var(--text-muted); margin-bottom: 1.5rem; }


/* --- Styles extracted from applications/index.php --- */

/* Filter Bar (Applications) */
.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: var(--bg-card);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
}
.filter-group { display: flex; gap: 1rem; flex-wrap: wrap; width: 100%; }
.select-wrapper { position: relative; flex: 1; min-width: 200px; }
.select-wrapper i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.select-wrapper select {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-body);
    color: var(--text-main);
    outline: none;
    cursor: pointer;
    appearance: none;
}
.select-wrapper select:focus { border-color: var(--primary-color); }

/* Table Styles */
.table-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.modern-table { width: 100%; border-collapse: collapse; }
.modern-table th {
    text-align: left;
    padding: 1rem 1.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    background: #f9fafb;
}
.modern-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}
.modern-table tr:last-child td { border-bottom: none; }
.modern-table tr:hover { background-color: #f9fafb; }

.user-info-cell { display: flex; align-items: center; gap: 1rem; }
.avatar-sm {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}
.user-info-cell .name { font-weight: 600; color: var(--text-main); }
.user-info-cell .email { font-size: 0.85rem; color: var(--text-muted); }

.score-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}
.score-badge.high { background: #dcfce7; color: #16a34a; }
.score-badge.medium { background: #fef9c3; color: #ca8a04; }
.score-badge.low { background: #fee2e2; color: #dc2626; }

.status-pill {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}
.status-pill.pending { background: #f3f4f6; color: #6b7280; }
.status-pill.reviewed { background: #e0f2fe; color: #0284c7; }
.status-pill.interview { background: #f3e8ff; color: #9333ea; }
.status-pill.hired { background: #dcfce7; color: #16a34a; }
.status-pill.rejected { background: #fee2e2; color: #dc2626; }

.btn-icon-sm {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.btn-icon-sm:hover { background: var(--bg-body); color: var(--primary-color); }

.btn-outline {
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-main);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--primary-color); color: var(--primary-color); }

.empty-state-card {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-color);
}
.empty-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}
.empty-state-card h3 { margin: 0 0 0.5rem; color: var(--text-main); }
.empty-state-card p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* Dark Mode Overrides */
[data-theme='dark'] .modern-table th { background: #1e293b; }
[data-theme='dark'] .modern-table tr:hover { background-color: #334155; }

