/**
 * Styles pour la gestion des stagiaires
 * Fichier: assets/css/trainee-manager.css
 */

/* ========================================
   CONTENEUR PRINCIPAL
   ======================================== */

.ftm-trainee-management {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ftm-trainee-management h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

/* ========================================
   RÉSUMÉ DES JETONS
   ======================================== */

.ftm-tokens-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ftm-tokens-summary h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
}

.ftm-tokens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.ftm-token-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ftm-token-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ftm-token-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.ftm-token-icon {
    font-size: 24px;
}

.ftm-token-header h4 {
    margin: 0;
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
}

.ftm-token-stats {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.ftm-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ftm-stat-item .label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
}

.ftm-stat-item .value {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.ftm-stat-item .value.available {
    color: #28a745;
}

.ftm-stat-item .value.assigned {
    color: #007bff;
}

.ftm-form-group input[type="tel"]:invalid {
    border-color: #dc3545;
}

.ftm-form-group input[type="tel"]:valid {
    border-color: #28a745;
}

.ftm-form-group .ftm-help-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
    font-style: italic;
}

/* ========================================
   BARRE D'ACTIONS
   ======================================== */

.ftm-actions-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.ftm-actions-bar .button {
    padding: 12px 24px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ftm-actions-bar .button-primary {
    background: #007bff;
    color: white;
    border: none;
}

.ftm-actions-bar .button-primary:hover {
    background: #0056b3;
}

/* ========================================
   LISTE DES STAGIAIRES
   ======================================== */

/* Info du gestionnaire créateur */
.ftm-trainee-creator {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    padding: 5px 10px;
    background: #f0f0f0;
    border-radius: 3px;
    display: inline-block;
}

.ftm-trainees-list {
    display: grid;
    gap: 20px;
}

.ftm-no-trainees {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    color: #6c757d;
}

.ftm-no-trainees p {
    margin: 10px 0;
    font-size: 16px;
}

.ftm-loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #6c757d;
}

/* ========================================
   CARTE STAGIAIRE
   ======================================== */

.ftm-trainee-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 25px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ftm-trainee-card[style*="display: none"] {
    opacity: 0;
    transform: scale(0.95);
}

.ftm-trainee-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.ftm-trainee-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.ftm-trainee-info h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #2c3e50;
    font-weight: 600;
}

.ftm-trainee-email,
.ftm-trainee-phone {
    margin: 5px 0;
    color: #6c757d;
    font-size: 14px;
}

.ftm-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.ftm-status-badge.active {
    background: #d4edda;
    color: #155724;
}

.ftm-status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

/* ========================================
   SECTIONS DE LA CARTE
   ======================================== */

.ftm-trainee-tokens,
.ftm-trainee-sessions,
.ftm-trainee-documents {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.ftm-trainee-tokens h4,
.ftm-trainee-sessions h4,
.ftm-trainee-documents h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
}

.ftm-no-tokens,
.ftm-no-sessions,
.ftm-no-docs-required {
    color: #6c757d;
    font-style: italic;
    font-size: 14px;
    margin: 0;
}

.ftm-tokens-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ftm-token-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.ftm-token-item .token-category {
    font-weight: 600;
    color: #2c3e50;
}

.ftm-token-item .token-quantity {
    color: #28a745;
    font-weight: 500;
}

.ftm-token-item .token-used {
    color: #6c757d;
    font-size: 13px;
}

/* Sessions groupées par catégorie */
.ftm-sessions-by-category {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ftm-category-sessions {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    border-left: 3px solid #ddd;
}

.ftm-category-sessions:has(.ftm-category-header .ftm-category-icon:contains("🔷")) {
    border-left-color: #2196F3;
}

.ftm-category-sessions:has(.ftm-category-header .ftm-category-icon:contains("🔶")) {
    border-left-color: #FF9800;
}

.ftm-category-sessions:has(.ftm-category-header .ftm-category-icon:contains("🔸")) {
    border-left-color: #4CAF50;
}

.ftm-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
}

.ftm-category-icon {
    font-size: 18px;
}

.ftm-session-count {
    color: #666;
    font-weight: normal;
    font-size: 13px;
}

.ftm-sessions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ftm-session-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    font-size: 13px;
    gap: 10px;
}

.session-title {
    flex: 1;
    font-weight: 500;
}

.session-date {
    color: #666;
    white-space: nowrap;
}

