/* Rehire Check Page Styles */

.rehire-search-highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
    color: #856404;
}

.rehire-filter-summary {
    font-size: 0.875rem;
    color: var(--mud-palette-text-secondary);
    margin-top: 8px;
}

.rehire-results-container {
    position: relative;
}

.rehire-filter-bar {
    background: var(--mud-palette-surface);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    border: 1px solid var(--mud-palette-lines-default);
}

.rehire-match-card {
    transition: box-shadow 0.2s ease-in-out;
}

.rehire-match-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rehire-matched-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 16px;
}

.rehire-employee-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rehire-employee-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
}

.rehire-employee-detail-item .mud-icon {
    color: var(--mud-palette-text-secondary);
}

.rehire-actions-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--mud-palette-background-grey);
    border-radius: 8px;
}

.rehire-no-results {
    text-align: center;
    padding: 32px;
    color: var(--mud-palette-text-secondary);
}

.rehire-filter-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.rehire-filter-input {
    flex: 1;
    min-width: 300px;
}

.rehire-show-all-btn {
    white-space: nowrap;
}

/* Guide Section Styles */
.rehire-guide-container {
    position: sticky;
    top: 20px;
    height: calc(100vh - 40px);
    overflow-y: auto;
}

/* Enterprise Guide Styles */
.rehire-guide-card-enterprise {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.rehire-guide-toggle-header {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    margin-bottom: 8px;
}

.rehire-guide-toggle-header:hover {
    background: #f0f1f2;
}

.rehire-guide-toggle-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.rehire-guide-toggle-subtitle {
    color: #6c757d;
    font-size: 0.875rem;
}

.rehire-guide-header-enterprise {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease-in-out;
    flex-shrink: 0;
}

.rehire-guide-header-enterprise:hover {
    background: #f0f1f2;
}

.rehire-guide-title-enterprise {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
}

.rehire-guide-subtitle-enterprise {
    color: #6c757d;
    font-size: 0.875rem;
}

.rehire-guide-content-enterprise {
    padding: 8px;
    flex: 1;
    overflow-y: auto;
}

.step-item-enterprise {
    display: flex;
    align-items: flex-start;
    padding: 6px 8px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    transition: border-color 0.2s ease-in-out;
}

.step-item-enterprise:hover {
    border-color: #ced4da;
}

.step-number {
    background: #495057;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.7rem;
    flex-shrink: 0;
    margin-right: 8px;
    margin-top: 1px;
}

.step-content-enterprise {
    flex: 1;
}

.step-title-enterprise {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 0.8rem;
}

.step-description-enterprise {
    color: #495057;
    line-height: 1.3;
    font-size: 0.875rem; /* Same as "click to view process steps" */
}

/* Legacy colorful guide styles (kept for backward compatibility) */
.rehire-guide-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.rehire-guide-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.2s ease-in-out;
}

.rehire-guide-header:hover {
    background: rgba(255, 255, 255, 0.15);
}

.rehire-guide-title {
    color: white;
    font-weight: 600;
}

.rehire-guide-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.rehire-guide-content {
    padding: 24px;
}

.step-card {
    background: white;
    margin-bottom: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

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

.step-title {
    color: var(--mud-palette-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.step-description {
    color: var(--mud-palette-text-primary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.success-card {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.success-card .step-title,
.success-card .step-description {
    color: white;
}

/* Timeline Customization */
.mud-timeline-item-content {
    padding-left: 16px;
}

.mud-timeline-item-opposite {
    flex: 0 0 60px;
    text-align: right;
    padding-right: 16px;
}

/* Enhanced SF ID Display */
.sf-id-available {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sf-id-missing {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .rehire-guide-container {
        position: relative;
        top: 0;
        height: auto;
        overflow-y: visible;
    }
    
    .rehire-guide-card-enterprise {
        height: auto;
    }
}

@media (max-width: 768px) {
    .rehire-filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .rehire-filter-input {
        min-width: unset;
    }
    
    .rehire-show-all-btn {
        align-self: center;
    }
    
    .rehire-actions-panel {
        padding: 12px;
    }
    
    .rehire-guide-content-enterprise {
        padding: 6px;
    }
    
    .step-item-enterprise {
        padding: 4px 6px;
    }
    
    .step-number {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
        margin-right: 6px;
    }
    
    .step-title-enterprise {
        font-size: 0.75rem;
        margin-bottom: 1px;
    }
    
    .step-description-enterprise {
        font-size: 0.75rem; /* Same as mobile step title */
        line-height: 1.2;
    }
    
    .step-card {
        margin-bottom: 12px;
    }
}

/* Animation for filter results */
.rehire-results-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Highlight animation for search terms */
.rehire-search-highlight {
    animation: highlightPulse 0.5s ease-in-out;
}

@keyframes highlightPulse {
    0% {
        background-color: #fff3cd;
    }
    50% {
        background-color: #ffeaa7;
    }
    100% {
        background-color: #fff3cd;
    }
}

/* Guide scroll styling */
.rehire-guide-container::-webkit-scrollbar,
.rehire-guide-content-enterprise::-webkit-scrollbar {
    width: 6px;
}

.rehire-guide-container::-webkit-scrollbar-track,
.rehire-guide-content-enterprise::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

.rehire-guide-container::-webkit-scrollbar-thumb,
.rehire-guide-content-enterprise::-webkit-scrollbar-thumb {
    background: #ced4da;
    border-radius: 3px;
}

.rehire-guide-container::-webkit-scrollbar-thumb:hover,
.rehire-guide-content-enterprise::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}