/* Dashboard & Admin Panel Styles */

.dashboard-container {
    display: flex;
    min-height: calc(100vh - 73px);
    background: transparent;
}

.dashboard-sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--gray-100);
    padding: 2rem 0;
    position: sticky;
    top: 73px;
    height: calc(100vh - 73px);
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.02);
}

.sidebar-header {
    padding: 0 1.5rem 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-header h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 0 0.75rem;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: var(--transition-fast);
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.25rem;
    font-weight: 500;
    position: relative;
}

.sidebar-nav .nav-link:hover {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    color: var(--primary-color);
    transform: translateX(4px);
}

.sidebar-nav .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.sidebar-nav .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--white);
    border-radius: 0 3px 3px 0;
}

.sidebar-nav .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar {
    width: 260px;
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    padding: 2rem 0;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: var(--transition);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: var(--gray-100);
    color: var(--primary-color);
}

.dashboard-main {
    flex: 1;
    padding: 2.5rem;
    background: transparent;
    max-width: 100%;
    overflow-x: hidden;
}

.dashboard-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
}

.dashboard-header h1 {
    font-size: 2.25rem;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 1.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
}

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

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    flex-shrink: 0;
    position: relative;
    transition: var(--transition);
}

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

.stat-icon.bg-primary {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(129, 140, 248, 0.1) 100%);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.stat-icon.bg-success {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
    padding: 0;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06), 0 4px 8px rgba(0, 0, 0, 0.03);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, rgba(255, 255, 255, 0.5) 100%);
    border-bottom: 1px solid var(--gray-100);
}

.card-header h5 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.3px;
}

.card-body {
    padding: 1.5rem 2rem
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.stat-icon.bg-info {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(56, 189, 248, 0.1) 100%);
    color: var(--info-color);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.stat-content h3 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0;
    line-height: 1;
    letter-spacing: -1px;
}

.stat-content p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin: 0.25rem 0 0;
    font-weight: 50g-info {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.stat-content p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin: 0;
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
}

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

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

.table th {
    text-align: left;
    padding: 1rem;
    font-weight: 600;
    color: var(--gray-700);
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

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

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.status-badge.under-review {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.status-badge.shortlisted {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.status-badge.accepted {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.status-badge.rejected {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.status-badge.published {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.status-badge.draft {
    background: rgba(156, 163, 175, 0.1);
    color: var(--gray-600);
}

.status-badge.closed {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
}

.score-badge.high {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.score-badge.medium {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.score-badge.low {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.form-builder {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.form-field-preview {
    background: var(--gray-100);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-field-preview:hover {
    background: var(--gray-200);
}

.field-info {
    flex: 1;
}

.field-label {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.field-meta {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.field-actions {
    display: flex;
    gap: 0.5rem;
}

.application-detail {
    max-width: 900px;
    margin: 0 auto;
}

.applicant-header {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.applicant-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gray-500);
}

.applicant-info h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.ai-evaluation {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.ai-score-display {
    text-align: center;
    margin-bottom: 2rem;
}

.ai-score-circle {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
}

.ai-score-label {
    font-size: 1.25rem;
    opacity: 0.9;
}

.ai-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.ai-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.5rem;
}

.ai-section ul {
    list-style: none;
    padding-left: 0;
}

.ai-section ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.ai-section ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    font-size: 1.5rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--gray-700);
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination .active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.filter-bar {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
}

.filter-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-form select,
.filter-form input {
    flex: 1;
    min-width: 200px;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray-600);
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-details-grid {
        grid-template-columns: 1fr;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.75rem;
    }
}
