﻿.meetings-page {
    min-height: 100vh;
    padding: 60px 40px 40px;
    /* fundo: imagem + leve escurecimento para o texto branco ler bem */
    background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.65)), url("/Tecmic-fundo_XTraN.jpg") center center no-repeat;
    background-size: cover;
    color: #ffffff;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}




.meetings-title {
    margin-top: 0px;
    margin-left: 120px;
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 500;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.meetings-wrapper {
    margin-top: 0px;
    max-width: 720px;
    padding: 12px;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: rgba(0, 0, 0, 0.35); /* leve escurecimento por cima da imagem */
    /*border: 1px solid #000; /* Garante que o contorno exterior esteja presente */
    /*padding: 11px;*/
}


/* ---- Linhas da tabela (grelha) ---- */
.meetings-table .mud-table-root {
    border-collapse: collapse;
    border: 1px solid #ffffff;
}

.meetings-table .mud-table-cell,
.meetings-table .mud-table-head-cell {
    border: 1px solid #ffffff; /* linhas da tabela */
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

}


.table-and-dialog-container {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-left: 120px;
    margin-top: 0;
}

/* ===== Painel lateral "Criar nova Reunião" ===== */

.meeting-panel {
    width: 400px;
    padding: 24px 18px 18px 28px;
    background: rgba(0, 0, 0, 0.75); /* cartão escuro opaco */
    color: #ffffff;
    border-radius: 8px;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex; /* NOVO: flex container */
    flex-direction: column;
    position: relative;
    overflow:hidden;
}

    .meeting-panel .dialog-title {
        margin: 0 0 16px 0;
        font-size: 1.8rem;
        font-weight: 600;
        color: #ffffff;
    }

    /* labels dos campos */
    .meeting-panel .mud-input-label {
        color: #ffffff;
    }

    /* texto dentro das caixas */
    .meeting-panel .mud-input-root input,
    .meeting-panel .mud-input-root textarea {
        color: #ffffff;
    }

    /* linha/borda dos inputs */
    .meeting-panel .mud-input-root .mud-input-slot:before,
    .meeting-panel .mud-input-root .mud-input-slot:after {
        border-color: #ffffff;
    }

    /* botões no fundo do painel */
    .meeting-panel .mud-button-label {
        color: inherit;
    }

.upload-field {
    margin-top: 16px;
    margin-bottom: 8px;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    border-radius: 8px;
}

.meeting-panel .upload-label {
    display: block;
    /*font-size: 0.9rem;*/
    margin-bottom: 4px;
    color: #ffffff;
}

.meeting-panel .meeting-file-input {
    color: transparent;
}

.meeting-file-input-hidden {
    display: none;
}


.meeting-panel .upload-filename {
    margin-top: 4px;
    font-size: 0.85rem;
    opacity: 0.9;
}

.dialog-actions .mud-button-root {
    min-width: 0;
    padding: 3px;
    border-radius: 999px; /* fica mais redondinho */
    
}

.meeting-panel .dialog-actions-right {
    display: flex;
    justify-content: flex-end; /* encosta os botões à direita */
    gap: 2px;
    margin-top: 16px;
    margin-top:auto;
}
.meeting-panel .dialog-actions-right .mud-button-root {
        min-width: 0;
        padding: 4px;
        border-radius: 999px;
}

/* ==== Secção de gravação de reunião ==== */

.record-actions {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.record-label {
    
    opacity: 0.9;
    margin-right: 4px;
}

.record-button .mud-icon-root {
    font-size: 1.3rem; /* tamanho do ícone */
}

/* opcional: tornar os botões mais redondos tipo ícone */
.record-button.mud-button-root {
    min-width: 0;
    padding: 4px 6px;
    border-radius: 999px;
}


.details-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0; /* <-- importante */
}




.details-body {
    padding: 18px;
    overflow: auto; /* scroll para resumos longos */
}

/* ===== Detalhes em fullscreen mas com o estilo do meeting-panel ===== */

.meeting-panel-fullscreen {
    width: 100vw;
    height: 100vh;
    padding: 28px 22px 22px 28px; /* um bocadinho mais espaçoso */
    border-radius: 12px;
    max-width: none ;
    max-height: none ;
    border-radius: 0 ; /* para ficar mesmo ecrã inteiro */
    margin: 0 ;
}

/* Linha do título + X (igual ao header do teu painel) */
.details-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Scroll só dentro do conteúdo, mantendo o header fixo */
.meeting-panel-fullscreen .details-body {
    overflow: auto;
    margin-top: 8px;
    padding-right: 10px; /* ajuda quando aparece scrollbar */
}
.meeting-panel-fullscreen .details-title-row {
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.75); /* igual ao meeting-panel */
    z-index: 2;
    padding-bottom: 10px;
}
/* ===== Card decisão pós-gravação (clean) ===== */

.record-decision-card-clean {
    margin-top: 20px;
    padding: 20px 18px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.record-decision-subtext {
    opacity: 0.8;
    margin-bottom: 8px;
}

.recording-timer {
    margin-top: 10px;
    opacity: 0.95;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}


.post-record-actions {
    margin-top: -40px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 1; /* aparência “por trás” */
    pointer-events: auto; /* quando enabled funciona */
}

    .post-record-actions .mud-button-root {
        justify-content: flex-start;
        padding-left: 0;
    }


    .post-record-actions .mud-disabled {
        opacity: 0.35;
    }

.form-error-banner {
    margin: 6px 0 12px 0;
    color: #ff4d4d;
    font-weight: 600;
    font-size: 0.95rem;
}

.panel-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100; /* bem acima do conteúdo */
    border-radius: 8px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}



.panel-modal {
    width: min(360px, 92%);
    padding: 18px 16px;
    border-radius: 18px;
    background: rgba(12, 16, 40, 0.95); /* ✅ “cor de popup” */
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 45px rgba(0,0,0,0.55);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.panel-modal-actions {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.panel-content.is-blurred {
    filter: blur(7px);
    opacity: 0.85;
    pointer-events: none; /* bloqueia cliques no formulário */
    user-select: none;
}






