/**
 * Movixit Workforce V2 - Frontend Styles
 * Complete frontend styling for workforce pages
 * 
 * @package Movixit_Workforce
 * @version 2.5.0
 */

/* ============================================
   GLOBAL CONTAINER
   ============================================ */

.mvxwf-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ============================================
   DASHBOARD STATS
   ============================================ */

.mvxwf-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.mvxwf-stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mvxwf-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.mvxwf-stat-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.mvxwf-stat-value {
    font-size: 32px;
    font-weight: 800;
    color: #0B5CFF;
    line-height: 1.2;
}

.mvxwf-stat-label {
    font-size: 14px;
    color: #64748b;
    margin-top: 8px;
}

/* ============================================
   PROFILE CARD
   ============================================ */

.mvxwf-profile-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
}

.mvxwf-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.mvxwf-profile-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0B5CFF, #061A40);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}

.mvxwf-profile-info h3 {
    margin: 0 0 5px;
    font-size: 20px;
    color: #1e293b;
}

.mvxwf-profile-info p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

/* ============================================
   FORMS
   ============================================ */

.mvxwf-form-group {
    margin-bottom: 20px;
}

.mvxwf-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
}

.mvxwf-form-group .required {
    color: #ef4444;
}

.mvxwf-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.mvxwf-form-control:focus {
    outline: none;
    border-color: #0B5CFF;
    box-shadow: 0 0 0 3px rgba(11, 92, 255, 0.1);
}

.mvxwf-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ============================================
   BUTTONS
   ============================================ */

.mvxwf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.mvxwf-btn-primary {
    background: linear-gradient(135deg, #0B5CFF, #061A40);
    color: #fff;
    box-shadow: 0 4px 12px rgba(11, 92, 255, 0.3);
}

.mvxwf-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 92, 255, 0.4);
}

.mvxwf-btn-secondary {
    background: #e2e8f0;
    color: #1e293b;
}

.mvxwf-btn-secondary:hover {
    background: #cbd5e1;
}

.mvxwf-btn-outline {
    background: transparent;
    border: 2px solid #0B5CFF;
    color: #0B5CFF;
}

.mvxwf-btn-outline:hover {
    background: #0B5CFF;
    color: #fff;
}

.mvxwf-btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.mvxwf-btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* ============================================
   JOB CARDS
   ============================================ */

.mvxwf-jobs-container {
    margin: 30px 0;
}

.mvxwf-jobs-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.mvxwf-jobs-filters .mvxwf-form-control {
    flex: 1;
    min-width: 200px;
}

.mvxwf-job-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    transition: all 0.2s ease;
}

.mvxwf-job-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.mvxwf-job-info h3 {
    margin: 0 0 5px;
    font-size: 18px;
    color: #1e293b;
}

.mvxwf-job-info p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

/* ============================================
   TRAINING CARDS
   ============================================ */

.mvxwf-trainings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.mvxwf-training-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mvxwf-training-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.mvxwf-training-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.mvxwf-training-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.mvxwf-training-card p {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 15px;
}

/* ============================================
   COUNTRY CARDS
   ============================================ */

.mvxwf-countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.mvxwf-country-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.2s ease;
}

.mvxwf-country-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.mvxwf-country-flag {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.mvxwf-country-card h3 {
    margin: 0 0 10px;
}

.mvxwf-country-card p {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 15px;
}

/* ============================================
   PLANS CARDS
   ============================================ */

.mvxwf-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.mvxwf-plan-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: transform 0.2s ease;
}

.mvxwf-plan-card.mvxwf-plan-featured {
    border: 2px solid #0B5CFF;
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
}

.mvxwf-plan-card.mvxwf-plan-featured:before {
    content: "⭐ MOST POPULAR";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #0B5CFF;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.mvxwf-plan-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.mvxwf-plan-price {
    font-size: 36px;
    font-weight: 800;
    color: #0B5CFF;
    margin: 20px 0;
}

.mvxwf-plan-price span {
    font-size: 14px;
    font-weight: normal;
    color: #64748b;
}