.session-status {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

.session-status.confirmed {
    background: #d4edda;
    color: #155724;
}

.session-status.pending {
    background: #fff3cd;
    color: #856404;
}

.session-status.completed {
    background: #e2e3e5;
    color: #383d41;
}

.session-status.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.ftm-category-empty {
    opacity: 0.6;
}

.ftm-no-sessions-cat {
    margin: 0;
    padding: 8px 12px;
    color: #999;
    font-size: 13px;
    font-style: italic;
}

.session-status.incomplete {
    background: #fff3cd;
    color: #856404;
}

.session-status.validation {
    background: #cfe2ff;
    color: #084298;
}

.ftm-cancel-booking-btn {
    padding: 4px 10px;
    font-size: 11px;
    background: white;
    color: #dc3545;
    border: 1px solid #dc3545;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ftm-cancel-booking-btn:hover {
    background: #dc3545;
    color: white;
}

/* Texte d'aide pour les documents */
.ftm-doc-help-text {
    background: #e7f3ff;
    border-left: 3px solid #0073aa;
    padding: 8px 12px;
    margin: 8px 0;
    font-size: 13px;
    color: #333;
    border-radius: 3px;
}

.ftm-doc-help-text a {
    color: #0073aa;
    font-weight: 600;
    text-decoration: underline;
}

.ftm-doc-help-text a:hover {
    color: #005177;
}

/* ========================================
   GESTION DES DOCUMENTS
   ======================================== */

.ftm-documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.ftm-document-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    border: 2px solid #dee2e6;
    transition: all 0.2s ease;
}

.ftm-document-item.complete {
    border-color: #28a745;
    background: #f0f9f4;
}

.ftm-document-item.missing {
    border-color: #ffc107;
    background: #fffbf0;
}

.ftm-doc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.ftm-doc-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.ftm-doc-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    flex: 1;
}

.ftm-doc-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ftm-doc-filename {
    font-size: 13px;
    color: #495057;
    word-break: break-word;
}

.ftm-doc-date {
    font-size: 12px;
    color: #6c757d;
}

.ftm-doc-metadata {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px;
    margin-top: 8px;
}

.ftm-metadata-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.ftm-metadata-item:last-child {
    margin-bottom: 0;
}

.ftm-metadata-item label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
}

.ftm-metadata-item span {
    font-size: 13px;
    color: #2c3e50;
}

.ftm-doc-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

.ftm-doc-actions .button-small {
    flex: 1;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ftm-doc-actions .ftm-delete-doc-btn:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.ftm-upload-doc-btn {
    width: 100%;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid #007bff;
    background: white;
    color: #007bff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ftm-upload-doc-btn:hover {
    background: #007bff;
    color: white;
}

/* ========================================
   ACTIONS DE LA CARTE
   ======================================== */

.ftm-trainee-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 2px solid #f8f9fa;
}

