* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lora', Georgia, serif;
    font-size: 12pt;
    background-color: #f0ede8;
    color: #2d2d2d;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 260px;
    min-width: 260px;
    background-color: #e3dfd9;
    display: flex;
    flex-direction: column;
    padding: 20px 15px 10px 15px;
    border-right: 1px solid #c8c3bc;
    position: relative;
}

.sidebar-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 0px;
    margin-bottom: 12px;
    margin-top: -6px;
    padding-bottom: 50px;
    border-bottom: 1px solid #c8c3bc;
}

.logo {
    font-family: 'Lora', Georgia, serif;
    font-size: 28pt;
    font-weight: normal;
    letter-spacing: 2px;
    display: inline-block;
    background: linear-gradient(
        180deg,
        #ffd700 0%,
        #b8860b 30%,
        #ffd700 50%,
        #8b6914 70%,
        #ffd700 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.4));
}

.new-conference-btn {
    background-color: #1a3a5c;
    color: white;
    border: none;
    padding: 3px 10px 1px 8px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Montserrat', sans serif;
    font-size: 12pt;
    font-weight: 600;
    width: auto;
    margin-bottom: 0px;
    margin-right: 1.5mm;
    transition: background-color 0.2s;
}

.new-conference-btn:hover {
    background-color: #00BFFF;
}



.conferences-list {
    flex: 1;
    overflow-y: auto;
    margin-top: 0px;
}
/* MAIN AREA */
.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

.welcome-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.welcome-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 48pt;
    font-weight: 700;
    color: #8b2a3a;
    letter-spacing: 4px;
}

.welcome-subtitle {
    font-size: 14pt;
    color: #888;
    letter-spacing: 2px;
}

.welcome-hint {
    font-size: 12pt;
    color: #999;
    margin-top: 10px;
}

.tagline {
    font-size: 12pt;
    color: #999;
    margin-top: 10px;
}

/* POPUP OVERLAY */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.popup-overlay.active {
    display: flex;
    pointer-events: all;
    align-items: center;
    justify-content: center;
}

/* POPUP */
.popup {
    background-color: #f0ede8;
    border: 1px solid #c8c3bc;
    border-radius: 10px;
    width: 360px;
    max-width: 80%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 12px;
    position: relative;
    z-index: 1001;
    font-size: 11pt;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #c8c3bc;
}

.popup-header h2 {
    color: #1a3a5c;
    font-size: 14pt;
    letter-spacing: 1px;
}

.popup-close {
    background: none;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
}

.popup-close:hover {
    color: #1a3a5c;
}

/* POPUP FIELDS */
.popup-field {
    margin-bottom: 12px;
}

.popup-field label {
    display: block;
    font-size: 10pt;
    color: #888;
    margin-bottom: 5px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.popup-field input[type="text"] {
    width: 100%;
    padding: 7px 10px;
    background-color: #fff;
    border: 1px solid #c8c3bc;
    border-radius: 8px;
    color: #2d2d2d;
    font-family: 'Lora', Georgia, serif;
    font-size: 11pt;
    outline: none;
    pointer-events: all;
    z-index: 1002;
    position: relative;
}

.popup-field input[type="text"]:focus {
    border-color: #1a3a5c;
}

/* PARTICIPANTS */
.participants-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.participant-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background-color: #fff;
    border: 1px solid #c8c3bc;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.participant-item:hover {
    border-color: #1a3a5c;
}

.participant-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.participant-name {
    font-size: 11pt;
    font-weight: 600;
}

