/**
 * Styles CSS pour l'interface frontend de WP Planning Interactif
 */

/* Container principal */
.wp-planning-frontend-calendar {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: #333;
    margin: 20px 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%;
    max-width: none;
}

/* Toolbar */
.wp-planning-frontend-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #2c3e50 !important;
    color: #ffffff !important;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 3px solid #34495e;
}

.wp-planning-toolbar-left,
.wp-planning-toolbar-center,
.wp-planning-toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wp-planning-toolbar-center {
    flex: 1;
    justify-content: center;
}

.wp-planning-view-selector {
    padding: 10px 15px;
    border: 2px solid #ffffff !important;
    border-radius: 8px;
    background: #ffffff !important;
    color: #2c3e50 !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wp-planning-view-selector:focus {
    outline: none;
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.3);
}

.wp-planning-view-selector option {
    background: #667eea;
    color: white;
}

.wp-planning-nav-btn,
.wp-planning-today-btn,
.wp-planning-new-event-btn {
    padding: 10px 18px;
    border: 2px solid #ffffff !important;
    border-radius: 8px;
    background: #ffffff !important;
    color: #2c3e50 !important;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600 !important;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wp-planning-nav-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
    font-weight: 700;
    padding: 0;
}

.wp-planning-nav-btn:hover,
.wp-planning-today-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.wp-planning-new-event-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-color: #20c997;
    box-shadow: 0 3px 10px rgba(40,167,69,0.3);
}

.wp-planning-new-event-btn:hover {
    background: linear-gradient(135deg, #218838, #1ea876);
    border-color: #1ea876;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40,167,69,0.4);
    color: white;
    text-decoration: none;
}

.wp-planning-current-date {
    font-weight: 800 !important;
    font-size: 18px;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8) !important;
    min-width: 200px;
    text-align: center;
    background: rgba(0,0,0,0.2);
    padding: 8px 16px;
    border-radius: 6px;
}

/* Container du calendrier */
.wp-planning-calendar-container {
    padding: 25px;
    background: white;
    position: relative;
}

/* Vue mensuelle */
.wp-planning-month-view {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.wp-planning-month-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.wp-planning-day-header {
    padding: 16px 12px;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.wp-planning-month-body {
    display: grid;
    grid-template-rows: repeat(6, minmax(120px, auto));
}

.wp-planning-month-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.wp-planning-month-cell {
    border-right: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    padding: 6px;
    min-height: 140px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

/* Cellule avec événement - expansion automatique */
.wp-planning-month-cell:has(.wp-planning-event) {
    min-height: 160px;
    z-index: 2;
}

/* Indicateur visuel pour marquer le jour de l'événement */
.wp-planning-month-cell:has(.wp-planning-event):before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007cba 0%, #0056b3 100%);
    z-index: 1;
}

/* Badge jour de l'événement dans le coin */
.wp-planning-month-cell:has(.wp-planning-event):after {
    content: '📅';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 14px;
    z-index: 4;
    background: rgba(0, 124, 186, 0.9);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.wp-planning-month-cell.wp-planning-clickable {
    cursor: pointer;
}

.wp-planning-month-cell.wp-planning-clickable:hover {
    background: #f8f9fa;
    box-shadow: inset 0 0 0 2px #007cba;
}

.wp-planning-month-cell.wp-planning-other-month {
    background: #f8f9fa;
    color: #adb5bd;
}

.wp-planning-month-cell.wp-planning-today {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    box-shadow: inset 0 0 0 3px #2196f3;
}

.wp-planning-month-cell.wp-planning-today .wp-planning-cell-date {
    color: #1976d2;
    font-weight: 800;
}

.wp-planning-cell-date {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #2c3e50;
    background: rgba(255,255,255,0.8);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.1);
}

.wp-planning-cell-events {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    margin: 4px 0;
    width: 100%;
    position: relative;
    z-index: 3;
}

.wp-planning-event {
    padding: 8px 10px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    overflow: visible !important;
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8) !important;
    width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    
    /* Ombre portée pour marquer la cellule d'origine */
    box-shadow: 
        0 3px 8px rgba(0,0,0,0.3),
        inset 0 0 0 2px rgba(255,255,255,0.2) !important;
}

/* Tooltip amélioré pour les événements */
.wp-planning-event[title]:hover {
    transform: scale(1.03) !important;
    z-index: 15 !important;
    position: relative !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
}

/* Icône tooltip dans le coin */
.wp-planning-event[title]:after {
    content: "💬";
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 10px;
    opacity: 0.8;
    z-index: 5;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.wp-planning-event[title]:hover:after {
    opacity: 1;
    transform: scale(1.1);
}
    box-shadow: 0 3px 8px rgba(0,0,0,0.4) !important;
    border: 2px solid rgba(0,0,0,0.3) !important;
    min-height: 48px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    line-height: 1.2 !important;
    word-wrap: break-word !important;
    text-align: left !important;
    position: relative !important;
    z-index: 2 !important;
}

.wp-planning-event:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.5) !important;
    z-index: 10 !important;
}

