/* 
 * Learnify Style - Styles modernes pour la plateforme Learnify LMS
 * Fichier centralisé pour tous les composants UI inspirés des bonnes pratiques modernes
 */

/* Cartes et boîtes */
.learnify-white-box {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    padding: 20px;
    transition: all 0.3s ease;
}

.learnify-white-box:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.learnify-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.learnify-card-header {
    padding: 15px 20px;
    margin-bottom: 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.learnify-card-body {
    flex: 1 1 auto;
    padding: 20px;
}

.learnify-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

/* Boutons */
.learnify-btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    border-radius: 4px;
    transition: all 0.15s ease-in-out;
    text-decoration: none;
    cursor: pointer;
}

.learnify-btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

.learnify-btn-primary {
    color: #fff;
    background-color: #a435f0;
    border-color: #a435f0;
}

.learnify-btn-primary:hover {
    background-color: #8710d8;
    border-color: #8710d8;
    color: #fff;
}

.learnify-btn-outline-primary {
    color: #a435f0;
    border-color: #a435f0;
    background-color: transparent;
}

.learnify-btn-outline-primary:hover {
    color: #fff;
    background-color: #a435f0;
    border-color: #a435f0;
}

.learnify-btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.learnify-btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    color: #fff;
}

.learnify-btn-success {
    color: #fff;
    background-color: #1eb2a6;
    border-color: #1eb2a6;
}

.learnify-btn-success:hover {
    background-color: #199a8e;
    border-color: #178f84;
    color: #fff;
}

/* Badges */
.learnify-badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    color: #fff;
}

.learnify-badge-primary { background-color: #a435f0; }
.learnify-badge-success { background-color: #1eb2a6; }
.learnify-badge-info { background-color: #3a86ff; }
.learnify-badge-warning { background-color: #ff9f1c; }
.learnify-badge-danger { background-color: #ff4c4c; }
.learnify-badge-secondary { background-color: #6c757d; }

.learnify-badge-light {
    color: #333;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

/* Alertes */
.learnify-alert {
    position: relative;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.learnify-alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.learnify-alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.learnify-alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.learnify-alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Tableaux */
.learnify-table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    border-collapse: collapse;
}

.learnify-table th,
.learnify-table td {
    padding: 0.75rem;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}

.learnify-table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
    background-color: #f8f9fa;
    font-weight: 600;
}

.learnify-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Utilitaires */
.custom-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.custom-badge-primary {
    background-color: #a435f0;
}

.custom-badge-success {
    background-color: #1eb2a6;
}

.stats-card {
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stats-card.primary {
    background-color: rgba(164, 53, 240, 0.1);
    border-left: 4px solid #a435f0;
}

.stats-card.success {
    background-color: rgba(30, 178, 166, 0.1);
    border-left: 4px solid #1eb2a6;
}

.stats-card.info {
    background-color: rgba(58, 134, 255, 0.1);
    border-left: 4px solid #3a86ff;
}

.stats-card.warning {
    background-color: rgba(255, 159, 28, 0.1);
    border-left: 4px solid #ff9f1c;
}

.stats-card-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.stats-card.primary .stats-card-icon {
    color: #a435f0;
}

.stats-card.success .stats-card-icon {
    color: #1eb2a6;
}

.stats-card.info .stats-card-icon {
    color: #3a86ff;
}

.stats-card.warning .stats-card-icon {
    color: #ff9f1c;
}

.stats-card-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stats-card-label {
    font-size: 14px;
    color: #6c757d;
}

.summary-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

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

.summary-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
}

.bg-primary-light {
    background-color: rgba(164, 53, 240, 0.1);
}

.bg-success-light {
    background-color: rgba(30, 178, 166, 0.1);
}

.bg-info-light {
    background-color: rgba(58, 134, 255, 0.1);
}

.bg-warning-light {
    background-color: rgba(255, 159, 28, 0.1);
}

.text-primary {
    color: #a435f0 !important;
}

.text-success {
    color: #1eb2a6 !important;
}

.text-info {
    color: #3a86ff !important;
}

.text-warning {
    color: #ff9f1c !important;
}

.summary-card-content {
    flex: 1;
}

.summary-card-title {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

.summary-card-value {
    font-size: 20px;
    font-weight: 700;
}

.progress-section {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}
