/**
 * TAF - Styles pour créneaux disponibles
 * Optimisé pour les seniors (65+)
 */

/* Loader */
#taf-loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px 50px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-size: 18px;
    font-weight: bold;
    color: #333;
    z-index: 9999;
    display: none;
}

#taf-loader::after {
    content: '';
    animation: spinner 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

@keyframes spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal des créneaux */
.taf-slots-modal {
    background: #f9f9f9;
    border: 3px solid #0066cc;
    border-radius: 12px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.taf-slots-header {
    margin-bottom: 25px;
    text-align: center;
}

.taf-slots-header h3 {
    font-size: 24px;
    font-weight: bold;
    color: #0066cc;
    margin: 0 0 10px 0;
}

.taf-slots-header p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* Liste des créneaux */
.taf-slots-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Bouton créneau */
.slot-option {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.slot-option:hover {
    background: #e8f0ff;
    border-color: #0066cc;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
    transform: translateX(5px);
}

.slot-option:active {
    background: #cce0ff;
    border-color: #0052a3;
}

.slot-label {
    display: block;
    line-height: 1.5;
}

.slot-option::after {
    content: '→';
    font-size: 20px;
    color: #0066cc;
    margin-left: 15px;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .taf-slots-modal {
        padding: 20px;
    }

    .taf-slots-header h3 {
        font-size: 20px;
    }

    .taf-slots-header p {
        font-size: 16px;
    }

    .slot-option {
        padding: 18px 20px;
        font-size: 16px;
    }
}

/* Accessibilité - Focus visible */
.slot-option:focus {
    outline: 3px solid #0066cc;
    outline-offset: 2px;
}

/* Animation d'apparition */
#available-slots-container {
    animation: slideIn 0.3s ease-out;
}

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

/* Spinner */
#tb-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px 50px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: none;
    text-align: center;
}

.tb-spinner-circle {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: tb-spin 1s linear infinite;
    margin: 0 auto 20px;
}

.tb-spinner-text {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

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

/* Spinner */
#tb-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px 50px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    text-align: center;
    display: none;
}

#tb-spinner.show {
    display: block;
}

.tb-spinner-circle {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: tb-spin 1s linear infinite;
    margin: 0 auto 20px;
}

.tb-spinner-text {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

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