/**
 * Estilos para o Widget de Agenda de Reuniões
 * 
 * @package DTICAddons
 * @subpackage Agenda
 */

.agenda-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Layout Horizontal - Container wrapper */
.agenda-horizontal-wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* Layout Horizontal - Containers individuais */
.agenda-horizontal-wrapper .agenda-container {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.agenda-layout-vertical {
    flex-direction: column;
    align-items: center;
}

.agenda-layout-vertical .agenda-date {
    margin-bottom: 15px;
}

.agenda-date {
    background-color: #e9ecef;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    min-width: 80px;
    height: 80px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.agenda-day {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: #000000;
    margin-bottom: 2px;
}

.agenda-month {
    font-size: 12px;
    font-weight: 500;
    color: #000000;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

.agenda-meetings {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    flex-grow: 1;
    min-width: 0;
}

.agenda-meeting {
    padding: 0;
    border-bottom: none;
    font-size: 14px;
    line-height: 1.2;
    color: #333333;
    white-space: normal;
}

.agenda-meeting br {
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.agenda-meeting:last-child {
    border-bottom: none;
}

.agenda-time {
    font-weight: 700;
    color: #000000;
}

/* Responsividade */
@media (max-width: 768px) {
    .agenda-container {
        /* Manter layout horizontal mesmo no mobile */
        flex-direction: row;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }
    
    .agenda-date {
        min-width: 60px;
        padding: 10px;
        flex-shrink: 0;
    }
    
    .agenda-day {
        font-size: 18px;
    }
    
    .agenda-month {
        font-size: 10px;
    }
    
    .agenda-meetings {
        flex-grow: 1;
        padding: 10px;
        min-width: 0;
    }
    
    .agenda-meeting {
        font-size: 12px;
        padding: 5px 0;
    }
}

@media (max-width: 480px) {
    .agenda-container {
        padding: 12px;
        gap: 10px;
    }
    
    .agenda-date {
        min-width: 50px;
        padding: 8px;
    }
    
    .agenda-day {
        font-size: 16px;
    }
    
    .agenda-month {
        font-size: 9px;
    }
    
    .agenda-meetings {
        padding: 8px;
    }
    
    .agenda-meeting {
        font-size: 11px;
        padding: 4px 0;
    }
}

/* Estados de hover */
.agenda-container:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.agenda-meeting:hover {
    background-color: #f1f3f4;
    border-radius: 4px;
    padding-left: 8px;
    margin-left: -8px;
    transition: all 0.2s ease;
}

/* Melhorias para acessibilidade */
.agenda-container:focus-within {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Animações suaves */
.agenda-container,
.agenda-date,
.agenda-meetings,
.agenda-meeting {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Melhorias para telas de alta densidade */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .agenda-container {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Proteção específica para o editor do Elementor */
.elementor-editor-active .agenda-container {
    min-height: 100px;
}

.elementor-editor-active .agenda-date {
    min-width: 80px;
}

.elementor-editor-active .agenda-meetings {
    min-height: 60px;
}
