/* Global Styles */
html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    color: #333;
    height: 100vh;
    overflow-x: hidden;
}

/* Hamburger Menu Button */
.hamburger-menu {
    position: fixed;
    top: 40px;
    left: 40px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 8px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.hamburger-menu:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.hamburger-line {
    width: 20px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Dropdown Menu */
.dropdown-menu {
    position: fixed;
    top: 100px;
    left: 40px;
    width: 250px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 10px 0;
    box-sizing: border-box;
    overflow: hidden;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-items li {
    margin: 0;
}

.menu-link {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.menu-link:hover {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

/* Main Content */
.main-content {
    margin-left: 0;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
}

/* Page Styles */
.page {
    display: none;
    background: #ffffff;
    border-radius: 0;
    padding: 30px;
    box-shadow: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    color: #007bff;
    margin-bottom: 10px;
    font-size: 1.8rem;
    font-weight: 600;
}

.page-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Position Management Styles */
.position-list-view {
    position: relative;
}

.positions-container {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.positions-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.action-controls {
    margin-left: auto;
}

.positions-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.position-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    min-height: 120px;
    display: flex;
    flex-direction: column;
}

.position-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.position-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.position-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.position-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-closed {
    background: #f8d7da;
    color: #721c24;
}
.position-details {
    margin-bottom: 9px;
}

.position-details p {
    margin-bottom: 7px;
    margin-top: unset;
    color: #666;
    font-size: 0.9rem;
}

.position-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    flex-shrink: 0;
}

/* Form Styles */
.form-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 20px;
}

.form-header h2 {
    margin: 0;
    color: #007bff;
    flex-grow: 1;
}

.back-button {
    margin-right: 0;
}

/* Step Indicator Styles */
.step-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.step {
    min-width: 100px;
    height: 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    color: white;
    background-color: #ddd;
    position: relative;
    padding: 0 12px;
}

.step.active {
    background-color: #007bff;
}

.step.completed {
    background-color: #28a745;
}

.step-line {
    width: 40px;
    height: 2px;
    background-color: #ddd;
    margin: 0 8px;
}

.step.completed + .step-line {
    background-color: #28a745;
}

.step.active + .step-line {
    background-color: #007bff;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    color: #007bff;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    flex-wrap: wrap;
}

.button-group {
    display: flex;
    gap: 10px;
}

.ai-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.ai-button:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.ai-icon {
    font-size: 16px;
}

/* Button Styles */
.button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}

.button.primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.button.secondary {
    background: #f8f9fa;
    color: #007bff;
    border: 2px solid #667eea;
}

.button.secondary:hover {
    background: #007bff;
    color: white;
}

.button.success {
    background: #28a745;
    color: white;
}

.button.success:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.button.danger {
    background: #dc3545;
    color: white;
}

.button.danger:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.button.info {
    background: #17a2b8;
    color: white;
}

.button.info:hover {
    background: #138496;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.4);
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.fab-icon {
    display: block;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}



/* Blocked Dates */
.blocked-dates-list {
    display: grid;
    gap: 0.5rem;
}

.blocked-date-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.blocked-date-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.blocked-date-date {
    font-weight: 600;
    color: #495057;
}

.blocked-date-reason {
    font-size: 0.875rem;
    color: #6c757d;
}

.blocked-date-type {
    padding: 0.25rem 0.5rem;
    background: #e9ecef;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #495057;
    display: inline-block;
}

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

.blocked-date-actions button {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blocked-date-actions .button-danger {
    background: #dc3545;
    color: white;
}

.blocked-date-actions .button-danger:hover {
    background: #c82333;
}

/* AI Scheduling Suggestions Modal */
.ai-suggestions-modal {
    align-items: center;
    justify-content: center;
}

.ai-suggestions-modal .modal-body {
    padding: 10px 25px 10px 25px;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Interview Questions Styling */
.interview-questions {
    max-height: 500px;
    overflow-y: auto;
}

.question-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.question-category h5 {
    margin: 0 0 0.75rem 0;
    color: #007bff;
    font-size: 1rem;
    font-weight: 600;
}

.question-category ol {
    margin: 0;
    padding-left: 1.5rem;
}

.question-category li {
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.question-category li strong {
    color: #333;
}

.question-category li em {
    color: #666;
    font-size: 0.9rem;
}

.interview-tips {
    margin-top: 1rem;
    padding: 1rem;
    background: #e3f2fd;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
}

.interview-tips h5 {
    margin: 0 0 0.75rem 0;
    color: #1976d2;
    font-size: 1rem;
    font-weight: 600;
}

.interview-tips ul {
    margin: 0;
    padding-left: 1.5rem;
}

.interview-tips li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: #333;
}

/* Shorter suggestion cards */
.suggestion-card {
    padding: 0.75rem !important;
    margin: 0.25rem 0 !important;
}

.suggestion-card h4 {
    margin: 0 0 0.5rem 0 !important;
    font-size: 1rem !important;
}

.suggestion-card p {
    margin: 0.25rem 0 !important;
    font-size: 0.9rem !important;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #333;
}

.empty-state p {
    margin-bottom: 20px;
}

/* Candidates Styles */
.candidates-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    display: flex;
    flex: 1;
    min-width: 250px;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-right: none;
    border-radius: 25px 0 0 25px;
    font-size: 0.9rem;
    outline: none;
}

.search-box:focus-within input {
    border-color: #007bff;
}

.search-button {
    width: 45px;
    height: 45px;
    border: 2px solid #007bff;
    border-left: none;
    background: #007bff;
    color: white;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.search-button:hover {
    background: #0056b3;
}

.search-icon {
    font-size: 1.2rem;
}

.filter-controls {
    display: flex;
    gap: 15px;
}

.filter-controls select {
    padding: 10px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

.candidates-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 300px;
    margin-bottom: 20px;
}

.no-candidates, .no-sourcing-plans {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
    overflow: hidden;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #007bff;
}

.close-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-button:hover {
    color: #333;
}

/* Scheduler Styles */
.scheduler-form {
    max-width: 600px;
    margin: 0 auto;
}

.days-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.day-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.day-checkbox:hover {
    background: #f8f9fa;
}

.day-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
}

.notification.success {
    background: #28a745;
}

.notification.error {
    background: #dc3545;
}

.notification.info {
    background: #17a2b8;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding: 10px;
        margin-left: 0;
    }
    
    .page {
        padding: 20px;
        border-radius: 12px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .days-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .positions-grid {
        gap: 8px;
    }
    
    .positions-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-controls {
        order: -1;
        margin-bottom: 20px;
        margin-left: 0;
    }
    
    .position-actions {
        flex-direction: column;
    }

    .position-card {
        max-width: 100%;
        padding: 16px;
    }
    
    .fab {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Plus Icon Styles */
.plus-icon {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
}

.plus-icon::before,
.plus-icon::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 2px;
}

.plus-icon::before {
    width: 20px;
    height: 3px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.plus-icon::after {
    width: 3px;
    height: 20px;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

/* Plus icon in buttons (non-FAB) */
.button .plus-icon::before,
.button .plus-icon::after,
.quick-action .plus-icon::before,
.quick-action .plus-icon::after {
    background: currentColor;
}

/* Plus icon in FAB */
.fab .plus-icon {
    margin-right: 0;
}

/* Candidates Section Styles */
.candidates-container {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.candidates-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 8px 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 300px;
}

.search-box input {
    border: none;
    outline: none;
    flex: 1;
    padding: 8px;
    font-size: 14px;
}

.search-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #666;
}

.search-button:hover {
    color: #333;
}

.filter-controls {
    display: flex;
    gap: 15px;
}

.filter-controls select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
}

.candidates-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 300px;
    margin-bottom: 20px;
}

.candidate-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    width: 100%;
    min-height: 120px;
    display: flex;
    flex-direction: column;
}

.candidate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.candidate-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.candidate-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.candidate-header h3 .candidate-id-inline {
    margin-left: 8px;
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
    background: #f8f9fa;
    padding: 2px 6px;
    border: 1px solid #dee2e6;
    border-radius: 0; /* square corners */
    font-family: 'Courier New', monospace;
}

.candidate-id {
    margin: 0;
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.candidate-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-accepted {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.status-interviewed {
    background: #cce7ff;
    color: #0066cc;
}

.status-hired {
    background: #d1ecf1;
    color: #0c5460;
}

.status-proceeded {
    background: #e2e3ff;
    color: #5a67d8;
}

.candidate-details {
    margin-bottom: 10px;
}

.candidate-details p {
    margin: 8px 0;
    font-size: 0.9rem;
    color: #555;
}

.candidate-details strong {
    color: #333;
    font-weight: 500;
}

.candidate-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: auto;
    flex-shrink: 0;
}

.candidate-actions .button {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Candidate Detail Modal - Enhanced positioning */
.modal-content {
    background-color: white;
    margin: 0 auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 10px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.3rem;
}

.close-button {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-button:hover {
    background: #e9ecef;
    color: #333;
}

.modal-body {
    padding: 20px 25px 0px 25px;
    flex: 1;
    overflow-y: auto;
    max-height: calc(85vh - 80px);
}

.modal-footer {
    padding: 15px 25px 20px 25px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #fff;
    border-radius: 0 0 12px 12px;
}

.candidate-detail-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.candidate-detail-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1rem;
}

.candidate-detail-section p {
    margin: 10px 0;
    line-height: 1.5;
}

/* Empty state styling */
.no-candidates, .no-positions, .no-sourcing-plans {
    text-align: center;
    padding: 0px 20px 60px 20px;
    width: 100%;
}

.empty-state {
    padding-top: 20px;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}


.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    color: #666;
    margin-bottom: 10px;
}

.empty-state p {
    color: #888;
    margin-bottom: 25px;
}

/* Sourcing Styles */
.sourcing-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Processing Status Dashboard */
.processing-status-dashboard {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.pending-candidates-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.pending-icon {
    font-size: 2.5rem;
    color: #e91e63;
    background: #fce4ec;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.pending-info {
    flex: 1;
}

.pending-title {
    font-size: 1rem;
    color: #495057;
    margin-bottom: 5px;
    font-weight: 500;
}

.pending-count {
    font-size: 2rem;
    font-weight: 700;
    color: #e91e63;
    line-height: 1;
    margin-bottom: 5px;
}

.pending-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Enhanced Candidate Modal */
.candidate-detail-section {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.candidate-detail-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
}

.candidate-detail-section p {
    margin: 8px 0;
    line-height: 1.5;
}

.cv-content, .email-content {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    max-height: 300px;
    overflow-y: auto;
}

.cv-content pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
}

.email-body {
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .candidates-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: auto;
    }

    .pending-candidates-card {
        padding: 15px;
    }

    .pending-count {
        font-size: 1.5rem;
    }
}

    .filter-controls {
        justify-content: center;
    }

    .candidates-list {
        gap: 8px;
    }

    .candidate-card {
        padding: 16px;
        max-width: 100%;
    }

    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 5% auto;
    }

/* ============================================================================
   SOURCING PLAN STYLES
   ============================================================================ */

.sourcing-list-view {
    padding: 0;
}

.sourcing-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.sourcing-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.sourcing-plan-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.sourcing-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.sourcing-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.sourcing-plan-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #2c3e50;
}

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

.sourcing-status.draft {
    background: #e0e0e0;
    color: #666;
}

.sourcing-status.active {
    background: #d1f2eb;
    color: #0d7350;
}

.sourcing-status.completed {
    background: #d4edda;
    color: #155724;
}

.sourcing-channels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.channel-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.8rem;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #555;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.checkbox-item:hover {
    background: #f5f5f5;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-item span {
    font-size: 0.95rem;
    color: #333;
}

