/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Grid Container for accordions */
.infnetci-accordions-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.infnetci-accordion {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.2);
    width: 100%;
    padding: 25px;
    margin-bottom: 0;
    box-sizing: border-box;
}

/* Make odd-numbered last item full width */
.infnetci-accordion:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.infnetci-accordion:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

.infnetci-accordion .infnetci-accordion-button {
    width: 100% !important;
    font-size: 1.3em !important;
    padding: 16px !important;
    margin-bottom: 10px !important;
}

.infnetci-accordion .infnetci-btn-aovivo {
    font-size: 20px;
    font-weight: bold;
    line-height: 60px;
}

.infnetci-card {
    display: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

.infnetci-accordion .infnetci-card {
    padding: 0 20px;
    display: none;
}

.infnetci-card h3 {
    margin: 20px 0 0 0 !important
}

/* New section styling */
.infnetci-live-section,
.infnetci-recordings-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f7f7f7;
    border-radius: 8px;
}

.infnetci-live-section p {
    margin-bottom: 10px;
}

.infnetci-live-section h4,
.infnetci-recordings-section h4 {
    color: #2c3e50;
    border-bottom: 2px solid #073763;
    padding-bottom: 5px;
    font-weight: 900;
    margin: 0 0 15px 0;
    font-size: 1.1em;
}

/* .infnetci-zoom-link {
    word-break: break-all;
    color: #1a73e8;
    text-decoration: none;
}

.infnetci-zoom-link:hover {
    text-decoration: underline;
} */

/* end new section */

/* --- Recording Link Button Styles (Emoji Version) --- */

/* Container for the links/buttons */
.infnetci-recording-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

/* Base style for all recording links */
.recording-link {
    display: inline-flex;
    /* Use flex layout */
    align-items: center;
    /* Vertically center items (emoji + text) */
    gap: 0.4em;
    /* Add space between emoji and text using gap (adjust value as needed) */

    padding: 5px 10px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    background-color: #f7f7f7;
    color: #444444;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    /* line-height: 1; /* Explicitly set line-height to 1 or adjust slightly */
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    /* Remove vertical-align: middle; as align-items should handle it now */
}

/* Hover and Focus states */
.recording-link:hover,
.recording-link:focus {
    background-color: #e8e8e8;
    border-color: #bbbbbb;
    color: #222222;
    text-decoration: none;
    outline: none;
    box-shadow: 0 0 0 1px rgba(0, 115, 170, 0.3);
}


/* Video ao Vivo Link */
.recording-link.zoom-link {
    border-color: #073763;
    background-color: #eaf4fc;
    color: #073763;
    margin-top: 12px;
}

.recording-link.zoom-link:hover,
.recording-link.zoom-link:focus {
    background-color: #d6e9f9;
    border-color: #79add7;
    color: #144266;
}

/* Video Link */
.recording-link.video-link {
    border-color: #073763;
    background-color: #eaf4fc;
    color: #073763;
}

.recording-link.video-link:hover,
.recording-link.video-link:focus {
    background-color: #d6e9f9;
    border-color: #79add7;
    color: #144266;
}

/* Chat Link */
.recording-link.chat-link {
    border-color: #073763;
    background-color: #eaf4fc;
    color: #073763;
}

.recording-link.chat-link:hover,
.recording-link.chat-link:focus {
    background-color: #d6e9f9;
    border-color: #79add7;
    color: #144266;
}

/* Transcription Link */
.recording-link.transcription-link {
    border-color: #073763;
    background-color: #eaf4fc;
    color: #073763;
}

.recording-link.transcription-link:hover,
.recording-link.transcription-link:focus {
    background-color: #d6e9f9;
    border-color: #79add7;
    color: #144266;
}


/* --- Optional: Styles from previous steps --- */
/* Ensure these don't conflict, adjust if needed */

/* Style for each recording block */
.infnetci-recording-item {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.infnetci-recording-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.infnetci-recording-item h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 600;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .infnetci-accordions-container {
        grid-template-columns: 1fr;
    }

    .infnetci-accordion:last-child:nth-child(odd) {
        grid-column: auto;
    }
}

/* Oculta botão de Selecionar todos no envio de mensagem em lote */
.bb-panel-subhead .bp-group-message-wrap {
    display:none;
}

@media (max-width: 1181px) {
    .item-meta {
        display: flex;
    }
}

@media (min-width: 1181px) {
    #send-group-message {
        position: absolute;
        top: 65px;
        right: 0;
        z-index: 10;
    }
}

/* Esconde botão "Sair do Grupo" para TODOS*/
#item-header-content .leave-group {
    pointer-events: none;
}

/* Ajusta botão de Clear de notificações*/
.bb-onscreen-notification-enable .bb-onscreen-notification.bb-position-right .bb-remove-all-notification {
    justify-content: center;
}

/* Inicio Customização Chat Nativo */
#bp-message-thread-list li {
	display: flex;
}

#bp-message-thread-list li.divider-date {
	justify-content: center;
}

#bp-message-thread-list li.infnet-ci-sender-is-you {
	justify-content: flex-end;
}

#bp-message-thread-list li.infnet-ci-sender-is-you .bp-single-message-wrap {
	background-color: #e6f0fa;
	border-radius: 8px;
	border: 1px solid #b8d4ea;
	padding: 3px;
}

#message-threads .favorite {
	border-left: 3px solid #21759B;
	order: 0;
}

#message-threads {
    display: flex;
    flex-direction: column;
}

#message-threads li {
    order: 1;
}

#message-threads .thread-excerpt {
    font-weight: 300;
}

#message-threads .unread .thread-excerpt {
    font-weight: 500;
}

.thread-item.favorite .thread-to::before {
    content: "📌";
    position: absolute;
    top: 10px;
    right: 32px;
    font-size: 12px;
}

/* Esconde botão de favoritos no mobile */
@media (max-width: 768px) {
  .infnet-favorite {
    display: none;
  }
}
/* Fim Customização Chat Nativo */

/* Altera visual dos campos do form de edição de perfil */
#settings-form #email,
#profile-edit-form #field_1,#profile-edit-form #field_2,#profile-edit-form #field_3,
.woocommerce-EditAccountForm #account_first_name,.woocommerce-EditAccountForm #account_last_name,.woocommerce-EditAccountForm #account_display_name,.woocommerce-EditAccountForm #account_email {
    pointer-events: none;
    cursor: default;
    opacity: 0.5;
}