/* Style général pour mode kiosk iPad */
.kiosk-mode, .kiosk-mode body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.kiosk-mode {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.container-fluid {
    height: 100vh;
}

.row {
    height: 100%;
}

/* Colonne calendrier */
.calendar-column {
    background-color: #ffffff;
    border-right: 2px solid #e0e0e0;
    height: 100vh;
    overflow: hidden;
}

/* Colonne tâches */
.tasks-column {
    background-color: #f8f9fa;
    height: 100vh;
    overflow: hidden;
}

/* Conteneurs scrollables */
.calendar-container,
.tasks-container {
    overflow-y: auto;
    padding-right: 10px;
}

/* Scrollbar personnalisée */
.calendar-container::-webkit-scrollbar,
.tasks-container::-webkit-scrollbar {
    width: 8px;
}

.calendar-container::-webkit-scrollbar-track,
.tasks-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.calendar-container::-webkit-scrollbar-thumb,
.tasks-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.calendar-container::-webkit-scrollbar-thumb:hover,
.tasks-containers::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Événements du calendrier */
.event-card {
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.event-date {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.event-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.event-details {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Tâches */
.task-card {
    margin-bottom: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 4px solid #28a745;
}

.task-card.done {
    opacity: 0.6;
    border-left-color: #6c757d;
}

.task-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.task-title {
    font-size: 1.05rem;
    font-weight: 600;
}

.task-card.done .task-title {
    text-decoration: line-through;
    color: #6c757d;
}

.task-meta {
    font-size: 0.85rem;
    color: #6c757d;
}

.task-deadline {
    font-size: 0.85rem;
    color: #6c757d;
}

.task-deadline.overdue {
    color: #dc3545;
    font-weight: 600;
}

.task-deadline.upcoming {
    color: #6c757d;
}

.task-actions {
    display: flex;
    gap: 5px;
}

.btn-task-action {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Messages d'état */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #6c757d;
}

@media (max-width: 767.98px) {
    .settings-navbar {
        display: none;
    }
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

/* Modal responsive */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
    }
}

/* Responsive pour mobile */
@media (max-width: 991.98px) {
    .calendar-column,
    .tasks-column {
        height: 50vh;
        border-right: none;
        border-bottom: 2px solid #e0e0e0;
    }
    
    .tasks-column {
        border-bottom: none;
    }
}

@media (max-width: 767.98px) {
    .container-fluid {
        height: auto;
    }

    .row {
        height: auto;
    }

    .calendar-column,
    .tasks-column {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .kiosk-mode,
    .kiosk-mode body {
        overflow: auto;
        height: auto;
    }
}

/* Navigation mobile bas */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    z-index: 1050;
}

.mobile-bottom-nav .dropup {
    flex: 1;
    display: flex;
}

.mobile-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: none;
    background: transparent;
    color: #6c757d;
    padding: 6px 0;
    text-decoration: none;
    font-size: 0.8rem;
}

.mobile-bottom-nav .dropup .mobile-nav-btn {
    width: 100%;
}

.mobile-nav-center i {
    font-size: 1.45rem;
}

.mobile-nav-center {
    font-weight: 600;
}

.member-dashboard-card {
    border: 1px solid #e9ecef;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

@media (max-width: 767.98px) {
    .member-dashboard {
        background: #f8f9fa;
        min-height: calc(100vh - 72px);
    }
}

.mobile-nav-btn i {
    font-size: 1.25rem;
}

.mobile-nav-btn.active,
.mobile-nav-btn:focus,
.mobile-nav-btn:hover {
    color: #0d6efd;
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: 72px;
    }

    #settingsBtn {
        display: none;
    }
}

[data-bs-theme="dark"] .mobile-bottom-nav {
    background: #212529;
    border-top-color: #333;
}

[data-bs-theme="dark"] .mobile-nav-btn {
    color: #adb5bd;
}

[data-bs-theme="dark"] .mobile-nav-btn.active,
[data-bs-theme="dark"] .mobile-nav-btn:focus,
[data-bs-theme="dark"] .mobile-nav-btn:hover {
    color: #f8f9fa;
}

[data-bs-theme="dark"] .member-dashboard {
    background: #1f1f1f;
}

[data-bs-theme="dark"] .member-dashboard-card {
    border-color: #2d2d2d;
    background: #2a2a2a;
}

/* Mode paysage iPad */
@media (min-width: 992px) and (max-width: 1366px) {
    h2 {
        font-size: 1.5rem;
    }
    
    .event-card,
    .task-card {
        margin-bottom: 10px;
    }
}

/* Animation de chargement */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-card,
.task-card {
    animation: fadeIn 0.3s ease;
}

/* Badges et labels */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Boutons */
.btn {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Actions flottantes bas */
.floating-actions {
    position: fixed;
    bottom: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1045;
}

@media (max-width: 767.98px) {
    .floating-actions {
        display: none;
    }
}

/* Header sections */
h2 {
    color: #333;
    font-weight: 600;
}

.tasks-column h2 {
    color: #495057;
}

/* Checkbox personnalisé */
.form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

/* Amélioration tactile pour iPad */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .task-card,
    .event-card {
        min-height: 44px; /* Taille minimale recommandée Apple */
    }
}

[data-bs-theme="dark"] .calendar-column {
    background-color: #1a1a1a;
    color: #e0e0e0;
    border-right-color: #333;
}

[data-bs-theme="dark"] .tasks-column {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

[data-bs-theme="dark"] .event-card,
[data-bs-theme="dark"] .task-card {
    background-color: #333;
    color: #e0e0e0;
    border-color: #444;
}

[data-bs-theme="dark"] .card {
    background-color: #333;
    border-color: #444;
}

[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] .event-title,
[data-bs-theme="dark"] .task-title {
    color: #e0e0e0;
}

[data-bs-theme="dark"] .event-date,
[data-bs-theme="dark"] .event-details,
[data-bs-theme="dark"] .task-meta,
[data-bs-theme="dark"] .text-muted {
    color: #adb5bd !important;
}

[data-bs-theme="dark"] .form-control {
    background-color: #444;
    color: #fff;
    border-color: #555;
}

[data-bs-theme="dark"] .form-control::placeholder {
    color: #aaa;
}

[data-bs-theme="dark"] .modal-content {
    background-color: #2a2a2a;
}

[data-bs-theme="dark"] .navbar {
    background-color: #212529 !important;
}

[data-bs-theme="dark"] body.kiosk-mode {
    background: #121212;
}