.chatgpt { color: #000080; }
.claude { color: #000080; }
.grok { color: #000080; }
.gemini { color: #000080; }

/* SAVE LOCATION */
.save-location {
    display: flex;
    gap: 10px;
}

.save-location input {
    flex: 1;
}

.browse-btn {
    padding: 10px 16px;
    background-color: #e3dfd9;
    border: 1px solid #c8c3bc;
    border-radius: 8px;
    color: #2d2d2d;
    cursor: pointer;
    font-family: 'Lora', Georgia, serif;
    font-size: 11pt;
    transition: background-color 0.2s;
}

.browse-btn:hover {
    background-color: #c8c3bc;
}

/* POPUP FOOTER */
.popup-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #c8c3bc;
}

.cancel-btn {
    padding: 6px 14px;
    background: none;
    border: 1px solid #c8c3bc;
    border-radius: 8px;
    color: #888;
    cursor: pointer;
    font-family: 'Lora', Georgia, serif;
    font-size: 11pt;
    transition: border-color 0.2s;
}

.cancel-btn:hover {
    border-color: #1a3a5c;
    color: #1a3a5c;
}

.begin-btn {
    padding: 8px 20px;
    background-color: #1a3a5c;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-family: 'Lora', Georgia, serif;
    font-size: 12pt;
    font-weight: 600;
    transition: background-color 0.2s;
}

.begin-btn:hover {
    background-color: #c73652;
}

/* CONFERENCE FOLDER IN SIDEBAR */
.conference-folder {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 2px;
    transition: background-color 0.2s;
}

.conference-folder:hover {
    background-color: #c8c3bc;
}

.folder-icon {
    font-size: 20px;
}

.folder-name {
    font-size: 11pt;
    color: #000000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* CONFERENCE ROOM */
.conference-room {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-x: hidden;
}

.conference-header {
    padding: 6px 10px;
    background-color: #e3dfd9;
    border-bottom: 1px solid #c8c3bc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.conference-title {
    font-size: 12pt;
    color: #2d2d2d;
    font-weight: 600;
}

.participants-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    justify-content: flex-end;
    max-width: 300px;
}

.participant-badge {
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 9.5pt;
    font-weight: 450;
}

.participant-badge.chatgpt,
.participant-badge.claude,
.participant-badge.grok,
.participant-badge.gemini {
    background-color: #000080;
    color: #ffffff;
    border: 1px solid #000080;
}

/* MESSAGES AREA */
.messages-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #faf6f0;
}

.conference-started-msg {
    text-align: center;
    font-size: 10pt;
    color: #999;
    padding: 10px;
}

/* INPUT AREA */
.input-area {
    padding: 10px 25px 3px 25px;
    background-color: #e3dfd9;
    border-top: 1px solid #c8c3bc;
}

.input-bar {
    background-color: #ffffff;
    border: 1px solid #c8c3bc;
    border-radius: 12px;
    padding: 8px 5px 38px 12px;
    position: relative;
    min-height: 80px;
}

.attach-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
    position: absolute;
    bottom: 5px;
    left: 5px;
    z-index: 10;
}

.attach-btn:hover {
    opacity: 1;
}

.user-input {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: #000000;
    font-family: 'Lora', Georgia, serif;
    font-size: 12pt;
    resize: none;
    outline: none;
    line-height: 1.5;
    min-height: 24px;
    max-height: 168px;
    overflow-y: auto;
    padding: 0;
    box-sizing: border-box;
}

.mic-btn {
    padding: 0;
    width: 32px;
    height: 32px;
    background: #ffffff;
    border: 1px solid #1a3a5c;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.8);
    transition: background 0.2s, box-shadow 0.2s, opacity 0.2s;
    opacity: 0.7;
    position: absolute;
    bottom: 62px;
    right: 5px;
    z-index: 10;
    flex-direction: column;
    font-size: 6pt;
    font-family: 'Montserrat', sans-serif;
    color: #1a3a5c;
}

.mic-btn:hover {
    background: #acb4b7;
    color: #fff;
}

.mic-btn:hover img {
    filter: brightness(0) invert(1);
}

.mic-btn.active {
    background: rgba(204,0,0,0.15);
    border-color: #cc0000;
    color: #000000;
    font-family: 'Archivo Black', sans-serif;
}

@keyframes micWave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(2); }
}

.mic-wave {
    display: flex;
    gap: 2px;
    align-items: center;
    height: 8px;
    margin-top: 2px;
}

.mic-wave span {
    display: inline-block;
    width: 2px;
    height: 100%;
    background: #cc0000;
    animation: micWave 0.6s ease-in-out infinite;
}

.mic-wave span:nth-child(2) { animation-delay: 0.1s; }
.mic-wave span:nth-child(3) { animation-delay: 0.2s; }
.mic-wave span:nth-child(4) { animation-delay: 0.1s; }

.send-btn {
    padding: 0;
    width: 32px;
    height: 32px;
    background-color: #1a3a5c;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.2s;
    position: absolute;
    bottom: 5px;
    right: 5px;
    z-index: 10;
}

.send-btn:hover {
    background-color: #c73652;
}

