/**
 * Styles compacts pour le formulaire d'événement
 */

/* Réduction des marges et paddings généraux */
.cdclient-calendrier-nouvel-evenement .box {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
}

.cdclient-calendrier-nouvel-evenement .section {
    padding: 1.5rem 0 !important;
}

/* Colonnes plus serrées */
.cdclient-calendrier-nouvel-evenement .columns {
    margin-left: -0.5rem !important;
    margin-right: -0.5rem !important;
    margin-bottom: 0.75rem !important;
}

.cdclient-calendrier-nouvel-evenement .column {
    padding: 0.5rem !important;
}

/* Champs de formulaire plus compacts */
.cdclient-calendrier-nouvel-evenement .field {
    margin-bottom: 0.75rem !important;
}

.cdclient-calendrier-nouvel-evenement .field:last-child {
    margin-bottom: 0 !important;
}

.cdclient-calendrier-nouvel-evenement .label {
    font-size: 0.875rem !important;
    margin-bottom: 0.375rem !important;
    font-weight: 600 !important;
    color: #4a5568 !important;
}

.cdclient-calendrier-nouvel-evenement .input,
.cdclient-calendrier-nouvel-evenement select {
    font-size: 0.875rem !important;
    padding: 0.5rem 0.75rem !important;
    height: auto !important;
}

/* Inputs color plus petits */
.cdclient-calendrier-nouvel-evenement input[type="color"] {
    width: 50px !important;
    height: 36px !important;
    padding: 0.25rem !important;
}

/* Titre plus compact */
.cdclient-calendrier-nouvel-evenement .title {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
}

/* Boutons plus petits */
.cdclient-calendrier-nouvel-evenement .button {
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
}

.cdclient-calendrier-nouvel-evenement .button.is-small {
    padding: 0.375rem 0.875rem !important;
    font-size: 0.813rem !important;
}

/* Table des participants plus compacte */
.cdclient-calendrier-nouvel-evenement .table {
    font-size: 0.875rem !important;
}

.cdclient-calendrier-nouvel-evenement .table th,
.cdclient-calendrier-nouvel-evenement .table td {
    padding: 0.5rem !important;
}

.cdclient-calendrier-nouvel-evenement .table.is-striped tbody tr:not(.is-selected):nth-child(even) {
    background-color: #fafafa !important;
}

/* Checkbox plus compact */
.cdclient-calendrier-nouvel-evenement input[type="checkbox"] {
    margin-right: 0.375rem !important;
}

/* Éditeur WordPress plus compact */
.cdclient-calendrier-nouvel-evenement #wp-content_event-wrap {
    margin-top: 0 !important;
}

.cdclient-calendrier-nouvel-evenement .wp-editor-container {
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px !important;
}

.cdclient-calendrier-nouvel-evenement #wp-content_event-editor-tools {
    margin-bottom: 0 !important;
}

/* Ajustement pour les sous-labels */
.cdclient-calendrier-nouvel-evenement .label sub {
    font-size: 0.75rem !important;
    color: #718096 !important;
    font-weight: 400 !important;
}

/* Réduction de la hauteur des box */
.cdclient-calendrier-nouvel-evenement .column .box[style*="height:100%"] {
    height: auto !important;
    min-height: 100% !important;
}

/* Section récurrence plus compacte */
.cdclient-calendrier-nouvel-evenement .cdcalendarlememejourdelasemaine {
    margin-top: 0.5rem !important;
    font-size: 0.875rem !important;
}

/* Organisation en grille pour certains champs */
.cdclient-calendrier-nouvel-evenement .columns.is-multiline {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 1rem !important;
}

/* Amélioration visuelle des box */
.cdclient-calendrier-nouvel-evenement .box {
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
    background: #ffffff !important;
}

/* Header de box optionnel */
.cdclient-calendrier-nouvel-evenement .box-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.cdclient-calendrier-nouvel-evenement .box-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .cdclient-calendrier-nouvel-evenement .columns {
        display: block !important;
    }
    
    .cdclient-calendrier-nouvel-evenement .column {
        width: 100% !important;
        margin-bottom: 1rem !important;
    }
    
    .cdclient-calendrier-nouvel-evenement .table {
        font-size: 0.75rem !important;
    }
}

/* Optimisation de l'espace pour les tables */
.cdclient-calendrier-nouvel-evenement .table-container {
    max-height: 400px !important;
    overflow-y: auto !important;
}

/* Alignement des couleurs */
.cdclient-calendrier-nouvel-evenement .color-fields {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cdclient-calendrier-nouvel-evenement .color-fields .field {
    margin-bottom: 0 !important;
}

/* Bouton supprimer mieux intégré */
.cdclient-calendrier-nouvel-evenement #cdclient-calendrier-delete-event {
    float: right !important;
    margin-top: -0.25rem !important;
}

/* Zone de contenu principal */
.cdclient-calendrier-nouvel-evenement .contenu-principal {
    max-width: 100% !important;
}

/* Amélioration de la lisibilité */
.cdclient-calendrier-nouvel-evenement {
    color: #2d3748 !important;
    line-height: 1.5 !important;
}

/* Select plus stylé */
.cdclient-calendrier-nouvel-evenement select {
    background-color: white !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}

/* Focus states */
.cdclient-calendrier-nouvel-evenement .input:focus,
.cdclient-calendrier-nouvel-evenement select:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    outline: none !important;
}

.fc-list-event-time {
    display: none !important;
}

.fc-list-event-graphic {
    display: none !important;
}

.fc-list-event-title {
    padding: 4px 6px !important;
}

.fc-event-list-content {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 10px;
    position: relative;
}

.fc-event-title-list {
    font-weight: 600;
    font-size: 0.95rem;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fc-event-time-list {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.fc-event-subtitle-list {
    font-size: 0.85rem;
    opacity: 0.9;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.fc-list-event {
    cursor: pointer;
}

.fc-list-event:hover {
    background-color: inherit !important;
    filter: brightness(1.1);
}

.fc-list-event:hover .fc-event-list-content {
    opacity: 0.95;
}

@media (max-width: 768px) {
    .fc-event-list-content {
        flex-wrap: wrap;
        padding: 8px;
    }
    
    .fc-event-title-list {
        flex: 1 1 100%;
        margin-bottom: 4px;
    }
    
    .fc-event-time-list,
    .fc-event-subtitle-list {
        flex: 0 1 auto;
    }
}