/* meetings.css — Meeting Minutes tool */

.gwpm_wrap {
    display: flex;
    position: relative;
    min-height: 100%;
}

/* ─── Panels ─────────────────────────────────────────────────────────────── */
.gwpm_panel { flex: 1; padding: 0; }
.gwpm_hidden { display: none !important; }

/* ─── List ───────────────────────────────────────────────────────────────── */
.gwpm_list_body { padding: 8px 0; }

.gwpm_list_row {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    gap: 12px;
}

.gwpm_list_row:hover { background: #f8f9fa; }

.gwpm_list_icon { color: var(--accent1, #1D6C90); font-size: 20px; flex-shrink: 0; }

.gwpm_list_info { flex: 1; min-width: 0; }

.gwpm_list_title {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gwpm_list_meta {
    display: flex;
    gap: 12px;
    margin-top: 3px;
    font-size: 12px;
    color: #6b7280;
    flex-wrap: wrap;
}

.gwpm_list_meta span { display: flex; align-items: center; gap: 4px; }

.gwpm_list_badge {
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    flex-shrink: 0;
}

.gwpm_list_badge.gwpm_badge_done { background: #d1fae5; color: #065f46; }

.gwpm_list_arrow { color: #d1d5db; font-size: 14px; flex-shrink: 0; }

.gwpm_loading, .gwpm_empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #9ca3af;
    gap: 12px;
    text-align: center;
}

.gwpm_empty i { font-size: 40px; }
.gwpm_empty p { margin: 0; font-size: 14px; }
.gwpm_empty_sm { padding: 20px; color: #9ca3af; font-size: 13px; text-align: center; }

/* ─── Details tab content (now inside the gwp_meetingpopup popup, not a page panel) ─ */
.gwpm_meta_row { margin-bottom: 12px; }

.gwpm_title_input {
    width: 100%;
    font-size: 20px;
    font-weight: 700;
    border: none;
    border-bottom: 2px solid #e5e7eb;
    padding: 6px 0;
    outline: none;
    color: #1a1a2e;
    background: transparent;
    box-sizing: border-box;
}

.gwpm_title_input:focus { border-bottom-color: var(--accent1, #1D6C90); }

.gwpm_meta_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
@media (min-width: 700px) {
    .gwpm_meta_grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

.gwpm_meta_field { display: flex; flex-direction: column; gap: 4px; }

.gwpm_meta_field label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.gwpm_meta_field input[type="text"],
.gwpm_meta_field input[type="datetime-local"] {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 13px;
    color: #1a1a2e;
    outline: none;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

.gwpm_meta_field input:focus { border-color: var(--accent1, #1D6C90); }

.gwpm_meta_field .gwp_taxonomy_input,
.gwpm_meta_field .select_multiframe,
.gwpm_meta_field .select_singleframe {
    width: 100%;
    box-sizing: border-box;
}

.gwpm_attendees_field { margin-bottom: 16px; }

.gwpm_attendees_wrap {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    position: relative;
    background: #fff;
    min-height: 38px;
}

.gwpm_attendees_wrap:focus-within { border-color: var(--accent1, #1D6C90); }

.gwpm_chips { display: flex; flex-wrap: wrap; gap: 6px; }

.gwpm_chip {
    background: var(--accent1, #1D6C90);
    color: #fff;
    font-size: 12px;
    padding: 3px 8px 3px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.gwpm_chip_remove {
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    opacity: 0.8;
}

.gwpm_chip_remove:hover { opacity: 1; }

.gwpm_attendees_wrap input[type="text"] {
    border: none;
    outline: none;
    font-size: 13px;
    flex: 1;
    min-width: 120px;
    background: transparent;
}

.gwpm_dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
}

.gwpm_dd_item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gwpm_dd_item:hover { background: #f3f4f6; }
.gwpm_dd_email { color: #9ca3af; font-size: 12px; }

/* ─── Tabs ───────────────────────────────────────────────────────────────── */
/* Tab bar/buttons are now the shared .gwp_popup_taba/.gwp_popup_tabaselected
   pill classes, built by gwp_createpopup1's "dbtabs" popup type — they inherit
   the Clarity pill styling automatically (css/v3_global.css, scoped under the
   real .gwp_popup ancestor), no styling needed here. */

.gwpm_badge {
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
}

/* ─── Agenda ─────────────────────────────────────────────────────────────── */
.gwpm_section_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.gwpm_section_header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.gwpm_agenda_item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.gwpm_agenda_num { font-size: 13px; color: #9ca3af; font-weight: 600; min-width: 20px; }

.gwpm_agenda_text {
    flex: 2;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 13px;
    outline: none;
}

.gwpm_agenda_presenter {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 13px;
    outline: none;
    color: #6b7280;
}

.gwpm_agenda_text:focus, .gwpm_agenda_presenter:focus { border-color: var(--accent1, #1D6C90); }

/* ─── Recorder ───────────────────────────────────────────────────────────── */
.gwpm_record_wrap { display: flex; flex-direction: column; gap: 24px; }

.gwpm_recorder {
    background: #f8f9ff;
    border: 1px solid #e0e7ff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.gwpm_waveform {
    width: 100%;
    max-width: 500px;
    height: 60px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.gwpm_rec_timer {
    font-size: 28px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #1a1a2e;
    letter-spacing: 2px;
}

.gwpm_rec_btns { display: flex; align-items: center; gap: 14px; }

.gwpm_rec_btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent1, #1D6C90);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gwpm_rec_btn:hover { opacity: 0.9; }
.gwpm_rec_btn.gwpm_rec_active { background: #ef4444; animation: gwpm_pulse 1.5s infinite; }
.gwpm_rec_btn.gwpm_rec_paused { background: #f59e0b; }

@keyframes gwpm_pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
    50%       { box-shadow: 0 0 0 10px rgba(239,68,68,0); }
}

.gwpm_stop_btn {
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gwpm_stop_btn:hover { background: #374151; }

.gwpm_playback_wrap {
    width: 100%;
    max-width: 500px;
    padding: 4px 0 2px;
}
.gwpm_playback_audio {
    width: 100%;
    height: 36px;
    border-radius: 8px;
}
.gwpm_rec_hint { font-size: 12px; color: #9ca3af; text-align: center; margin: 0; }

.gwpm_transcript_section { display: flex; flex-direction: column; gap: 10px; }

.gwpm_rec_status {
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 6px;
}

.gwpm_status_loading { background: #eff6ff; color: #1d4ed8; }
.gwpm_status_success { background: #d1fae5; color: #065f46; }
.gwpm_status_error   { background: #fee2e2; color: #991b1b; }
.gwpm_status_info    { background: #f3f4f6; color: #374151; }

.gwpm_generate_bar { display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── Local recording bar ────────────────────────────────────────────────── */
.gwpm_local_bar {
    margin-bottom: 10px;
}

.gwpm_local_bar_inner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #78350f;
    flex-wrap: wrap;
}

.gwpm_local_bar_inner i { font-size: 16px; color: #d97706; flex-shrink: 0; }
.gwpm_local_bar_inner span { flex: 0; white-space: nowrap; }
.gwpm_player_bar { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.gwpm_player_bar i { color: #16a34a; }

/* ─── Saved recordings list ──────────────────────────────────────────────── */
.gwpm_recordings_section { margin-bottom: 20px; }

.gwpm_rec_item {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gwpm_rec_item_info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 100px;
    flex-shrink: 0;
}

.gwpm_rec_item_label { font-size: 13px; font-weight: 600; color: #374151; }
.gwpm_rec_item_dur   { font-size: 11px; color: #9ca3af; }

.gwpm_rec_audio {
    flex: 1;
    height: 32px;
    min-width: 150px;
}

.gwpm_rec_item_actions { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }

/* ─── Minutes ────────────────────────────────────────────────────────────── */
.gwpm_minutes_wrap { display: flex; flex-direction: column; gap: 12px; }

.gwpm_minutes_editor {
    min-height: 280px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.7;
    outline: none;
    color: #1a1a2e;
    box-sizing: border-box;
    overflow-y: auto;
    font-family: inherit;
}
.gwpm_minutes_editor:focus { border-color: var(--accent1, #1D6C90); }
.gwpm_minutes_editor:empty:before { content: attr(data-placeholder); color: #9ca3af; }
.gwpm_minutes_editor p  { margin: 0 0 10px; }
.gwpm_minutes_editor h1,.gwpm_minutes_editor h2,.gwpm_minutes_editor h3 { font-size: 14px; font-weight: 600; margin: 14px 0 6px; color: #374151; }
.gwpm_minutes_editor ul,.gwpm_minutes_editor ol { margin: 0 0 10px; padding-left: 20px; }
.gwpm_minutes_editor li { margin-bottom: 3px; }
.gwpm_minutes_editor strong { font-weight: 600; }

/* ─── Transcript panel (in minutes tab) ──────────────────────────────────── */
.gwpm_transcript_display { border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.gwpm_td_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    user-select: none;
}
.gwpm_td_header:hover { background: #f0f4f8; }
.gwpm_td_arrow { font-size: 11px; }
.gwpm_td_body { padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; max-height: 240px; overflow-y: auto; }
.gwpm_td_line { display: flex; gap: 8px; font-size: 13px; line-height: 1.5; }
.gwpm_td_speaker { font-weight: 600; color: var(--accent1, #1D6C90); white-space: nowrap; flex-shrink: 0; min-width: 90px; }
.gwpm_td_text { color: #374151; }
.gwpm_td_cont .gwpm_td_text { color: #6b7280; padding-left: 98px; font-style: italic; }

.gwpm_summary_box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    color: #14532d;
}

.gwpm_sum_text { margin: 0 0 10px; line-height: 1.6; }
.gwpm_sum_section { margin-top: 8px; }
.gwpm_sum_section strong { display: block; margin-bottom: 4px; }
.gwpm_sum_section ul { margin: 0; padding-left: 18px; }
.gwpm_sum_section li { margin-bottom: 3px; }

.gwpm_textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
    color: #1a1a2e;
}

.gwpm_textarea:focus { border-color: var(--accent1, #1D6C90); }
/* .gwpm_minutes_textarea replaced by .gwpm_minutes_editor */

/* ─── Actions ────────────────────────────────────────────────────────────── */
.gwpm_action_row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.gwpm_action_row.gwpm_action_done .gwpm_action_text { text-decoration: line-through; color: #9ca3af; }

.gwpm_action_check {
    font-size: 20px;
    cursor: pointer;
    color: #9ca3af;
    flex-shrink: 0;
    padding-top: 4px;
}

.gwpm_action_done .gwpm_action_check { color: #10b981; }

.gwpm_action_content { flex: 1; display: flex; flex-direction: column; gap: 6px; }

.gwpm_action_text {
    border: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 4px 0;
    font-size: 14px;
    width: 100%;
    outline: none;
    font-family: inherit;
    background: transparent;
}

.gwpm_action_text:focus { border-bottom-color: var(--accent1, #1D6C90); }

.gwpm_action_meta { display: flex; gap: 8px; }

.gwpm_action_assignee,
.gwpm_action_due {
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    padding: 4px 8px;
    font-size: 12px;
    outline: none;
    color: #6b7280;
    background: #f9fafb;
}

.gwpm_action_assignee { flex: 1; }
.gwpm_action_assignee:focus, .gwpm_action_due:focus { border-color: var(--accent1, #1D6C90); background: #fff; }

/* ─── Shared ──────────────────────────────────────────────────────────────── */
.gwpm_wrap .gwpm_icon_btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 18px;
    padding: 5px;
    border-radius: 5px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.gwpm_icon_btn:hover { color: #ef4444; background: #fee2e2; }

/* ─── Buttons (self-contained — do not rely on output.css) ───────────────── */
.gwpm_wrap .gwp_btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 7px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1;
}
.gwpm_wrap .gwp_btn:hover { background: #f3f4f6; border-color: #9ca3af; }

.gwpm_wrap .gwp_btn_primary {
    background: var(--accent1, #1D6C90);
    color: #fff;
    border-color: var(--accent1, #1D6C90);
}
.gwpm_wrap .gwp_btn_primary:hover { opacity: 0.88; }

.gwpm_wrap .gwp_btn_secondary {
    background: #fff;
    color: var(--accent1, #1D6C90);
    border-color: var(--accent1, #1D6C90);
}
.gwpm_wrap .gwp_btn_secondary:hover { background: #f0f7fb; }

.gwpm_wrap .gwp_btn_danger {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}
.gwpm_wrap .gwp_btn_danger:hover { background: #dc2626; }

.gwpm_wrap .gwp_btn_accent {
    background: #7c3aed;
    color: #fff;
    border-color: #7c3aed;
}
.gwpm_wrap .gwp_btn_accent:hover { background: #6d28d9; }

.gwpm_wrap .gwp_btn_sm {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.gwpm_wrap .gwp_btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ─── Toast ──────────────────────────────────────────────────────────────── */
.gwpm_toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1a1a2e;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
}

.gwpm_toast_show { opacity: 1; transform: translateX(-50%) translateY(0); }
.gwpm_toast_warn { background: #b45309; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .gwpm_meta_grid { grid-template-columns: 1fr; }
}