.channel-details {
    background: #f9f9f9;
    border-left: 4px solid #4CAF50;
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 8px;
}

.channel-details h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.timeline-steps {
    margin-top: 1rem;
}

.timeline-list {
    position: relative;
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    padding: 1rem 0 1rem 2rem;
    border-left: 2px solid #e0e0e0;
}

.timeline-item:last-child {
    border-left-color: transparent;
}

.timeline-marker {
    position: absolute;
    left: -1.25rem;
    top: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 1;
}

.timeline-content {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timeline-content h5 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1rem;
}

.timeline-content p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #666;
}

/* ============================================================================
   MEDICAL CHECKUP STYLES
   ============================================================================ */

.medical-list-view {
    padding: 0;
}

.medical-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.medical-records-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.medical-record-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 4px solid transparent;
}

.medical-record-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.medical-record-card[data-status="passed"] {
    border-left-color: #28a745;
}

.medical-record-card[data-status="failed"] {
    border-left-color: #dc3545;
}

.medical-record-card[data-status="pending"] {
    border-left-color: #ffc107;
}

.medical-record-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.medical-record-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #2c3e50;
}

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

.medical-status.passed {
    background: #d4edda;
    color: #155724;
}

.medical-status.failed {
    background: #f8d7da;
    color: #721c24;
}