/* NOUVEAUX STYLES POUR TITRE ET DURÉE */
.wp-planning-event-title {
    font-weight: 800 !important;
    font-size: 14px !important;
    line-height: 1.1 !important;
    margin-bottom: 4px !important;
    color: inherit !important;
    display: block !important;
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: none !important;
    max-width: none !important;
    word-break: break-word !important;
}

.wp-planning-event-time,
.wp-planning-event-all-day {
    font-size: 11px !important;
    font-weight: 700 !important;
    opacity: 1 !important;
    color: rgba(255,255,255,0.95) !important;
    display: block !important;
    margin-top: auto !important;
    text-transform: none !important;
    letter-spacing: 0.3px !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8) !important;
    background: rgba(0,0,0,0.2) !important;
    padding: 1px 4px !important;
    border-radius: 3px !important;
}

.wp-planning-event-all-day {
    text-transform: uppercase !important;
    font-size: 11px !important;
    border-left: 3px solid rgba(255,255,255,0.7) !important;
    padding-left: 6px !important;
    margin-left: -3px !important;
}

/* Styles pour assurer la lisibilité selon les couleurs */
.wp-planning-event[style*="background-color: #ffffff"],
.wp-planning-event[style*="background-color: #f8f9fa"],
.wp-planning-event[style*="background-color: #e9ecef"],
.wp-planning-event[style*="background-color: #dee2e6"],
.wp-planning-event[style*="background-color: #ffc107"],
.wp-planning-event[style*="background-color: #ffeb3b"],
.wp-planning-event[style*="background-color: #fff3cd"] {
    color: #333 !important;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
    border: 2px solid rgba(0,0,0,0.2);
}

.wp-planning-event[style*="background-color: #ffffff"] .wp-planning-event-title,
.wp-planning-event[style*="background-color: #f8f9fa"] .wp-planning-event-title,
.wp-planning-event[style*="background-color: #e9ecef"] .wp-planning-event-title,
.wp-planning-event[style*="background-color: #dee2e6"] .wp-planning-event-title,
.wp-planning-event[style*="background-color: #ffc107"] .wp-planning-event-title,
.wp-planning-event[style*="background-color: #ffeb3b"] .wp-planning-event-title,
.wp-planning-event[style*="background-color: #fff3cd"] .wp-planning-event-title {
    color: #333 !important;
    text-shadow: 0 1px 2px rgba(255,255,255,0.9);
}

.wp-planning-event[style*="background-color: #ffffff"] .wp-planning-event-time,
.wp-planning-event[style*="background-color: #f8f9fa"] .wp-planning-event-time,
.wp-planning-event[style*="background-color: #e9ecef"] .wp-planning-event-time,
.wp-planning-event[style*="background-color: #dee2e6"] .wp-planning-event-time,
.wp-planning-event[style*="background-color: #ffc107"] .wp-planning-event-time,
.wp-planning-event[style*="background-color: #ffeb3b"] .wp-planning-event-time,
.wp-planning-event[style*="background-color: #fff3cd"] .wp-planning-event-time {
    color: #666 !important;
    text-shadow: 0 1px 2px rgba(255,255,255,0.7);
}

