/**
 * CSS pour les shortcodes Simple LMS
 */

/* Continue Button */
.simple-lms-continue-container {
    text-align: center;
    margin: 20px 0;
}

.simple-lms-continue-btn {
    background: var(--wakademy-primary, #C79F6F);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
}

.simple-lms-continue-btn:hover {
    background: var(--wakademy-primary-dark, #B0762F);
    transform: translateY(-2px);
    box-shadow: none;
}

.simple-lms-continue-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Popup Registration */
.simple-lms-popup-container {
    text-align: center;
    margin: 20px 0;
}

.simple-lms-popup-trigger {
    background: var(--wakademy-primary, #C79F6F);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
}

.simple-lms-popup-trigger:hover {
    background: var(--wakademy-primary-dark, #B0762F);
    transform: translateY(-2px);
    box-shadow: none;
}

.simple-lms-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.simple-lms-popup-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.simple-lms-popup-header h3 {
    margin: 0;
    color: #333;
}

.simple-lms-popup-close {
    background: none !important;
    border: none !important;
    font-size: 28px !important;
    cursor: pointer !important;
    color: var(--wakademy-primary, #C79F6F) !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.simple-lms-popup-close:hover {
    background: transparent !important;
    color: var(--wakademy-primary-dark, #B0762F) !important;
}

.simple-lms-popup-body {
    padding: 20px;
}

/* Registration Form */
.registration-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

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

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

.registration-form .form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.registration-form .btn-register {
    width: 100%;
    background: var(--wakademy-primary, #C79F6F);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.registration-form .btn-register:hover {
    background: var(--wakademy-primary-dark, #B0762F);
}

.registration-form .btn-register:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.registration-form .form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

.registration-form .form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.registration-info {
    margin-top: 15px;
    text-align: center;
}

.registration-info p {
    margin: 0;
    color: #666;
    font-size: 13px;
}

/* Loading Overlay */
.simple-lms-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.simple-lms-loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.simple-lms-loading-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.simple-lms-loading-overlay.show .simple-lms-loading-content {
    transform: scale(1);
}

.simple-lms-loading-content h3 {
    margin: 20px 0 10px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.simple-lms-loading-content p {
    margin: 0 0 0 0;
    color: #666;
    font-size: 14px;
}

.simple-lms-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--wakademy-primary, #C79F6F);
    border-radius: 50%;
    animation: simple-lms-spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Language Selector */
.simple-lms-language-selector.flags-style {
    display: flex;
    gap: 10px;
    align-items: center;
}

.simple-lms-language-selector.flags-style .lang-flag {
    display: block;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.simple-lms-language-selector.flags-style .lang-flag:hover,
.simple-lms-language-selector.flags-style .lang-flag.active {
    opacity: 1;
}

.simple-lms-language-selector.flags-style .lang-flag img {
    width: 32px;
    height: auto;
    border-radius: 4px;
}

.simple-lms-language-selector.dropdown-style .language-switcher {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

.simple-lms-language-selector.dropdown-style .language-switcher:hover {
    border-color: #999;
}

/* Dashboard Metrics */
.simple-lms-dashboard-metrics {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
}

.metric-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 100px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
}

.metric-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.metric-value {
    font-size: 32px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.2;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    font-weight: 400;
}

@media (max-width: 600px) {
    .simple-lms-dashboard-metrics {
        max-width: 100%;
        padding: 15px;
    }
    
    .metrics-grid {
        gap: 12px;
    }
    
    .metric-card {
        padding: 16px;
    }
    
    .metric-value {
        font-size: 28px;
    }
    
    .metric-label {
        font-size: 12px;
    }
}