.medical-status.pending {
    background: #fff3cd;
    color: #856404;
}

.medical-status.scheduled {
    background: #d1ecf1;
    color: #0c5460;
}

.medical-info {
    display: grid;
    gap: 0.5rem;
}

.medical-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

.medical-info strong {
    color: #2c3e50;
}

.medical-vital-signs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.vital-item {
    text-align: center;
}

.vital-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.vital-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c3e50;
}

.lab-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.lab-result-item {
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.lab-result-item .label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.lab-result-item .value {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.lab-result-item .normal-range {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.25rem;
}

.medical-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

/* Responsive design for medical */
@media (max-width: 768px) {
    .medical-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .medical-records-list {
        grid-template-columns: 1fr;
    }

    .medical-vital-signs {
        grid-template-columns: repeat(2, 1fr);
    }

    .lab-results {
        grid-template-columns: 1fr;
    }
}

/* Responsive design for sourcing */
@media (max-width: 768px) {
    .sourcing-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .sourcing-plans-grid {
        grid-template-columns: 1fr;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   CANDIDATE STEP BADGES
   ============================================================================ */

.candidate-card {
    position: relative;
}

.candidate-step-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.step-pending-evaluation {
    background: linear-gradient(135deg, #a8c0ff 0%, #3f5efb 100%);
    color: white;
}

.step-screening {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.step-interview {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.step-interview-completed {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.step-medical {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.step-onboarding {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

/* Best-Fit Badge (only shown during screening step) */
.best-fit-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: #fff;
    animation: pulse 2s ease-in-out infinite;
}

/* Pending Evaluation Badge (only shown during pending_evaluation step) */
.pending-evaluation-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #a8c0ff 0%, #3f5efb 100%);
    color: #fff;
    animation: pulse 2s ease-in-out infinite;
}

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

/* Adjust candidate card header to accommodate badge */
.candidate-card .candidate-header {
    padding-right: 140px; /* Make room for the badge */
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
    .candidate-step-badge {
        position: static;
        display: inline-flex;
        margin-bottom: 0.75rem;
        width: fit-content;
    }
    .best-fit-badge {
        position: static;
        display: inline-flex;
        margin-bottom: 0.75rem;
        width: fit-content;
    }
    .pending-evaluation-badge {
        position: static;
        display: inline-flex;
        margin-bottom: 0.75rem;
        width: fit-content;
    }
    
    .candidate-card .candidate-header {
        padding-right: 0;
    }
}

/* Recommendation badges */
.recommendation-accept {
    color: #22c55e;
    font-weight: 600;
}

.recommendation-reject {
    color: #ef4444;
    font-weight: 600;
}

.recommendation-review {
    color: #f59e0b;
    font-weight: 600;
}

/* Update candidate card to show step visually */
.candidate-card[data-step="interview"] {
    border-left: 4px solid #f5576c;
}

.candidate-card[data-step="interview_completed"] {
    border-left: 4px solid #00f2fe;
}

.candidate-card[data-step="medical"] {
    border-left: 4px solid #38f9d7;
}

.candidate-card[data-step="onboarding"] {
    border-left: 4px solid #fee140;
}

.candidate-card[data-step="screening"] {
    border-left: 4px solid #764ba2;
}
