/* Em assets/css/frontend-styles.css */

/* Estilos existentes da timeline */
.vis-item.evento-normal {
    background-color: #d4edda;
    border-color: #c3e6cb;
}
.vis-item.evento-atencao {
    background-color: #fff3cd;
    border-color: #ffeeba;
}
.vis-item.evento-alerta {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    font-weight: bold;
}

/* --- ESTILOS FINAIS PARA FUNCIONALIDADE DE TELA CHEIA --- */

.agromanejo-component-wrapper {
    position: relative;
    border: 1px solid #ddd;
    margin-top: 20px;
    background-color: #f9f9f9;
}

#timeline-wrapper .toggle-fullscreen-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    left: auto;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.toggle-fullscreen-btn:hover {
    background-color: #fff;
    border-color: #999;
}

.toggle-fullscreen-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

body.component-fullscreen-active {
    overflow: hidden;
}

.agromanejo-component-wrapper.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    padding: 10px;
    box-sizing: border-box;
    background-color: #ffffff;
    border: none;
    margin: 0;
}

.agromanejo-component-wrapper.fullscreen #timeline-container {
    height: 100% !important;
}

/* Estilo para o botão de fechar universal */
#agromanejo-close-fullscreen-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10002; /* O mais alto de todos */
    background-color: #fff;
    border: 1px solid #999;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

#agromanejo-close-fullscreen-btn .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}


/* Estilos para o Modal de Detalhes do Evento */
#event-details-modal {
    display: none;
    position: fixed;
    z-index: 10001; /* Garante que fique na frente da tela cheia */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}
.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    position: relative;
    border-radius: 8px;
}
.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}