/* ===========================
   Employer Dashboard - Modern Premium Design
   =========================== */

:root {
    --mc-primary: #2563eb;
    --mc-primary-dark: #1d4ed8;
    --mc-primary-light: #3b82f6;
    --mc-success: #10b981;
    --mc-warning: #f59e0b;
    --mc-danger: #ef4444;
    --mc-text-primary: #0f172a;
    --mc-text-secondary: #475569;
    --mc-text-light: #64748b;
    --mc-border: #e2e8f0;
    --mc-background: #f8fafc;
    --mc-white: #ffffff;
    --mc-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --mc-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --mc-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Dashboard Wrapper */
.mc-dashboard-wrapper {
    min-height: 100vh;
    background: var(--mc-background);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', sans-serif;
}

.mc-dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 20px 80px;
}

/* Header */
.mc-dashboard-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 24px;
}

.mc-dashboard-header-row h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--mc-text-primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.mc-dashboard-intro {
    font-size: 1.1rem;
    color: var(--mc-text-secondary);
    margin: 0;
}

.mc-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* Filters */
.mc-filters {
    margin-bottom: 24px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    background: var(--mc-white);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--mc-border);
}

.mc-filter-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mc-text-secondary);
    transition: all 0.2s ease;
}

.mc-filter-btn:hover {
    background: var(--mc-background);
    color: var(--mc-text-primary);
}

.mc-filter-btn.active {
    background: var(--mc-primary);
    color: var(--mc-white);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

/* Table Styling */
.mc-table-responsive {
    overflow-x: auto;
    background: var(--mc-white);
    border-radius: 12px;
    border: 1px solid var(--mc-border);
    box-shadow: var(--mc-shadow);
}

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

.mc-team-table th,
.mc-team-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--mc-border);
}

.mc-team-table thead {
    background: var(--mc-background);
}

.mc-team-table th {
    font-weight: 700;
    color: var(--mc-text-primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mc-team-table tbody tr {
    transition: all 0.2s ease;
}

.mc-team-table tbody tr:hover {
    background: #fafbfc;
}

.mc-team-table tbody tr:last-child td {
    border-bottom: none;
}

/* Employee Info */
.mc-employee-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mc-employee-email {
    font-weight: 600;
    color: var(--mc-text-primary);
    font-size: 0.95rem;
}

.mc-employee-name {
    font-size: 0.85rem;
    color: var(--mc-text-light);
    display: block;
}

/* Status Badges */
.mc-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.mc-badge.registered,
.mc-badge.active {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.mc-badge.pending {
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde047;
}

.mc-badge.archived {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

.mc-badge.all-assessments-complete {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: var(--mc-white);
    border: none;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

/* Status Dots */
.mc-status-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
}

.mc-status-dot.completed {
    background: var(--mc-success);
    color: var(--mc-white);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.mc-status-dot.incomplete {
    background: var(--mc-background);
    border: 2px solid var(--mc-border);
}

.mc-status-dot.pending {
    background: var(--mc-white);
    border: 2px dashed var(--mc-border);
}

.mc-text-center {
    text-align: center !important;
}

/* Action Buttons */
.mc-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.mc-action-btn {
    background: var(--mc-white);
    border: 1.5px solid var(--mc-border);
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    color: var(--mc-text-light);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    position: relative;
}

.mc-action-btn:hover {
    color: var(--mc-primary);
    border-color: var(--mc-primary);
    background: #eff6ff;
    transform: translateY(-1px);
    box-shadow: var(--mc-shadow-sm);
}

.mc-action-btn svg {
    width: 18px;
    height: 18px;
}

/* Tooltip */
.mc-tooltip {
    position: relative;
}

.mc-tooltip .tooltiptext {
    visibility: hidden;
    width: max-content;
    max-width: 160px;
    background-color: var(--mc-text-primary);
    color: var(--mc-white);
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 9999;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: var(--mc-shadow-lg);
    pointer-events: none;
    white-space: nowrap;
}

.mc-tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--mc-text-primary) transparent transparent transparent;
}

.mc-tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Empty State */
.mc-empty-state {
    text-align: center;
    padding: 80px 40px;
    background: var(--mc-white);
    border-radius: 12px;
    color: var(--mc-text-secondary);
    border: 2px dashed var(--mc-border);
}

.mc-empty-state p {
    font-size: 1.1rem;
    margin: 0 0 20px 0;
    color: var(--mc-text-secondary);
}

/* Alerts */
.mc-alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-weight: 500;
    border-left: 4px solid;
}

.mc-alert.success {
    background: #dcfce7;
    color: #166534;
    border-color: #10b981;
}

.mc-alert.error {
    background: #fee2e2;
    color: #991b1b;
    border-color: #ef4444;
}

/* Button Styles */
.mc-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    background: var(--mc-primary);
    color: var(--mc-white);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.mc-button:hover {
    background: var(--mc-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.mc-button.secondary {
    background: var(--mc-white);
    color: var(--mc-primary);
    border: 1.5px solid var(--mc-border);
    box-shadow: var(--mc-shadow-sm);
}

.mc-button.secondary:hover {
    background: var(--mc-background);
    border-color: var(--mc-primary);
}

.mc-button.small {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.mc-button svg {
    width: 16px;
    height: 16px;
}

/* Animations */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

/* Responsive */
@media (max-width: 1024px) {
    .mc-team-table {
        font-size: 0.9rem;
    }
    
    .mc-team-table th,
    .mc-team-table td {
        padding: 12px 16px;
    }
}

@media (max-width: 768px) {
    .mc-dashboard-container {
        padding: 20px 16px 60px;
    }
    
    .mc-dashboard-header-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mc-dashboard-header-row h1 {
        font-size: 1.75rem;
    }
    
    .mc-header-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .mc-header-actions .mc-button {
        width: 100%;
        justify-content: center;
    }
    
    .mc-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .mc-filter-btn {
        text-align: center;
    }
    
    .mc-table-responsive {
        overflow-x: scroll;
    }
    
    .mc-team-table {
        min-width: 800px;
    }
}