.wp-planning-event-title {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 2px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.wp-planning-event-time {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    margin-top: 1px;
}

.wp-planning-event-all-day {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* Style spécial pour les événements de journée entière */
.wp-planning-event:has(.wp-planning-event-all-day) {
    border-left: 4px solid rgba(255,255,255,0.6);
    background: linear-gradient(135deg, var(--event-color, #007cba), color-mix(in srgb, var(--event-color, #007cba) 80%, black));
}

/* Fallback pour navigateurs sans :has() */
.wp-planning-event[data-all-day="true"] {
    border-left: 4px solid rgba(255,255,255,0.6);
    background: linear-gradient(135deg, var(--event-color, #007cba), color-mix(in srgb, var(--event-color, #007cba) 80%, black));
}

.wp-planning-more-events {
    font-size: 11px;
    color: #6c757d;
    font-weight: 600;
    text-align: center;
    padding: 3px;
    background: #e9ecef;
    border-radius: 3px;
    margin-top: 2px;
}

/* Vue agenda */
.wp-planning-agenda-view {
    max-height: 600px;
    overflow-y: auto;
}

.wp-planning-no-events {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    font-size: 16px;
    font-style: italic;
}

.wp-planning-agenda-date {
    margin-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 20px;
}

.wp-planning-agenda-date:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.wp-planning-agenda-date h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 700;
    color: #495057;
    text-transform: capitalize;
}

.wp-planning-agenda-events {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wp-planning-agenda-event {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 15px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.wp-planning-agenda-event:hover {
    background: #f8f9fa;
    border-color: #007cba;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.wp-planning-event-time {
    font-weight: 700;
    font-size: 14px;
    min-width: 120px;
    text-align: center;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 2px solid currentColor;
}

.wp-planning-event-details {
    flex: 1;
}

.wp-planning-event-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.wp-planning-event-description {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.4;
}

/* Modales */
.wp-planning-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.wp-planning-modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.wp-planning-modal-header {
    padding: 25px 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.wp-planning-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.wp-planning-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.wp-planning-modal-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.wp-planning-modal-body {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
}

.wp-planning-modal-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Formulaires */
.wp-planning-form-field {
    margin-bottom: 25px;
}

.wp-planning-form-field:last-child {
    margin-bottom: 0;
}

.wp-planning-form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.wp-planning-form-field input,
.wp-planning-form-field textarea,
.wp-planning-form-field select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.wp-planning-form-field input:focus,
.wp-planning-form-field textarea:focus,
.wp-planning-form-field select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0,124,186,0.1);
    background: #fafbfc;
}

.wp-planning-form-field textarea {
    resize: vertical;
    min-height: 80px;
}

.wp-planning-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.wp-planning-form-field-half {
    margin-bottom: 0;
}

.wp-planning-checkbox-label {
    display: flex !important;
    align-items: center;
    cursor: pointer;
    font-weight: 500 !important;
    color: #495057 !important;
}

.wp-planning-checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin-right: 10px;
    margin-bottom: 0 !important;
    transform: scale(1.2);
    accent-color: #007cba;
}

/* Sélecteur de couleur */
.wp-planning-color-picker {
    display: flex;
    align-items: center;
    gap: 20px;
}

.wp-planning-color-picker input[type="color"] {
    width: 60px;
    height: 45px;
    padding: 2px;
    border-radius: 8px;
    cursor: pointer;
}

.wp-planning-color-presets {
    display: flex;
    gap: 8px;
}

.wp-planning-color-preset {
    width: 35px;
    height: 35px;
    border: 3px solid #e9ecef;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.wp-planning-color-preset:hover {
    transform: scale(1.15);
    border-color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.wp-planning-color-preset:active {
    transform: scale(1.05);
}

/* Boutons */
.wp-planning-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.wp-planning-btn-primary {
    background: linear-gradient(135deg, #007cba, #005a87);
    color: white;
    border-color: #005a87;
    box-shadow: 0 3px 8px rgba(0,124,186,0.3);
}

.wp-planning-btn-primary:hover {
    background: linear-gradient(135deg, #005a87, #004463);
    border-color: #004463;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,124,186,0.4);
    color: white;
    text-decoration: none;
}

.wp-planning-btn-secondary {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.wp-planning-btn-secondary:hover {
    background: #545b62;
    border-color: #545b62;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.wp-planning-btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border-color: #c82333;
}

.wp-planning-btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    border-color: #a71e2a;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Loading */
.wp-planning-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(2px);
}

.wp-planning-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e9ecef;
    border-top: 5px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Notifications */
.wp-planning-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 10001;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    animation: notificationSlideIn 0.4s ease;
    max-width: 400px;
}

.wp-planning-notification.wp-planning-error {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.wp-planning-notification.wp-planning-success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

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

/* Message d'information */
.wp-planning-info-message {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #bee5eb;
    text-align: center;
}

.wp-planning-info-message p {
    margin: 0;
    font-weight: 500;
}

/* Vues alternatives (pour intégration future) */
.wp-planning-week-view,
.wp-planning-day-view {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    font-style: italic;
    border: 2px dashed #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .wp-planning-calendar-container {
        padding: 20px;
    }
    
    .wp-planning-month-cell {
        min-height: 100px;
        padding: 10px;
    }
}

@media (max-width: 992px) {
    .wp-planning-frontend-toolbar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .wp-planning-toolbar-left,
    .wp-planning-toolbar-center,
    .wp-planning-toolbar-right {
        justify-content: center;
    }
    
    .wp-planning-current-date {
        min-width: auto;
        margin: 10px 0;
    }
}

@media (max-width: 768px) {
    .wp-planning-frontend-calendar {
        margin: 10px;
        border-radius: 8px;
    }
    
    .wp-planning-frontend-toolbar {
        padding: 15px 20px;
    }
    
    .wp-planning-calendar-container {
        padding: 15px;
    }
    
    .wp-planning-month-cell {
        min-height: 80px;
        padding: 8px;
    }
    
    .wp-planning-cell-date {
        font-size: 14px;
    }
    
    .wp-planning-event {
    font-size: 12px;
    padding: 5px 8px;
    min-height: 38px;
    line-height: 1.2;
}

.wp-planning-event .wp-planning-event-title {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 1px;
}

.wp-planning-event .wp-planning-event-time,
.wp-planning-event .wp-planning-event-all-day {
    font-size: 10px;
    opacity: 0.9;
}
    
    .wp-planning-modal-content {
        margin: 10px;
        border-radius: 12px;
    }
    
    .wp-planning-modal-header,
    .wp-planning-modal-body {
        padding: 20px;
    }
    
    .wp-planning-form-row {
        grid-template-columns: 1fr;
    }
    
    .wp-planning-modal-footer {
        flex-direction: column-reverse;
    }
    
    .wp-planning-color-picker {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .wp-planning-agenda-event {
        flex-direction: column;
        gap: 10px;
    }
    
    .wp-planning-event-time {
        min-width: auto;
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .wp-planning-day-header {
        padding: 12px 8px;
        font-size: 11px;
    }
    
    .wp-planning-month-cell {
        min-height: 70px;
        padding: 6px;
    }
    
    .wp-planning-cell-date {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .wp-planning-event {
    font-size: 11px;
    padding: 4px 6px;
    min-height: 32px;
    line-height: 1.1;
}

.wp-planning-event .wp-planning-event-title {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 1px;
}

/* Styles pour les descriptions d'événements */
.wp-planning-event-description {
    font-size: 10px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 2px;
    opacity: 0.9;
    word-break: break-word;
    overflow-wrap: break-word;
    color: rgba(255,255,255,0.85);
}

/* Descriptions pour événements avec couleurs claires */
.wp-planning-event[style*="background-color: #ffffff"] .wp-planning-event-description,
.wp-planning-event[style*="background-color: #f8f9fa"] .wp-planning-event-description,
.wp-planning-event[style*="background-color: #e9ecef"] .wp-planning-event-description,
.wp-planning-event[style*="background-color: #dee2e6"] .wp-planning-event-description,
.wp-planning-event[style*="background-color: #ffc107"] .wp-planning-event-description,
.wp-planning-event[style*="background-color: #ffeb3b"] .wp-planning-event-description,
.wp-planning-event[style*="background-color: #fff3cd"] .wp-planning-event-description {
    color: #666 !important;
}

.wp-planning-event .wp-planning-event-time,
.wp-planning-event .wp-planning-event-all-day {
    font-size: 9px;
    opacity: 0.85;
}
    
    .wp-planning-modal-content {
        max-height: 95vh;
    }
    
    .wp-planning-notification {
        left: 15px;
        right: 15px;
        top: 20px;
        max-width: none;
    }
    
    .wp-planning-toolbar-left,
    .wp-planning-toolbar-center,
    .wp-planning-toolbar-right {
        flex-wrap: wrap;
    }
    
    .wp-planning-nav-btn,
    .wp-planning-today-btn,
    .wp-planning-new-event-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .wp-planning-nav-btn {
        width: 40px;
        height: 40px;
    }
}

/* Thème sombre (optionnel) */
@media (prefers-color-scheme: dark) {
    .wp-planning-frontend-calendar {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .wp-planning-calendar-container {
        background: #1a1a1a;
    }
    
    .wp-planning-month-cell {
        background: #2a2a2a;
        border-color: #3a3a3a;
        color: #e0e0e0;
    }
    
    .wp-planning-month-cell.wp-planning-clickable:hover {
        background: #3a3a3a;
    }
    
    .wp-planning-month-cell.wp-planning-other-month {
        background: #1a1a1a;
        color: #666;
    }
    
    .wp-planning-modal-content {
        background: #2a2a2a;
        color: #e0e0e0;
    }
    
    .wp-planning-modal-footer {
        background: #1a1a1a;
        border-color: #3a3a3a;
    }
    
    .wp-planning-form-field input,
    .wp-planning-form-field textarea,
    .wp-planning-form-field select {
        background: #3a3a3a;
        border-color: #4a4a4a;
        color: #e0e0e0;
    }
    
    .wp-planning-form-field input:focus,
    .wp-planning-form-field textarea:focus,
    .wp-planning-form-field select:focus {
        background: #4a4a4a;
        border-color: #007cba;
    }
}