/* FOLDER INFO */
.folder-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.folder-participants {
    font-size: 10pt;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ACTIVE FOLDER */
.conference-folder.active {
    background-color: #c8c3bc;
}

/* INPUT HINT */
.input-hint {
    font-size: 10pt;
    color: #aaa;
    margin-top: 6px;
    padding-left: 5px;
}

/* MESSAGES */
.message {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 16px;
    border-radius: 10px;
    max-width: 85%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.message-boss, .message-you {
    background-color: #1a3a5c;
    border: none;
    align-self: flex-end;
    max-width: 40%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.message-boss .message-actions,
.message-you .message-actions {
    position: absolute;
    bottom: -24px;
    right: 0;
}

.message-boss,
.message-you {
    position: relative;
    margin-bottom: 28px;
}

.message-thinking {
    background-color: #fff;
    border: 1px solid #c8c3bc;
    align-self: flex-start;
}

.message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.message-sender {
    font-size: 10pt;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.message-sender.boss { color: #fff; }
.message-sender.chatgpt { color: #000080; }
.message-sender.claude { color: #000080; }
.message-sender.grok { color: #000080; }
.message-sender.gemini { color: #000080; }

.message-time {
    font-size: 9pt;
    color: #aaa;
}

.message-boss .message-time {
    color: rgba(255,255,255,0.7);
}

.message-body {
    font-size: 12pt;
    color: #000000;
    line-height: 1.6;
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.message-boss .message-body {
    color: #ffffff;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    max-width: 100%;
    overflow: hidden;
}

/* THINKING DOTS */
.thinking-dots {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 4px 0;
}

.thinking-dots span {
    width: 6px;
    height: 6px;
    background-color: #aaa;
    border-radius: 50%;
    animation: thinking 1.2s infinite;
}

.thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes thinking {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* CONTEXT MENU */
.context-menu {
    position: fixed;
    background-color: #f0ede8;
    border: 1px solid #c8c3bc;
    border-radius: 8px;
    padding: 5px;
    z-index: 9999;
    min-width: 150px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.context-menu-item {
    padding: 8px 14px;
    font-size: 11pt;
    color: #2d2d2d;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.context-menu-item:hover {
    background-color: #e3dfd9;
}

.context-menu-item.delete:hover {
    background-color: #1a3a5c;
    color: #fff;
}

/* FOLDER RENAME INPUT */
.folder-rename-input {
    background-color: #fff;
    border: 1px solid #1a3a5c;
    border-radius: 4px;
    color: #2d2d2d;
    font-family: 'Lora', Georgia, serif;
    font-size: 11pt;
    padding: 2px 6px;
    width: 100%;
    outline: none;
}

/* SETTINGS BUTTON */
.settings-btn {
    background-color: #1a3a5c;
    border: none;
    border-radius: 8px;
    color: white !important;
    cursor: pointer;
    font-family: 'Lora', Georgia, serif;
    font-size: 11pt;
    padding: 6px 12px;
    transition: background-color 0.2s;
    -webkit-text-fill-color: white !important;
}

.settings-btn:hover {
    background-color: #0f2a4a;
}

.settings-btn:hover {
    opacity: 1;
}

/* SETTINGS PAGE */
.settings-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #f0ede8;
    color: #2d2d2d;
    font-family: 'Lora', Georgia, serif;
}

.settings-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 30px;
    background-color: #e3dfd9;
    border-bottom: 1px solid #c8c3bc;
}

.back-btn {
    background: none;
    border: 1px solid #c8c3bc;
    border-radius: 8px;
    color: #888;
    padding: 8px 16px;
    cursor: pointer;
    font-family: 'Lora', Georgia, serif;
    font-size: 11pt;
    transition: all 0.2s;
}

.back-btn:hover {
    border-color: #1a3a5c;
    color: #1a3a5c;
}

.settings-title {
    font-size: 16pt;
    color: #1a3a5c;
    letter-spacing: 2px;
}

.settings-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
}

/* SETTINGS SECTION */
.settings-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 13pt;
    color: #2d2d2d;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.section-desc {
    font-size: 11pt;
    color: #888;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* API KEY ROWS */
.api-key-row {
    background-color: #fff;
    border: 1px solid #c8c3bc;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 12px;
}

.api-key-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.api-key-name {
    font-size: 12pt;
    font-weight: 700;
    letter-spacing: 1px;
    color: #2d2d2d;
}

.api-key-provider {
    font-size: 10pt;
    color: #888;
}

.api-key-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.api-key-input {
    flex: 1;
    padding: 10px 14px;
    background-color: #f0ede8;
    border: 1px solid #c8c3bc;
    border-radius: 8px;
    color: #2d2d2d;
    font-size: 11pt;
    outline: none;
    font-family: monospace;
}

.api-key-input:focus {
    border-color: #1a3a5c;
}

.toggle-key-btn {
    background: none;
    border: 1px solid #c8c3bc;
    border-radius: 8px;
    color: #888;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.toggle-key-btn:hover {
    border-color: #1a3a5c;
}

.test-key-btn {
    padding: 8px 16px;
    background-color: #e3dfd9;
    border: 1px solid #c8c3bc;
    border-radius: 8px;
    color: #2d2d2d;
    cursor: pointer;
    font-family: 'Lora', Georgia, serif;
    font-size: 11pt;
    transition: background-color 0.2s;
}

.test-key-btn:hover {
    background-color: #c8c3bc;
}

/* KEY STATUS */
.key-status {
    display: block;
    font-size: 10pt;
    margin-top: 8px;
    min-height: 16px;
}

.key-status.saved { color: #4caf50; }
.key-status.error { color: #1a3a5c; }
.key-status.testing { color: #888; }

/* SAVE BUTTON */
.settings-save-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.save-settings-btn {
    padding: 12px 30px;
    background-color: #1a3a5c;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-family: 'Lora', Georgia, serif;
    font-size: 13pt;
    font-weight: 600;
    transition: background-color 0.2s;
}

.save-settings-btn:hover {
    background-color: #c73652;
}

.save-status { font-size: 11pt; }
.save-status.success { color: #4caf50; }
.save-status.warning { color: #ff9800; }

/* MODE TAG */
.mode-tag {
    font-size: 10pt;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 10px;
}

.council-tag {
    background-color: rgba(233, 69, 96, 0.15);
    color: #1a3a5c;
    border: 1px solid #1a3a5c;
}

.primary-tag {
    background-color: rgba(255, 193, 7, 0.15);
    color: #c8960c;
    border: 1px solid #c8960c;
}

/* PRIMARY BADGE */
.participant-badge.is-primary {
    border-width: 2px;
    font-weight: 800;
}

/* MODE OPTIONS */
.mode-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mode-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    background-color: #fff;
    border: 1px solid #c8c3bc;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.mode-option:hover {
    border-color: #1a3a5c;
}

.mode-option input[type="radio"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

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

.mode-title {
    font-size: 11pt;
    font-weight: 600;
    color: #2d2d2d;
}

.mode-desc {
    font-size: 10pt;
    color: #888;
    line-height: 1.3;
}

/* PRIMARY SELECT */
.primary-select {
    width: 100%;
    padding: 10px 14px;
    background-color: #fff;
    border: 1px solid #c8c3bc;
    border-radius: 8px;
    color: #2d2d2d;
    font-family: 'Lora', Georgia, serif;
    font-size: 12pt;
    outline: none;
    cursor: pointer;
}

.primary-select:focus {
    border-color: #1a3a5c;
}

/* SWITCH MODE POPUP */
.switch-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.switch-popup {
    background-color: #f0ede8;
    border: 1px solid #c8c3bc;
    border-radius: 10px;
    padding: 20px;
    width: 280px;
}

.switch-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #c8c3bc;
    font-size: 12pt;
    color: #2d2d2d;
}

.switch-popup-header button {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 16px;
}

.switch-popup-header button:hover {
    color: #1a3a5c;
}

.switch-popup-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.switch-popup-label {
    font-size: 10pt;
    color: #888;
    margin-bottom: 5px;
}

.switch-llm-btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #c8c3bc;
    background-color: #fff;
    color: #2d2d2d;
    cursor: pointer;
    font-family: 'Lora', Georgia, serif;
    font-size: 11pt;
    font-weight: 600;
    text-align: left;
    transition: all 0.2s;
}

.switch-llm-btn:hover {
    border-color: #1a3a5c;
    color: #1a3a5c;
}

.switch-divider {
    border: none;
    border-top: 1px solid #c8c3bc;
    margin: 5px 0;
}

.switch-council-btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #1a3a5c;
    background-color: #fff;
    color: #1a3a5c;
    cursor: pointer;
    font-family: 'Lora', Georgia, serif;
    font-size: 11pt;
    font-weight: 600;
    text-align: left;
    transition: all 0.2s;
}

.switch-council-btn:hover {
    background-color: #1a3a5c;
    color: white;
}

.switch-popup-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #c8c3bc;
    display: flex;
    justify-content: flex-end;
}

.switch-cancel-btn {
    background: none;
    border: 1px solid #c8c3bc;
    border-radius: 6px;
    color: #888;
    padding: 6px 14px;
    cursor: pointer;
    font-family: 'Lora', Georgia, serif;
    font-size: 10pt;
    transition: all 0.2s;
}

.switch-cancel-btn:hover {
    border-color: #1a3a5c;
    color: #1a3a5c;
}

/* SELECT ALL */
.participants-select-all {
    margin-bottom: 8px;
}

.select-all-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.select-all-label {
    font-size: 10pt;
    color: #1a3a5c;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}



.participant-name.custom {
    color: #aaa;
    font-style: italic;
}



/* NEW LLM COLORS */
.llama { color: #000080; }
.qwen { color: #000080; }
.mistral { color: #000080; }

.participant-badge.llama,
.participant-badge.qwen,
.participant-badge.mistral {
    background-color: #000080;
    color: #ffffff;
    border: 1px solid #000080;
}

/* ACTIVE/INACTIVE LLM BUTTONS */
.llm-active {
    border-color: #4caf50 !important;
    color: #4caf50 !important;
}

.llm-inactive {
    opacity: 0.5;
}

.llm-inactive:hover {
    opacity: 1;
    border-color: #1a3a5c !important;
    color: #1a3a5c !important;
}

/* INPUT WRAPPER */
.input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* MENTION DROPDOWN */
.mention-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    background-color: #f0ede8;
    border: 1px solid #c8c3bc;
    border-radius: 8px;
    padding: 5px;
    min-width: 160px;
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    margin-bottom: 6px;
}

.mention-item {
    padding: 7px 12px;
    font-size: 11pt;
    color: #2d2d2d;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.15s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mention-item:hover {
    background-color: #e3dfd9;
}

.mention-at {
    color: #4fc3f7;
    font-weight: 700;
}

/* MENTION INDICATOR */
.mention-indicator {
    font-size: 10pt;
    color: #4fc3f7;
    padding: 2px 4px;
    letter-spacing: 0.5px;
}
.llm-participants-btn {
    background-color: #ffffff;
    border: 1px solid #c8c3bc;
    border-radius: 8px;
    color: #2d2d2d;
    cursor: pointer;
    font-family: 'Lora', Georgia, serif;
    font-size: 12pt;
    padding: 8px 18px;
    transition: background-color 0.2s;
}

.llm-participants-btn:hover {
    background-color: #e3dfd9;
}
.summary-assistant-btn {
    background-color: #ffffff;
    border: 1px solid #c8c3bc;
    border-radius: 6px;
    color: #2d2d2d;
    cursor: pointer;
    font-family: 'Lora', Georgia, serif;
    font-size: 11pt;
    padding: 3px 8px;
    transition: background-color 0.2s;
}

.summary-assistant-btn:hover {
    background-color: #e3dfd9;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.performance-toggle-btn {
    background-color: #ffffff;
    border: 1px solid #c8c3bc;
    border-radius: 6px;
    color: #2d2d2d;
    cursor: pointer;
    font-family: 'Lora', Georgia, serif;
    font-size: 11pt;
    padding: 3px 8px;
    transition: background-color 0.2s;
    display: inline-flex;
}

.performance-toggle-btn:hover {
    background-color: #e3dfd9;
}

.sidebar-user-box {
    padding: 6px 14px;
    border-top: 1px solid #c8c3bc;
    cursor: pointer;
    background-color: #a8c4e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    margin: 6px 6px -10px 6px;
    transition: box-shadow 0.2s;
}

.sidebar-user-box:hover {
    background-color: #518080;
}

.user-name {
    font-family: 'Lora', Georgia, serif;
    font-size: 12pt;
    color: #2d2d2d;
    font-weight: bold;
}

.user-menu {
    position: absolute;
    bottom: 80px;
    left: 6px;
    right: 6px;
    background-color: #e8eef5;
    border-radius: 8px;
    padding: 10px;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.user-menu button {
    background: none;
    border: none;
    font-family: 'Lora', Georgia, serif;
    font-size: 12pt;
    color: #2d2d2d;
    cursor: pointer;
    text-align: left;
    padding: 4px 0;
    width: 100%;
}

.user-menu button:hover {
    color: #1a3a5c;
    font-weight: bold;
}

.user-name {
    font-family: 'Lora', Georgia, serif;
    font-size: 10pt;
    color: #2d2d2d;
}

.user-menu {
    flex-direction: column;
    gap: 6px;
    padding-top: 8px;
}

.user-menu button {
    background: none;
    border: none;
    font-family: 'Lora', Georgia, serif;
    font-size: 12pt;
    color: #2d2d2d;
    cursor: pointer;
    text-align: left;
    padding: 4px 0;
}

.user-menu button:hover {
    color: #1a3a5c;
}
.switch-mode-btn {
    background-color: #ffffff;
    border: 1px solid #c8c3bc;
    border-radius: 6px;
    color: #2d2d2d;
    cursor: pointer;
    font-family: 'Lora', Georgia, serif;
    font-size: 11pt;
    padding: 3px 8px;
    transition: background-color 0.2s;
}

.switch-mode-btn:hover {
    background-color: #e3dfd9;
}
.message-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12pt;
    opacity: 0.5;
    padding: 0;
}

.copy-btn:hover {
    opacity: 1;
}
.participants-panel {
    background: #f0ede8;
    border: 1px solid #c8c3bc;
    border-radius: 8px;
    padding: 6px 10px;
    min-width: 180px;
    max-width: 220px;
}

.participants-panel-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 9pt;
    color: #888;
    margin-bottom: 4px;
    font-weight: bold;
}

.participants-panel-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.panel-participant {
    display: flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
}

.panel-participant-name {
    font-family: 'Lora', Georgia, serif;
    font-size: 9pt;
    opacity: 0.4;
}

.panel-participant input:checked + .panel-participant-name {
    opacity: 1;
    font-weight: bold;
}
.search-container {
    display: inline-flex;
    align-items: center;
    border: 1px solid #c8c3bc;
    border-radius: 6px;
    padding: 2px 5px;
    background: #ffffff;
    margin-top: 4.8px;
    gap: 2px;
    width: 80px;
min-width: 80px;
max-width: 200px;
    overflow: hidden;
    transition: width 0.3s ease;
}
.search-container:focus-within {
    width: 200px;
}


.search-box {
    border: 1px solid transparent;
    outline: none;
    font-family: 'Lora', Georgia, serif;
    font-size: 10pt;
    color: #2d2d2d;
    background: transparent;
    width: 50px;
    padding: 2px 4px;
    border-radius: 4px;
    transition: border-color 0.2s;
}

.search-box:hover {
    border-color: #0000ff;
}

.search-box::placeholder {
    color: #bbb;
}

.search-count {
    font-family: 'Montserrat', sans-serif;
    font-size: 9pt;
    color: #000000;
    white-space: nowrap;
    min-width: 40px;
    text-align: center;
}

.search-nav {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 11pt;
    font-weight: 700;
    color: #1a3a5c;
    padding: 0 2px;
    line-height: 1;
}

.search-clear {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 11pt;
    color: #888;
    padding: 0;
}
.mention-selected {
    background-color: #1a3a5c;
    color: white;
}
.handbook-salient-btn {
    text-decoration: underline;
    text-align: center;
    font-weight: normal;
}
.handbook-item-btn {
    text-decoration: none;
    text-align: left;
    font-weight: bold;
}
#notebookWindow {
    overflow: visible !important;
}
#notebookWindow {
    overflow: hidden !important;
}
.sidebar-logo {
    animation: rotateLogo 3s ease-in-out infinite;
}
@keyframes bellShake {
    0%  { transform: rotate(0deg); }
    15% { transform: rotate(15deg); }
    30% { transform: rotate(-15deg); }
    45% { transform: rotate(10deg); }
    60% { transform: rotate(-10deg); }
    75% { transform: rotate(5deg); }
    100%{ transform: rotate(0deg); }
}
.bell-shake {
    animation: bellShake 0.6s ease-in-out;
}
.attached-file-badge img {
    border: none;
    outline: none;
}
.message-boss img:not(.copy-btn img):not([src="attachment_icon.svg"]):not([src="image_icon.svg"]), .message-you img:not(.copy-btn img):not([src="attachment_icon.svg"]):not([src="image_icon.svg"]) {
    border: 1px solid rgba(255,0,0,0.9);
    border-radius: 3px;
}
.header-box-btn {
    transition: box-shadow 0.2s, background-color 0.2s;
}

.header-box-btn:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.25) !important;
    background-color: rgba(227,223,217,0.95) !important;
}
@keyframes pulseRed {
    0% { box-shadow: inset 0 0 16px rgba(204,0,0,0.7); }
    50% { box-shadow: inset 0 0 26px rgba(204,0,0,1); }
    100% { box-shadow: inset 0 0 16px rgba(204,0,0,0.7); }
}

.pulse-red {
    animation: pulseRed 1.5s ease-in-out infinite;
}