/* ===== Admin Portal Styles ===== */

/* Visually hidden but accessible to screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Login Section ===== */
.admin-body {
    background: linear-gradient(135deg, #1A1A2E 0%, #2a2a4e 50%, #1A1A2E 100%);
    min-height: 100vh;
}

.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-container {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 48px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.5s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    height: 60px;
    margin-bottom: 24px;
}

.login-header h1 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-header p {
    font-size: 15px;
    color: var(--text-secondary);
}

.login-form {
    margin-bottom: 32px;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
}

.toggle-password:hover {
    opacity: 1;
}

.error-message {
    background: #FEE2E2;
    color: #DC2626;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-message::before {
    content: '⚠️';
}

.login-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.back-link {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary-dark);
}

/* ===== Admin Dashboard ===== */
.admin-dashboard {
    min-height: 100vh;
    background: var(--bg-secondary);
}

.admin-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-logo {
    height: 45px;
}

.admin-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-email {
    font-size: 14px;
    color: var(--text-secondary);
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* ===== Admin Main ===== */
.admin-main {
    padding: 32px 24px;
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== Admin Stats ===== */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.admin-stat-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.admin-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.stat-icon-wrapper.blue {
    background: rgba(21, 101, 192, 0.1);
}

.stat-icon-wrapper.yellow {
    background: rgba(245, 158, 11, 0.1);
}

.stat-icon-wrapper.green {
    background: rgba(16, 185, 129, 0.1);
}

.stat-icon-wrapper.purple {
    background: rgba(139, 92, 246, 0.1);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== Admin Controls ===== */
.admin-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

.search-box input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    font-size: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

.filter-group {
    display: flex;
    gap: 12px;
}

.filter-group select {
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    cursor: pointer;
    transition: var(--transition);
    min-width: 180px;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-icon-only {
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* ===== Applications Table ===== */
.applications-table-wrapper {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.applications-table {
    width: 100%;
    border-collapse: collapse;
}

.applications-table th,
.applications-table td {
    padding: 16px 20px;
    text-align: left;
}

.applications-table th {
    background: var(--bg-secondary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.applications-table td {
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
}

.applications-table tr:last-child td {
    border-bottom: none;
}

.applications-table tr:hover td {
    background: var(--bg-secondary);
}

.code-cell {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.status-1 {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.status-badge.status-2 {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.status-badge.status-3 {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

.status-badge.status-4 {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.status-badge.status-archived {
    background: rgba(107, 114, 128, 0.1);
    color: #6B7280;
    font-size: 11px;
    margin-left: 4px;
}

.action-btn {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    background: var(--primary-color);
    color: white;
}

.action-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ===== Empty & Loading States ===== */
.empty-state,
.loading-state {
    padding: 80px 24px;
    text-align: center;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 15px;
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p {
    font-size: 15px;
    color: var(--text-secondary);
}

/* ===== Premium Edit Modal ===== */
.edit-modal {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25), 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 0; /* Remove default padding, sections have their own */
}

/* Custom scrollbar for edit modal */
.edit-modal::-webkit-scrollbar {
    width: 8px;
}

.edit-modal::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.edit-modal::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.edit-modal::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Premium Modal Header */
.modal-header-premium {
    background: linear-gradient(135deg, #1565C0 0%, #0D47A1 50%, #1A237E 100%);
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.modal-header-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.modal-header-premium::after {
    content: '';
    position: absolute;
    bottom: -60%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1;
}

.header-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-text h2 {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.3px;
}

.header-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 4px 0 0;
    font-weight: 400;
}

.close-btn-premium {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn-premium:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

/* Candidate Profile Card */
.candidate-profile-card {
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
    margin: 24px;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e3e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8edf5;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #1565C0, #1976D2);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 8px 24px rgba(21, 101, 192, 0.25);
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
}

.profile-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-code {
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    color: #1565C0;
    font-family: 'SF Mono', 'Monaco', monospace;
    letter-spacing: 0.5px;
}

.badge-date {
    background: linear-gradient(135deg, #F3E5F5, #E1BEE7);
    color: #7B1FA2;
}

/* Profile Details Grid */
.profile-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.detail-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: white;
    border-radius: 12px;
    border: 1px solid #eef1f6;
    transition: all 0.2s ease;
}

.detail-card:hover {
    border-color: #d0d9e8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.detail-icon {
    font-size: 20px;
    width: 40px;
    height: 40px;
    background: #f5f7fb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-content {
    flex: 1;
    min-width: 0;
}

.detail-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #8492a6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.detail-value {
    font-size: 14px;
    color: #1a202c;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Collapsible Sections */
.profile-sections {
    padding: 0 24px 12px;
}

.section-card {
    background: white;
    border-radius: 14px;
    border: 1px solid #e8edf5;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.section-card:hover {
    border-color: #d0d9e8;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    background: linear-gradient(180deg, #fafbfd 0%, #f5f7fb 100%);
    transition: background 0.2s ease;
}

.section-header:hover {
    background: linear-gradient(180deg, #f5f7fb 0%, #eef1f6 100%);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    font-size: 18px;
}

.section-title h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
}

.ai-badge {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-toggle {
    font-size: 12px;
    color: #8492a6;
    transition: transform 0.3s ease;
}

.section-content {
    padding: 16px 20px;
    border-top: 1px solid #eef1f6;
}

.section-content.collapsed {
    display: none;
}

/* Resume Section Styles */
.resume-row,
.oasis-sync-row,
.onboarding-row,
.document-signing-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f3f8;
}

.resume-row:last-child,
.oasis-sync-row:last-child,
.onboarding-row:last-child,
.document-signing-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.resume-label,
.oasis-label,
.onboarding-label,
.document-signing-label {
    font-size: 13px;
    font-weight: 600;
    color: #5a6578;
    width: 140px;
    flex-shrink: 0;
}

.resume-container {
    flex: 1;
}

.no-resume,
.no-packet {
    color: #8492a6;
    font-style: italic;
    font-size: 13px;
}

/* Document Signing Toggle */
.document-signing-container {
    flex: 1;
}

.document-signing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.document-signing-toggle input {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 48px;
    height: 26px;
    background: #e2e8f0;
    border-radius: 26px;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.document-signing-toggle input:checked + .toggle-slider {
    background: linear-gradient(135deg, #10b981, #059669);
}

.document-signing-toggle input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

.toggle-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
}

.document-signing-toggle input:checked ~ .toggle-label {
    color: #059669;
}

.signing-help-text {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 6px;
    margin-left: 60px;
}

.oasis-sync-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.oasis-status {
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 500;
}

.btn-oasis {
    background: linear-gradient(135deg, #7C3AED, #5B21B6);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-oasis:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-oasis:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Work History & Skills Section */
.subsection {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef1f6;
}

.subsection:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.subsection-title {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 12px;
}

.work-history-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.work-history-item {
    background: #f8fafc;
    border-radius: 10px;
    padding: 14px;
    border-left: 3px solid #3b82f6;
}

.work-history-item .job-title {
    font-weight: 600;
    color: #1a202c;
    font-size: 15px;
}

.work-history-item .employer {
    color: #3b82f6;
    font-size: 14px;
    margin-top: 2px;
}

.work-history-item .duration-location {
    font-size: 12px;
    color: #8492a6;
    margin-top: 6px;
    display: flex;
    gap: 12px;
}

.work-history-item .duties {
    font-size: 13px;
    color: #5a6578;
    margin-top: 8px;
    line-height: 1.5;
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #eef1f6;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4338ca;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

.qualifications-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qualification-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.qualification-item .q-label {
    font-size: 12px;
    color: #8492a6;
    min-width: 100px;
    font-weight: 500;
}

.qualification-item .q-value {
    font-size: 14px;
    color: #1a202c;
    font-weight: 500;
}

.no-data {
    color: #8492a6;
    font-style: italic;
    font-size: 13px;
}

/* AI Section Styles */
.ai-section .section-header {
    background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
}

.ai-section .section-header:hover {
    background: linear-gradient(180deg, #dcfce7 0%, #bbf7d0 100%);
}

.ai-job-matches {
    min-height: 40px;
}

.ai-loading {
    color: #5a6578;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.no-matches {
    color: #8492a6;
    font-style: italic;
    font-size: 13px;
}

/* Premium Form Styling */
.edit-form-premium {
    padding: 0 24px 24px;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eef1f6;
}

.title-icon {
    font-size: 20px;
}

.form-section-title h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #1a202c;
}

/* Status Pipeline */
.status-pipeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 20px 0;
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
    border-radius: 16px;
    border: 1px solid #e8edf5;
}

.pipeline-step {
    cursor: pointer;
}

.pipeline-step input {
    display: none;
}

.pipeline-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 20px;
    border-radius: 14px;
    transition: all 0.3s ease;
    position: relative;
    min-width: 100px;
}

.pipeline-card:hover {
    background: rgba(21, 101, 192, 0.04);
}

.pipeline-step input:checked + .pipeline-card {
    background: linear-gradient(180deg, #E3F2FD 0%, #BBDEFB 100%);
    box-shadow: 0 4px 16px rgba(21, 101, 192, 0.15);
}

.pipeline-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.pipeline-icon.received {
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
}

.pipeline-icon.review {
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
}

.pipeline-icon.interview {
    background: linear-gradient(135deg, #F3E5F5, #E1BEE7);
}

.pipeline-icon.decision {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
}

.pipeline-step input:checked + .pipeline-card .pipeline-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pipeline-name {
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.pipeline-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d0d9e8;
    margin-top: 6px;
    transition: all 0.3s ease;
}

.pipeline-step input:checked + .pipeline-card .pipeline-indicator {
    background: linear-gradient(135deg, #1565C0, #1976D2);
    box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.2);
}

.pipeline-connector {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #e8edf5, #d0d9e8);
    border-radius: 2px;
}

/* Dual Form Rows */
.form-row-dual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group-premium {
    background: white;
    border-radius: 14px;
    padding: 18px;
    border: 1px solid #e8edf5;
    transition: all 0.2s ease;
}

.form-group-premium:focus-within {
    border-color: #1565C0;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

.form-group-premium label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.label-icon {
    font-size: 16px;
}

.label-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.label-tag.visible {
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
    color: #1D4ED8;
}

.label-tag.internal {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    color: #92400E;
}

.form-group-premium textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #e8edf5;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s ease;
    background: #fafbfd;
}

.form-group-premium textarea:focus {
    outline: none;
    border-color: #1565C0;
    background: white;
}

.form-group-premium textarea::placeholder {
    color: #9ca3af;
}

.field-info {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 12px;
    color: #6b7280;
}

.info-icon {
    font-size: 14px;
}

/* Forms Upload Section */
.forms-upload-section,
.tax-docs-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-upload,
.btn-tax {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-upload {
    background: linear-gradient(135deg, #f5f7fb, #eef1f6);
    color: #2d3748;
    border: 2px dashed #d0d9e8;
}

.btn-upload:hover {
    background: linear-gradient(135deg, #eef1f6, #e4e8f0);
    border-color: #1565C0;
    color: #1565C0;
}

.btn-tax {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
}

.btn-tax:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.uploaded-forms-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tax-doc-status {
    font-size: 12px;
    color: #059669;
}

/* Premium Footer */
.modal-footer-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #eef1f6;
}

.footer-actions-left,
.footer-actions-right {
    display: flex;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-icon {
    font-size: 16px;
}

.btn-archive {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    color: #92400E;
}

.btn-archive:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.btn-delete {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    color: #DC2626;
}

.btn-delete:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.btn-cancel {
    background: #f5f7fb;
    color: #5a6578;
}

.btn-cancel:hover {
    background: #eef1f6;
}

.btn-save {
    background: linear-gradient(135deg, #1565C0, #0D47A1);
    color: white;
    padding: 14px 32px;
}

.btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(21, 101, 192, 0.3);
}

/* Legacy Support - keeping old classes working */
.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.modal-actions-left {
    display: flex;
    gap: 8px;
}

.modal-actions-right {
    display: flex;
    gap: 12px;
}

/* Responsive Design for Premium Modal */
@media (max-width: 900px) {
    .edit-modal {
        max-width: 95vw;
    }
    
    .profile-details-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row-dual {
        grid-template-columns: 1fr;
    }
    
    .status-pipeline {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .pipeline-connector {
        display: none;
    }
    
    .pipeline-card {
        min-width: 80px;
        padding: 12px 16px;
    }
    
    .modal-footer-premium {
        flex-direction: column;
        gap: 16px;
    }
    
    .footer-actions-left,
    .footer-actions-right {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Toast Notification ===== */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-dark);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-xl);
    z-index: 3000;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.success {
    background: #059669;
}

.toast.error {
    background: #DC2626;
}

.toast-icon {
    font-size: 20px;
}

.toast-message {
    font-size: 14px;
    font-weight: 500;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .applications-table-wrapper {
        overflow-x: auto;
    }
    
    .applications-table {
        min-width: 800px;
    }
}

/* ===== Admin Tabs ===== */
.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--bg-primary);
    padding: 8px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.3);
}

.tab-icon {
    font-size: 18px;
}

.tab-content {
    display: block;
}

.tab-content.hidden {
    display: none;
}

/* ===== Jobs Header ===== */
.jobs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.jobs-header-info h2 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.jobs-header-info p {
    font-size: 14px;
    color: var(--text-secondary);
}

.jobs-stats {
    margin-bottom: 24px;
}

.stat-icon-wrapper.red {
    background: rgba(239, 68, 68, 0.1);
}

/* ===== Jobs Table ===== */
.jobs-table .job-title-cell {
    font-weight: 600;
    color: var(--text-primary);
}

.jobs-table .job-company {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.job-keywords-preview {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.job-keywords-preview .job-keyword-tag {
    font-size: 0.65rem;
    padding: 2px 6px;
}

.job-status-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.job-status-cell.active {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.job-status-cell.paused {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.job-status-cell.closed {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.action-btns {
    display: flex;
    gap: 8px;
}

.action-btn.edit {
    background: var(--primary-color);
}

.action-btn.delete {
    background: #EF4444;
}

.action-btn.delete:hover {
    background: #DC2626;
}

/* ===== Job Modal ===== */
.job-modal {
    max-width: 700px;
}

.job-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.job-status-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.job-status-option {
    cursor: pointer;
}

.job-status-option input {
    display: none;
}

.job-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.job-status-badge.active {
    color: #10B981;
}

.job-status-badge.paused {
    color: #F59E0B;
}

.job-status-badge.closed {
    color: #EF4444;
}

.job-status-option:hover .job-status-badge {
    background: var(--bg-secondary);
}

.job-status-option input:checked + .job-status-badge {
    border-color: currentColor;
    background: currentColor;
    color: white;
}

.job-status-option input:checked + .job-status-badge.active {
    background: #10B981;
    border-color: #10B981;
}

.job-status-option input:checked + .job-status-badge.paused {
    background: #F59E0B;
    border-color: #F59E0B;
}

.job-status-option input:checked + .job-status-badge.closed {
    background: #EF4444;
    border-color: #EF4444;
}

/* Publish to Website Checkbox */
.publish-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(59, 130, 246, 0.05);
    border: 2px dashed rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.publish-checkbox-wrapper:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.5);
}

.publish-checkbox-wrapper input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    accent-color: #3B82F6;
    cursor: pointer;
}

.publish-checkbox-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 600;
    color: var(--text-primary);
}

.publish-checkbox-label small {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 12px;
}

.publish-checkbox-wrapper:has(input:checked) {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10B981;
    border-style: solid;
}

.publish-checkbox-wrapper:has(input:checked) .publish-checkbox-label {
    color: #10B981;
}

/* Published/Unpublished badges in job table */
.published-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 8px;
}

.unpublished-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(107, 114, 128, 0.15);
    color: #6B7280;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
    margin-left: 8px;
}

@media (max-width: 768px) {
    .admin-header-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .admin-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: none;
    }
    
    .filter-group {
        justify-content: space-between;
    }
    
    .filter-group select {
        flex: 1;
    }
    
    .admin-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .status-options {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 32px 24px;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .admin-user {
        flex-direction: column;
        gap: 8px;
    }
    
    .user-email {
        font-size: 12px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
}

/* ===== Clients Tab Styles ===== */
.clients-header-actions {
    display: flex;
    gap: 12px;
}

.clients-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.client-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.client-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.client-card.priority {
    border: 2px solid #F59E0B;
}

.client-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 20px 0;
}

.client-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.client-name .priority-star {
    color: #F59E0B;
}

.client-location {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.client-card-actions {
    display: flex;
    gap: 4px;
}

.client-action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    transition: var(--transition);
}

.client-action-btn:hover {
    background: var(--primary-color);
    color: white;
}

.client-action-btn.delete:hover {
    background: #EF4444;
}

.client-card-body {
    padding: 16px 20px;
}

.client-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.client-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.client-tag.jobs {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.client-tag.busline {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.client-tag.priority {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.client-jobs-preview {
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
}

.client-jobs-preview h5 {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.client-job-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-light);
    font-size: 13px;
}

.client-job-item:last-child {
    border-bottom: none;
}

.client-job-title {
    color: var(--text-primary);
    font-weight: 500;
}

.client-job-pay {
    color: #10B981;
    font-weight: 600;
}

.client-no-jobs {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

/* ===== Client Modal ===== */
.client-modal {
    max-width: 650px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* ===== Import Modal ===== */
.import-modal {
    max-width: 700px;
}

.import-instructions {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.import-preview {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 16px;
    max-height: 200px;
    overflow-y: auto;
}

.import-preview h4 {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#importPreviewContent {
    font-size: 13px;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-light);
}

.preview-item:last-child {
    border-bottom: none;
}

.preview-item .name {
    font-weight: 600;
    color: var(--text-primary);
}

.preview-item .jobs-count {
    font-size: 11px;
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    padding: 2px 8px;
    border-radius: 10px;
}

/* ===== View Client Modal ===== */
.view-client-modal {
    max-width: 750px;
}

.view-client-body {
    max-height: 60vh;
    overflow-y: auto;
}

.client-info-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.client-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-primary);
}

.detail-icon {
    font-size: 16px;
}

.client-notes-section {
    background: #FEF3C7;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.client-notes-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #92400E;
    margin-bottom: 12px;
}

.client-notes-section pre {
    font-family: inherit;
    font-size: 13px;
    color: #78350F;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.6;
    margin: 0;
}

.client-jobs-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.client-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.client-job-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 16px;
    border-left: 4px solid var(--primary-color);
}

.client-job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.client-job-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.client-job-card-pay {
    font-size: 14px;
    font-weight: 700;
    color: #10B981;
}

.client-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.client-job-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.client-job-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 10px;
    line-height: 1.5;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-job-candidates {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-light);
}

.candidate-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-right: 6px;
    margin-bottom: 6px;
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

.no-jobs-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-style: italic;
}

@media (max-width: 768px) {
    .clients-list {
        grid-template-columns: 1fr;
    }
    
    .clients-header-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .clients-header-actions .btn {
        width: 100%;
    }
}

/* Field Hint */
.field-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.field-hint.email-hint {
    margin-top: 8px;
    padding: 8px 12px;
    background: #e8f5e9;
    border-radius: 6px;
    color: #2e7d32;
    border-left: 3px solid #4caf50;
}

/* Candidate Message Field */
#candidateMessage {
    border: 2px solid #e3f2fd;
    background: #fafafa;
}

#candidateMessage:focus {
    border-color: var(--primary-color);
    background: white;
}

/* Forms Upload Section */
.forms-upload-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Tax Documents Section */
.tax-docs-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tax-doc-status {
    font-size: 13px;
    padding: 8px 0;
}

.tax-doc-status .success-text {
    color: #16a34a;
    font-weight: 500;
}

.tax-doc-status .error-text {
    color: #dc2626;
    font-weight: 500;
}

.btn-secondary {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-secondary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.uploaded-forms-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.uploaded-form-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f5f5f5;
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.uploaded-form-item .form-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.uploaded-form-item .form-icon {
    font-size: 18px;
}

.uploaded-form-item .remove-form-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.uploaded-form-item .remove-form-btn:hover {
    opacity: 1;
    color: #dc2626;
}

/* Resume Container Styles */
.resume-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.no-resume {
    color: var(--text-light);
    font-style: italic;
    font-size: 13px;
    margin: 0;
}

.resume-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #E3F2FD;
    border: 1px solid #90CAF9;
    border-radius: var(--radius-sm);
}

.resume-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.resume-icon {
    font-size: 18px;
}

.resume-name {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

.resume-download-btn {
    font-size: 12px !important;
    padding: 6px 12px !important;
    text-decoration: none;
}

/* OASIS Sync Styles */
.oasis-sync-row {
    margin-top: 8px;
}

.oasis-sync-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.oasis-status {
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.oasis-status.synced {
    background: #E8F5E9;
    color: #2E7D32;
}

.oasis-status.pending {
    background: #FFF8E1;
    color: #F57C00;
}

.oasis-status.not-synced {
    background: #FFF3E0;
    color: #EF6C00;
}

.oasis-status.error {
    background: #FFEBEE;
    color: #C62828;
}

.oasis-btn {
    font-size: 12px !important;
    padding: 6px 12px !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.oasis-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Client Dispatch Link Styles */
.dispatch-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    margin-top: 8px;
}

.dispatch-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.3);
}

.dispatch-link .dispatch-icon {
    font-size: 16px;
}

.client-no-dispatch {
    color: var(--text-light);
    font-style: italic;
    font-size: 13px;
    margin: 8px 0 0 0;
}

.client-tag.dispatch {
    background: #E3F2FD;
    color: #1565C0;
}

/* Dispatch Section in View Modal */
.client-dispatch-section {
    margin: 20px 0;
    padding: 16px;
    background: #F5F7FA;
    border-radius: var(--radius-md);
}

.client-dispatch-section h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: var(--text-primary);
}

.dispatch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.no-dispatch-message {
    color: var(--text-light);
    font-style: italic;
    font-size: 13px;
    margin: 0;
}

/* ===== AI Job Matching Styles ===== */

/* Keyword Tags for Job Form */
.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.keyword-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    color: #2E7D32;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #A5D6A7;
}

.keyword-tag .remove-keyword {
    background: none;
    border: none;
    color: #2E7D32;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    margin-left: 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.keyword-tag .remove-keyword:hover {
    opacity: 1;
}

/* AI Job Matches Section in Application Modal */
.ai-matches-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.ai-job-matches {
    margin-top: 8px;
}

.ai-job-matches .ai-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 12px;
    background: #F5F7FA;
    border-radius: var(--radius-md);
}

.ai-job-matches .ai-loading .spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ai-job-matches .no-matches {
    color: var(--text-light);
    font-style: italic;
    font-size: 13px;
    padding: 12px;
    background: #F5F7FA;
    border-radius: var(--radius-md);
}

.ai-match-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    border-left: 4px solid #1976D2;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ai-match-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.2);
}

.ai-match-card.top-match {
    background: linear-gradient(135deg, #FFF8E1, #FFECB3);
    border-left-color: #FF9800;
}

.ai-match-card.top-match .match-rank {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

.match-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #1976D2, #1565C0);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.match-details {
    flex: 1;
    min-width: 0;
}

.match-job-title {
    font-weight: 600;
    font-size: 14px;
    color: #1A1A2E;
    margin-bottom: 4px;
}

.match-company {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.match-score {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.match-score.high {
    color: #2E7D32;
}

.match-score.medium {
    color: #F57C00;
}

.match-score.low {
    color: #757575;
}

.match-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.match-keyword {
    background: rgba(255, 255, 255, 0.8);
    color: #1565C0;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.match-keyword.matched {
    background: #C8E6C9;
    color: #2E7D32;
}

/* Match Reasons */
.match-reasons {
    margin-top: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
}

.match-reason {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #555;
    margin-bottom: 4px;
}

.match-reason:last-child {
    margin-bottom: 0;
}

.match-reason .material-icons {
    font-size: 14px;
    color: #4CAF50;
}

/* AI Badge */
.ai-badge-small {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #7C4DFF, #651FFF);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 8px;
}

/* ===== Onboarding Packet Section ===== */
.onboarding-packet-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.onboarding-packet-container {
    margin-top: 8px;
    width: 100%;
}

.onboarding-packet-container .no-packet {
    color: var(--text-light);
    font-style: italic;
    font-size: 13px;
    padding: 12px;
    background: #F5F7FA;
    border-radius: var(--radius-md);
}

.packet-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    border-radius: var(--radius-md);
    border-left: 4px solid #4CAF50;
}

.packet-status-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.packet-status-icon {
    font-size: 20px;
}

.packet-status-text {
    font-size: 14px;
    font-weight: 600;
    color: #2E7D32;
}

.packet-status-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.view-packet-btn {
    background: #4CAF50;
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.view-packet-btn:hover {
    background: #43A047;
    transform: translateY(-1px);
}

/* Onboarding Packet Modal */
.onboarding-modal {
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.onboarding-packet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #F5F7FA;
    border-bottom: 1px solid var(--border-color);
}

.packet-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 4px 0;
}

.packet-info strong {
    color: var(--text-primary);
}

.packet-actions {
    display: flex;
    gap: 8px;
}

.onboarding-packet-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: white;
}

.packet-section {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}

.packet-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1565C0;
}

.packet-field {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #E5E7EB;
}

.packet-field:last-child {
    border-bottom: none;
}

.packet-field-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    width: 160px;
    flex-shrink: 0;
}

.packet-field-value {
    font-size: 14px;
    color: var(--text-primary);
    flex: 1;
}

.packet-signature {
    font-family: 'Brush Script MT', 'Dancing Script', cursive;
    font-size: 24px;
    color: #1565C0;
    border-bottom: 2px solid #1565C0;
    padding: 8px 12px;
    display: inline-block;
    background: #E3F2FD;
    border-radius: 4px;
    margin-top: 4px;
}

/* Print styles for onboarding packet */
@media print {
    .onboarding-modal {
        max-width: 100%;
        max-height: none;
        box-shadow: none;
    }
    
    .onboarding-packet-header.no-print,
    .modal-header .close-btn {
        display: none !important;
    }
    
    .onboarding-packet-content {
        overflow: visible;
        padding: 0;
    }
    
    .packet-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ===== Notification Center Styles ===== */

/* Notification Badge on Tab */
.notification-badge {
    background: #e74c3c;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
    min-width: 18px;
    text-align: center;
    display: inline-block;
}

.notification-badge.hidden {
    display: none;
}

/* Notification Stats Cards */
.notification-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.notification-stat-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Notification Filters */
.notification-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.filter-chip {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.filter-chip:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.filter-chip.active {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

/* Notifications List */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-item {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    cursor: pointer;
}

.notification-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.notification-item.unread {
    border-left: 4px solid var(--accent-blue);
    background: linear-gradient(to right, rgba(30, 58, 95, 0.05), var(--bg-primary));
}

.notification-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.notification-icon.message {
    background: #E3F2FD;
}

.notification-icon.form {
    background: #E8F5E9;
}

.notification-icon.signed {
    background: #F3E5F5;
}

.notification-icon.upload {
    background: #FFF8E1;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.notification-time {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.notification-message {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.notification-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.notification-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.notification-actions {
    display: flex;
    gap: 8px;
}

.notification-action-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.notification-action-btn:hover {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

.notification-action-btn.view-btn {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

.notifications-header-actions {
    display: flex;
    gap: 12px;
}

/* Empty Notifications State */
#emptyNotifications {
    text-align: center;
    padding: 60px 20px;
}

/* Notification date separator */
.notification-date-separator {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 12px;
}

/* Responsive Notifications */
@media (max-width: 768px) {
    .notification-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .notification-item {
        padding: 12px 16px;
    }
    
    .notification-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .notifications-header-actions {
        flex-wrap: wrap;
    }
}