.mvxwf-plan-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.mvxwf-plan-features li {
    padding: 8px 0;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mvxwf-plan-features li:before {
    content: "✓";
    color: #10b981;
    font-weight: 700;
}

/* ============================================
   VISA READINESS FORM
   ============================================ */

.mvxwf-visa-readiness {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.mvxwf-visa-header {
    text-align: center;
    margin-bottom: 30px;
}

.mvxwf-visa-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.mvxwf-visa-form .mvxwf-form-group {
    margin-bottom: 20px;
}

/* ============================================
   READINESS RESULT
   ============================================ */

.mvxwf-readiness-result {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    margin-top: 20px;
}

.mvxwf-readiness-result h3 {
    margin-top: 0;
    color: #1e293b;
}

.mvxwf-readiness-score {
    text-align: center;
    margin: 20px 0;
}

.mvxwf-readiness-details {
    margin-top: 20px;
}

.mvxwf-readiness-details h4 {
    color: #1e293b;
    margin: 20px 0 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e2e8f0;
}

.mvxwf-readiness-details ul {
    margin: 0 0 15px 20px;
    padding: 0;
}

.mvxwf-readiness-details li {
    margin: 8px 0;
    line-height: 1.5;
}

/* ============================================
   ALERTS & NOTIFICATIONS
   ============================================ */

.mvxwf-alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

.mvxwf-alert-success {
    background: #dcfce7;
    color: #166534;
    border-left: 4px solid #22c55e;
}

.mvxwf-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.mvxwf-alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.mvxwf-alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

/* ============================================
   LOADING SPINNER
   ============================================ */

.mvxwf-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top-color: #0B5CFF;
    border-radius: 50%;
    animation: mvxwf-spin 0.8s linear infinite;
}

@keyframes mvxwf-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   SCORE INDICATORS
   ============================================ */

.mvxwf-score {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
}

.mvxwf-score-high {
    background: #dcfce7;
    color: #166534;
}

.mvxwf-score-medium {
    background: #fed7aa;
    color: #9a3412;
}

.mvxwf-score-low {
    background: #fee2e2;
    color: #991b1b;
}

/* ============================================
   DOCUMENT CHECKLIST
   ============================================ */

.mvxwf-document-checklist {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
}

.mvxwf-document-checklist h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.mvxwf-checklist {
    list-style: none;
    padding: 0;
}

.mvxwf-checklist li {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mvxwf-checklist li:last-child {
    border-bottom: none;
}

.mvxwf-checklist input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ============================================
   OFFICE BRIDGE
   ============================================ */

.mvxwf-office-bridge {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
}

.mvxwf-bridge-header {
    margin-bottom: 25px;
}

.mvxwf-bridge-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
}

.mvxwf-status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: mvxwf-pulse 1.5s infinite;
}

@keyframes mvxwf-pulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0.5;
        transform: scale(1);
    }
}

.mvxwf-status-indicator.mvxwf-status-connected {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.mvxwf-status-indicator.mvxwf-status-disconnected {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
    animation: none;
}

/* ============================================
   PAGINATION
   ============================================ */

.mvxwf-pagination {
    margin-top: 30px;
    text-align: center;
}

.mvxwf-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    background: #fff;
    color: #0B5CFF;
    transition: all 0.2s;
}

.mvxwf-pagination .page-numbers.current {
    background: #0B5CFF;
    color: #fff;
    border-color: #0B5CFF;
}

.mvxwf-pagination .page-numbers:hover:not(.current) {
    background: #f1f5f9;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .mvxwf-container {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .mvxwf-container {
        padding: 20px 15px;
    }

    .mvxwf-dashboard-stats {
        grid-template-columns: 1fr;
    }

    .mvxwf-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .mvxwf-jobs-filters {
        flex-direction: column;
    }

    .mvxwf-job-card {
        flex-direction: column;
        text-align: center;
    }

    .mvxwf-plan-card.mvxwf-plan-featured {
        transform: none;
    }

    .mvxwf-plan-card.mvxwf-plan-featured:before {
        top: -10px;
        font-size: 9px;
        padding: 3px 10px;
    }

    .mvxwf-profile-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {

    .mvxwf-trainings-grid,
    .mvxwf-countries-grid,
    .mvxwf-plans-grid {
        grid-template-columns: 1fr;
    }

    .mvxwf-stat-value {
        font-size: 28px;
    }

    .mvxwf-visa-readiness {
        padding: 20px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .mvxwf-container {
        padding: 0;
        max-width: 100%;
    }

    .mvxwf-btn,
    .mvxwf-jobs-filters,
    .mvxwf-actions {
        display: none;
    }

    .mvxwf-job-card,
    .mvxwf-training-card,
    .mvxwf-country-card,
    .mvxwf-plan-card {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}