.ftm-trainee-actions .button {
    flex: 1;
    min-width: 150px;
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ftm-trainee-actions .button:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.ftm-trainee-actions .ftm-assign-tokens-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.ftm-trainee-actions .ftm-edit-trainee-btn:hover {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.ftm-trainee-actions .ftm-delete-trainee-btn:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

/* ========================================
   MODALS
   ======================================== */

.ftm-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
}

.ftm-modal .ftm-modal-content {
    background-color: white !important;
    margin: 8% auto !important;
    padding: 35px !important;
    border-radius: 12px !important;
    width: 90% !important;
    max-width: 700px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    animation: modalSlideIn 0.3s ease !important;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ftm-modal-content h3 {
    margin: 0 0 25px 0;
    color: #2c3e50;
    font-size: 26px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.ftm-modal-close {
    color: #adb5bd;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
    transition: color 0.2s ease;
}

.ftm-modal-close:hover,
.ftm-modal-close:focus {
    color: #495057;
}

/* ========================================
   FORMULAIRES
   ======================================== */

.ftm-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.ftm-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.ftm-form-group label {
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.ftm-form-group input[type="text"],
.ftm-form-group input[type="email"],
.ftm-form-group input[type="tel"],
.ftm-form-group input[type="date"],
.ftm-form-group input[type="file"],
.ftm-form-group select {
    padding: 12px 14px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.ftm-form-group input:focus,
.ftm-form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.ftm-form-group input[type="checkbox"] {
    margin-right: 8px;
}

.ftm-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #dee2e6;
}

.ftm-form-actions .button {
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.ftm-form-actions .button-primary {
    background: #007bff;
    color: white;
    border: none;
}

.ftm-form-actions .button-primary:hover {
    background: #0056b3;
}

/* Zone upload fichier */
#file_upload_zone {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ftm-help-text {
    font-size: 13px;
    color: #6c757d;
    margin-top: 8px;
    margin-bottom: 0;
    line-height: 1.4;
}

/* ========================================
   MODAL D'ASSIGNATION DE JETONS
   ======================================== */

.ftm-trainee-name {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.ftm-token-assignments {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.ftm-token-assignment-row {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.ftm-token-assignment-row.ftm-no-tokens {
    opacity: 0.5;
}

.ftm-token-category h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 16px;
}

.ftm-available-count {
    color: #6c757d;
    font-size: 13px;
}

.ftm-available-count span {
    font-weight: 700;
    color: #28a745;
}

.ftm-token-controls {
    margin-top: 15px;
}

.ftm-token-controls label {
    display: flex;
    align-items: center;
    font-weight: 500;
    cursor: pointer;
}

.ftm-token-controls input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.ftm-session-select {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 6px;
}

.ftm-session-select label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 13px;
}

.ftm-session-select select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
}

/* ========================================
   MODAL UPLOAD DOCUMENT
   ======================================== */

.ftm-metadata-fields {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #dee2e6;
}

.ftm-metadata-fields h4 {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #2c3e50;
}

.ftm-metadata-fields .ftm-form-group {
    margin-bottom: 20px;
}

.ftm-metadata-fields small {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #6c757d;
    line-height: 1.4;
}

/* Zone attestation MAN */
.ftm-attestation-zone {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin-bottom: 20px;
}

.ftm-attestation-text {
    padding: 20px;
    background: white;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.8;
    color: #2c3e50;
    font-weight: 500;
}

.ftm-attestation-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 10px;
}

.ftm-attestation-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.ftm-attestation-checkbox span {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.5;
}

/* ========================================
   NOTIFICATIONS
   ======================================== */

.ftm-notice {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    min-width: 300px;
    max-width: 500px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: noticeSlideIn 0.3s ease;
}

@keyframes noticeSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ftm-notice-success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.ftm-notice-error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.ftm-notice-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.ftm-notice-info {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

.ftm-notice-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.ftm-notice-message {
    flex: 1;
    font-size: 14px;
}

.ftm-notice-close {
    background: none;
    border: none;
    font-size: 20px;
    color: inherit;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.ftm-notice-close:hover {
    background: rgba(0,0,0,0.1);
}

/* ========================================
   DASHBOARD
   ======================================== */

.ftm-dashboard-tokens {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ftm-dashboard-tokens h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 20px;
}

.ftm-manager-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.ftm-manager-summary .ftm-stat {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.ftm-manager-summary .ftm-stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 5px;
}

.ftm-manager-summary .ftm-stat-label {
    display: block;
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

/* ========================================
   RECHERCHE DE STAGIAIRES
   ======================================== */

.ftm-search-container {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 500px;
}

.ftm-search-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.ftm-search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.ftm-clear-search {
    padding: 12px 20px;
    font-size: 14px;
    border: 1px solid #dc3545;
    background: white;
    color: #dc3545;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ftm-clear-search:hover {
    background: #dc3545;
    color: white;
}

.ftm-no-results {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    color: #856404;
    margin-bottom: 20px;
}

.ftm-no-results p {
    margin: 8px 0;
    font-size: 16px;
}

.ftm-no-results p:first-child {
    font-weight: 600;
    font-size: 18px;
}

/* Message annulation impossible */
.ftm-cancel-disabled {
    font-size: 11px;
    color: #999;
    font-style: italic;
    cursor: help;
    padding: 2px 8px;
    background: #f5f5f5;
    border-radius: 3px;
    display: inline-block;
}

.ftm-cancel-disabled:hover {
    background: #e8e8e8;
}
/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .ftm-trainee-management {
        padding: 15px;
    }

    .ftm-tokens-grid {
        grid-template-columns: 1fr;
    }

    .ftm-trainee-header {
        flex-direction: column;
        gap: 15px;
    }

    .ftm-trainee-actions,
    .ftm-form-actions {
        flex-direction: column;
    }

    .ftm-trainee-actions .button,
    .ftm-form-actions .button {
        width: 100%;
    }

    .ftm-modal-content {
        width: 95% !important;
        max-width: none !important;
        margin: 8% auto !important;
        padding: 25px !important;
        max-height: 85vh !important;
    }

    .ftm-form-row {
        grid-template-columns: 1fr;
    }

    .ftm-token-item,
    .ftm-session-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .session-title {
        flex: 1 0 100%;
        margin-bottom: 5px;
    }

    .ftm-documents-grid {
        grid-template-columns: 1fr;
    }
    
    .ftm-doc-actions {
        flex-direction: column;
    }
    
    .ftm-doc-actions .button-small {
        width: 100%;
    }

    .ftm-notice {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
	
	.ftm-actions-bar {
        flex-direction: column;
    }
    
    .ftm-search-container {
        max-width: 100%;
        order: -1; /* Placer la recherche en premier sur mobile */
    }
}

@media (max-width: 480px) {
    .ftm-trainee-management h2 {
        font-size: 22px;
    }

    .ftm-token-stats {
        flex-direction: column;
        gap: 10px;
    }

    .ftm-stat-item {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
}