:root {
    /* ------------------------------------------------------------------ */
    /* Core sizing tokens reused throughout the legacy (classic) theme.    */
    /* ------------------------------------------------------------------ */
    --button-border-radius: 8px;
    --button-border-width: 0.5px;
    --button-border-color: var(--color-border-soft);
    --button-border-style: solid;
    --border-radius-main: 21px;

    /* ------------------------------------------------------------------ */
    /* Shadow presets (classic neumorphic palette by default).            */
    /* These are overridden by modern themes via body.theme-* selectors.  */
    /* ------------------------------------------------------------------ */
    --box-shadow-1: 5px 5px 8px #e5e7eb, -5px -5px 8px #ffffff;
    --box-shadow-2: 3px 3px 6px #e5e7eb, -3px -3px 6px #ffffff;
    --box-shadow-3: 1px 1px 4px #e5e7eb, -1px -1px 4px #ffffff;
    --box-shadow-4: 0px 0px 2px #e5e7eb, 0px 0px 2px #ffffff;
    --box-shadow-inset-1: inset 2px 2px 4px #e5e7eb, inset -2px -2px 4px #ffffff;
    --box-shadow-inset-2: inset 1px 1px 2px #ffffff, inset -1px -1px 2px #c3c8cf;

    /* ------------------------------------------------------------------ */
    /* Shared colour tokens. Defaults reproduce the classic experience.   */
    /* ------------------------------------------------------------------ */
    --color-app-background: var(--color-surface-primary);
    --color-surface-primary: #f8f8f8;
    --color-surface-secondary: #f1f1f1;
    --color-surface-tertiary: #fafafa;
    --color-surface-muted: #f3f3f3;
    --color-surface-soft: #fcfcfc;
    --color-surface-contrast: #ffffff;
    --color-surface-accent: #ececec;
    --color-surface-alert: #fee2e2;
    --color-surface-primary-transparent: #f8f8f800;
    --color-text-primary: #111111;
    --color-text-muted: #333333;
    --color-text-inverse: #f8fafc;
    --color-accent-primary: #4b5563;
    --color-accent-strong: #374151;
    --color-border-soft: rgba(17, 17, 17, 0.12);
    --color-border-strong: rgba(17, 17, 17, 0.2);
    --scrollbar-track-color: #8888880a;
    --scrollbar-thumb-color: #8888883e;
    --scrollbar-thumb-hover-color: #888888;
    --background-main: #f8f8f8;
    --border-color: var(--color-border-soft);
    --repeat-toggle-off: #596275;
    --repeat-toggle-on: #2f6dff;
    --repeat-toggle-glow: rgba(47, 109, 255, 0.55);
}

body.theme-modern-light {
    --repeat-toggle-off: #606c80;
    --repeat-toggle-on: #2868ff;
    --repeat-toggle-glow: rgba(40, 104, 255, 0.52);
}

body.theme-modern-dark {
    --repeat-toggle-off: #6f7a8d;
    --repeat-toggle-on: #6db7ff;
    --repeat-toggle-glow: rgba(109, 183, 255, 0.58);
}

body.theme-modern-red-alert {
    --repeat-toggle-off: #7f0909;
    --repeat-toggle-on: #ff1f1f;
    --repeat-toggle-glow: rgba(255, 0, 0, 0.82);
}


body {
    position: relative;
    font-family: 'Inter', sans-serif;
    font-weight: 200;
    background: var(--color-app-background);
    color: var(--color-text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    margin: 0px;
    padding: 0px;
    flex-direction: column;
    overflow: hidden;
}

button {
    outline: none;
    border: none;
    font-family: Inter;
    box-sizing: border-box;
    border-radius: 8px;
    font-size: 13px;
    background: var(--color-surface-primary);
    box-shadow: none;
    margin: 1px;
    padding: 8px 13px 8px 13px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--color-text-primary);
    box-shadow: var(--box-shadow-3);
}

button:hover {
    outline: none;
}

button:active {
    outline: none;
    border-color: transparent;
}


.row-top {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 5px 0 5px;
    text-align: center;
    /* background: #3c7ece; */
}

.room-row {
    display: none;
}

/* ---- Room row list (left panel) ---- */
.room-row-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: var(--color-surface-primary);
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.room-row-item:hover {
    background: var(--color-surface-secondary);
}

.room-row-item--interactive {
    cursor: pointer;
}

.room-row-item--control-local {
    border-color: #22c55e;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2);
}

.room-row-item--control-remote {
    border-color: #ef4444;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.2);
}

.room-row-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.room-row-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.room-row-assign {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.room-row-icon {
    font-size: 14px;
    color: var(--color-text-muted);
}

.room-row-icon--online {
    color: #22c55e;
}

.room-row-icon--offline {
    color: #f59e0b;
}

.room-row-icon--missing {
    color: #ef4444;
}

.room-row-assign-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.room-row-assign-text--none {
    font-style: italic;
    opacity: 0.6;
}

.room-row-status {
    margin-left: 0;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 0.64rem;
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.room-row-status--online {
    color: #15803d;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
}

.room-row-status--offline {
    color: #b45309;
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.35);
}

.room-row-status--missing {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
}

.room-row-menu-btn {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    margin: 0;
    color: var(--color-text-muted);
    box-shadow: none;
}

.room-row-menu-btn:hover {
    background: var(--color-surface-secondary);
    box-shadow: var(--box-shadow-inset-2);
}

.room-row-menu-btn .material-symbols-outlined {
    font-size: 18px;
}

.room-row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Inactive rooms */
.room-row-item--inactive {
    opacity: 0.55;
}

.room-row-upgrade-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border: none;
    border-radius: 12px;
    background: #f59e0b;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.room-row-upgrade-badge:hover {
    background: #d97706;
}

.room-row-upgrade-badge .material-symbols-outlined {
    font-size: 13px;
}

.inline-rename {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.inline-rename-input {
    width: 100%;
    min-width: 0;
    height: 24px;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid var(--color-border-soft);
    background: var(--color-surface-secondary);
    color: var(--color-text-primary);
    font-size: 0.8rem;
    line-height: 1.2;
}

.inline-rename-input:focus {
    outline: none;
    border-color: var(--color-accent-primary);
}

.inline-rename-confirm {
    width: 24px;
    min-width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--color-text-muted);
    box-shadow: none;
    cursor: pointer;
}

.inline-rename-confirm .material-symbols-outlined {
    font-size: 16px;
}

.room-control-confirm p {
    font-size: 0.88rem;
    margin: 0 0 10px;
    line-height: 1.4;
}

.room-control-confirm-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 14px;
    cursor: pointer;
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    text-align: left;
    box-shadow: none;
    height: auto !important;
    min-height: 0 !important;
}

.room-control-confirm-check .room-control-confirm-check-icon {
    font-size: 20px;
    color: var(--color-text-muted);
}

.room-control-confirm-check.is-checked {
    color: var(--color-text-primary);
}

.room-control-confirm-check.is-checked .room-control-confirm-check-icon {
    color: var(--color-accent-primary, #2563eb);
}

.room-assignment-warning-list {
    margin: 10px 0 14px 18px;
    padding: 0;
    max-height: 180px;
    overflow: auto;
    line-height: 1.45;
}

.room-assignment-warning-list li {
    margin: 0 0 8px;
}

.room-assignment-warning-device-id {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

/* ---- Room dropdown menu ---- */
.room-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    min-width: 160px;
    padding: 6px;
    border-radius: 12px;
    background: var(--color-surface-primary);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12), 0 -1px 4px rgba(0, 0, 0, 0.08);
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 4px;
}

.room-menu.hidden {
    display: none;
}

.room-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--color-text-primary);
    cursor: pointer;
    white-space: nowrap;
    box-shadow: none;
    margin: 0;
}

.room-menu-item:hover {
    background: var(--color-surface-secondary);
}

.room-menu-item .material-symbols-outlined {
    font-size: 16px;
    color: var(--color-text-muted);
}

.room-menu-item--danger {
    color: #ef4444;
}

.room-menu-item--danger .material-symbols-outlined {
    color: #ef4444;
}

.room-rename-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.room-rename-form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.room-rename-form input {
    width: 100% !important;
}

.room-rename-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.room-rename-actions button {
    border-width: var(--button-border-width, 1px);
    border-style: var(--button-border-style, solid);
    border-color: var(--button-border-color, var(--color-border-soft));
    border-radius: 12px;
    min-height: var(--app-button-height, 36px);
    padding: 0 14px;
    cursor: pointer;
    background: var(--color-surface-primary);
    box-shadow: var(--box-shadow-3);
    color: var(--color-text-primary);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.room-rename-actions button:hover {
    box-shadow: var(--box-shadow-1);
}

.room-rename-actions .primary {
    background: var(--color-accent-primary, #2c71f0);
    border-color: var(--color-accent-primary, #2c71f0);
    color: #ffffff;
    font-weight: 600;
    box-shadow: none;
}

.room-device-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.room-device-option {
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border-radius: 12px;
    border: none;
    background: var(--color-surface-primary);
    box-shadow: var(--box-shadow-2);
    cursor: pointer;
}

.room-device-option__title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.room-device-option__meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.row-top-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    border: 1px solid #00000000;
    border-radius: 4px;
    height: 8px;
    width: 95%;
    box-shadow: var(--box-shadow-inset-1);
        /* background: #7bce3c; */


}

/* ---------------------------Logo Section--------------------------- */
img#logoMain {
    width: 32px;
    height: 32px;
    padding: 2px;
    position: fixed;
    left: 20px;
    top: 7px;
    border-radius: 40px;
    border-width: var(--button-border-width);
   border-color: var(--button-border-color);
   border-style: var(--button-border-style);


    /* border: 1px solid #0000004e;  */
    background: var(--color-surface-primary);
    box-shadow: var(--box-shadow-1);

}

#siteName {
    position: fixed;
    left: 62px;
    top: 8px;

    font-size: 22px;
    font-weight: 300;
    margin-top: 0;
}

.row-bottom {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    height: calc(100vh - 50px);

    margin: 0px;
    padding: 0px;
    text-align: center;
    /* background-color: #475569; */
    box-sizing: border-box;
}

.column_Left {
    display: flex;
    flex-direction: column;
    width: 20%;
    height: 100%;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.column_Centre {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    width: 60%;
    height: 100%;
    margin: 0;
    padding: 0 10px;
    text-align: center;
    /* background-color: #870aed; */
    box-sizing: border-box;
    overflow: hidden;
}

.column_Right {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    width: 20%;
    height: 100%;
    margin: 0;
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;
    /* background: #ff6a00; */
}

/* ---------------------centre container that contains the text pack container------------ */
.center-container {
    font-family: 'Inter', sans-serif;
    font-weight: 200;
    /* padding: 10px; */
    text-align: center;
    width: 100%;
    height: 50vh;
    /* max-width: 800px; */
    border-radius: 34px;
    border: 1px solid var(--color-border-soft);
    background: var(--color-surface-primary);

    /* box-shadow: var(--box-shadow-1); */
    /* margin: 20px; */
    margin-top: 12px;
    /* Add margin-bottom to create spacing between containers */
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    padding: 15px;
    box-sizing: border-box;
}
.centre-bottom-parts{
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    flex: 1;
    min-height: 0;
    margin: 0;
    padding: 0px;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
}


.container-1-outer {
    padding: 2px;
    text-align: center;
    width: 100%;
    border-width: var(--button-border-width);
   border-color: var(--button-border-color);
   border-style: var(--button-border-style);
    border-radius: 34px;
    background: var(--color-surface-primary);
    margin: 10px 0;
    /* max-width: 800px; */
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    transition: all 0.4s;
    /* makes it so padding is included in the max width calculation */
    /* box-shadow: var(--box-shadow-4); */
}
.container-1-outer:hover {
    /* background: var(--color-surface-primary);
    box-shadow: var(--box-shadow-1); */
    /* makes it so padding is included in the max width calculation */
}


.container-1-inner {
    padding: 10px 15px 10px 15px;
    text-align: center;
    width: 100%;
    /* max-width: 800px; */
    /* intensity is 0.10 , blur 8px , distance 5px, colour #f8f8f8 */
    border-radius: 31px;
    background: var(--color-surface-primary);
    /* box-shadow: inset 5px 5px 8px #e5e7eb,
        inset -5px -5px 8px #ffffff; */
    margin: 2px;
    box-sizing: border-box;

    /* Add margin-bottom to create spacing between containers */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}

.container-inner-surround-textbox {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    width: 100%;
}

.textInput_voice_display {
    display: flex;
    justify-content: center;  /* Align items to the start and end */
    align-items: center; /* Align items to the start and end */
    flex-direction: row;
    width: 100%;
    height: auto;
    margin: 0px 0px 10px 0px;
    padding: 0px;
    text-align: center;
    border-radius: 0px;
    /* background: #76bb06; */
    box-sizing: border-box;
}

/* ---------------------right side panel rasied border - outer and inner------------ */

.sidePanel_Right_Outer {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: var(--color-surface-primary);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.sidePanel_Right_Inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100%;
    width: 100%;
    /* padding: 15px 30px 20px 30px; */
    /* padding: 0px; */
    /* border-radius: 27px; */
    background: var(--color-surface-primary);
    /* box-shadow: inset 5px 5px 8px #e5e7eb,
        inset -5px -5px 8px #ffffff; */
    margin: 0px;
    box-sizing: border-box;

}

.audioPackContainer {
    height: 100%;
    width: 100%;
    padding: 0px;
    margin: 1px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    /* overflow-x: hidden; */
    /* overflow-y: scroll; */
    overflow: auto;

}

.audioPack {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    margin: 0 0 6px 0;
    padding: 0px;
    text-align: left;
    border-radius: 15px;
    background: var(--color-surface-primary);
}

/* ---------------------side panel------------ */

.sidePanel_Left_RoomControls {
    width: 100%;
    padding: 8px 15px 10px;
    box-sizing: border-box;
    border-top: 1px solid var(--color-border-soft);
    flex-shrink: 0;
}

.room-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.room-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

/* ── Multi-Room Toggle Switch ── */
.multi-room-toggle {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
    margin-left: 6px;
    flex-shrink: 0;
}

.multi-room-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.multi-room-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--color-surface-secondary);
    border: 1.5px solid var(--color-border-strong, rgba(255,255,255,0.25));
    border-radius: 18px;
    transition: background 0.2s, border-color 0.2s;
}

.multi-room-toggle-slider::before {
    content: "";
    position: absolute;
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 50%;
    transform: translateY(50%);
    background: var(--color-text-muted);
    border-radius: 50%;
    transition: transform 0.2s, background 0.2s;
}

.multi-room-toggle input:checked + .multi-room-toggle-slider {
    background: #3b82f6;
    border-color: #3b82f6;
}

.multi-room-toggle input:checked + .multi-room-toggle-slider::before {
    transform: translateX(16px) translateY(50%);
    background: #fff;
}

/* Red-alert theme override */
body.theme-modern-red-alert .multi-room-toggle-slider {
    border-color: var(--color-border-strong, rgba(255, 0, 0, 0.4));
}

body.theme-modern-red-alert .multi-room-toggle input:checked + .multi-room-toggle-slider {
    background: #d00000;
    border-color: #d00000;
}

/* ── Multi-Room Trial Banner ── */
.multi-room-trial-banner {
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--color-surface-secondary);
    text-align: center;
}
.multi-room-trial-text {
    font-size: 0.68rem;
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
}

.room-add-btn-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: var(--color-surface-secondary);
    box-shadow: var(--box-shadow-2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.room-add-btn-small .material-symbols-outlined {
    font-size: 16px;
}

.room-add-btn-small:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.room-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.room-laptop-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 4px 6px;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    width: 100%;
    box-shadow: none;
}

.room-laptop-label:hover {
    background: var(--color-surface-secondary);
}

.room-laptop-label .material-symbols-outlined {
    font-size: 16px;
}

.room-laptop-label-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.room-laptop-actions {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
    width: 100%;
}

.room-sync-button-outer {
    width: 100%;
    margin: 0;
}

.room-sync-button-outer button.room-sync-button {
    width: 100%;
}

.room-laptop-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border: none;
    border-radius: 6px;
    background: var(--color-surface-secondary);
    cursor: pointer;
    font-size: 0.7rem;
    color: var(--color-text-muted);
    width: 100%;
    text-align: left;
    transition: background 0.15s;
}

.room-laptop-action-btn:hover {
    background: var(--color-surface-tertiary, var(--color-surface-secondary));
    color: var(--color-text-primary);
}

.room-laptop-action-btn .material-symbols-outlined {
    font-size: 14px;
}

/* ── Laptop List Section ── */
.sidePanel_Left_LaptopList {
    margin-top: 12px;
    padding: 0 4px;
    width: 100%;
}

.laptop-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 0 4px 0;
}

.laptop-section-title {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.laptop-refresh-button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: var(--color-surface-secondary);
    color: var(--color-text-muted);
    box-shadow: var(--box-shadow-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.laptop-refresh-button:hover {
    background: var(--color-surface-tertiary, var(--color-surface-secondary));
    color: var(--color-text-primary);
}

.laptop-refresh-button:disabled {
    opacity: 0.55;
    cursor: wait;
}

.laptop-refresh-button .material-symbols-outlined {
    font-size: 16px;
}

.laptop-refresh-button.is-loading .material-symbols-outlined {
    animation: laptop-refresh-spin 1s linear infinite;
}

@keyframes laptop-refresh-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.laptop-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}

.laptop-list-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--color-text-primary);
    position: relative;
    cursor: default;
    width: 100%;
    box-sizing: border-box;
}

.laptop-list-item:hover {
    background: var(--color-surface-secondary);
}

.laptop-list-item--this {
    font-weight: 600;
}

.laptop-list-item--control-remote {
    border: 1px solid rgba(239, 68, 68, 0.7);
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.2);
}

.laptop-status-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.laptop-status-dot--online {
    background: #22c55e;
    box-shadow: 0 0 4px rgba(34, 197, 94, 0.5);
}

.laptop-status-dot--offline {
    background: #ef4444;
    box-shadow: 0 0 4px rgba(239, 68, 68, 0.3);
}

.laptop-list-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.laptop-main-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.16);
    border: 1px solid rgba(34, 197, 94, 0.45);
    color: #15803d;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.4;
    flex-shrink: 0;
}

.laptop-list-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    opacity: 0;
    transition: opacity 0.15s;
    flex-shrink: 0;
}

.laptop-list-item:hover .laptop-list-menu-btn {
    opacity: 1;
}

.laptop-list-menu-btn .material-symbols-outlined {
    font-size: 16px;
}

/* ── Laptop Context Menu ── */
.laptop-context-menu {
    position: fixed;
    z-index: 10000;
    background: var(--color-surface-primary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    padding: 4px 0;
    min-width: 160px;
}

.laptop-context-menu-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 14px;
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--color-text-primary);
    text-align: left;
}

.laptop-context-menu-item:hover {
    background: var(--color-surface-secondary);
}

.laptop-context-menu-item--disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.laptop-context-menu-item--disabled:hover {
    background: none;
}

.laptop-context-menu-item .material-symbols-outlined {
    font-size: 16px;
}

.laptop-inline-edit-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.laptop-inline-edit-wrap .inline-rename-input {
    height: 22px;
    font-size: 0.75rem;
}

/* ── Control Notification Banner ── */
.control-notification-banner {
    margin: 8px 4px 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--color-text-primary);
}

.control-notification-text {
    line-height: 1.3;
}

.control-notification-cancel-btn {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #ef4444;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.control-notification-cancel-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* ── Remote Control Banner (Master Side) ── */
.remote-control-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-size: 0.8rem;
    color: var(--color-text-primary);
}

.remote-control-banner-icon {
    font-size: 18px;
    color: #3b82f6;
}

.remote-control-banner-text {
    flex: 1;
}

.remote-control-banner.is-stale .remote-control-banner-text {
    color: #b45309;
}

.remote-control-banner-stop-btn {
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #ef4444;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.remote-control-banner-stop-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Blue borders on audio packs when controlling a remote room */
.remote-control-mode .audioPack .audio-button-outer.playing {
    border-color: #3b82f6;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.35);
}

.remote-control-mode .audioPack .audio-button-outer.paused {
    border-color: #3b82f6;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.25);
}

/* ── Master Request Dialog (countdown row) ── */
.master-request-countdown-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.18);
}

.master-request-countdown-label {
    font-size: 13px;
    color: #92400e;
    line-height: 1.4;
}

/* ── Sync Progress Overlay ── */
.sync-progress-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sync-progress-dialog {
    background: var(--color-surface-primary);
    border-radius: 12px;
    padding: 24px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.sync-progress-dialog h3 {
    margin: 0 0 12px;
    font-size: 1rem;
}

.sync-progress-status {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.sync-progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--color-surface-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.sync-progress-bar {
    height: 100%;
    background: #3b82f6;
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.sync-progress-file-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.sync-progress-close-btn {
    padding: 6px 16px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: var(--color-surface-secondary);
    color: var(--color-text-primary);
    font-size: 0.8rem;
    cursor: pointer;
    display: none;
}

.sync-progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 6px;
    margin-bottom: 4px;
}

/* new dialog */
.new-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.08), transparent 38%),
        radial-gradient(circle at 85% 90%, rgba(59, 130, 246, 0.14), transparent 42%),
        rgba(8, 12, 20, 0.58);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.new-dialog-overlay.is-open {
    opacity: 1;
}

.new-dialog-panel {
    width: min(560px, calc(100vw - 28px));
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 251, 255, 0.9) 100%);
    box-shadow:
        0 32px 60px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
    color: #1b2431;
    padding: 22px 22px 18px;
    transform: translateY(12px) scale(0.98);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.new-dialog-overlay.is-open .new-dialog-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.new-dialog-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.new-dialog-eyebrow {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #627084;
    font-weight: 700;
}

.new-dialog-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
    color: #101828;
}

.new-dialog-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.new-dialog-message {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #1f2937;
}

.new-dialog-details {
    margin: 0;
    font-size: 13px;
    line-height: 1.52;
    color: #4b5563;
}

.new-dialog-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.new-dialog-btn {
    border: 1px solid transparent;
    border-radius: 11px;
    min-height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.new-dialog-btn .material-symbols-outlined {
    font-size: 18px;
}

.new-dialog-btn:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.45);
    outline-offset: 2px;
}

.new-dialog-btn--primary {
    background: linear-gradient(165deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3);
}

.new-dialog-btn--secondary {
    background: #eef2ff;
    color: #1e3a8a;
    border-color: rgba(30, 64, 175, 0.24);
}

.new-dialog-btn--danger {
    background: linear-gradient(160deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.28);
}

.new-dialog-btn--ghost {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.18);
    color: #334155;
}

.new-dialog-btn:hover {
    transform: translateY(-1px);
}

.new-dialog-btn:active {
    transform: translateY(0);
}

/* ── New-dialog info rows (for multi-section dialogs) ── */
.new-dialog-info-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.035);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.new-dialog-info-icon {
    flex-shrink: 0;
    font-size: 20px;
    color: #2563eb;
    margin-top: 1px;
}

.new-dialog-info-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.52;
    color: #374151;
}

.new-dialog-info-text strong {
    font-weight: 650;
    color: #1f2937;
}

/* ── New-dialog checkbox row ── */
.new-dialog-check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    cursor: pointer;
    user-select: none;
}

.new-dialog-check-input {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
    cursor: pointer;
    border-radius: 4px;
    flex-shrink: 0;
}

.new-dialog-check-label {
    font-size: 13px;
    color: #6b7280;
    line-height: 1;
}

/* ── New-dialog: Dark mode ── */
@media (prefers-color-scheme: dark) {
    .new-dialog-overlay {
        background:
            radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.04), transparent 38%),
            radial-gradient(circle at 85% 90%, rgba(59, 130, 246, 0.1), transparent 42%),
            rgba(0, 0, 0, 0.7);
    }

    .new-dialog-panel {
        background: linear-gradient(165deg, rgba(30, 32, 38, 0.97) 0%, rgba(22, 24, 30, 0.95) 100%);
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 32px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
        color: #e2e8f0;
    }

    .new-dialog-eyebrow { color: #94a3b8; }
    .new-dialog-title { color: #f1f5f9; }
    .new-dialog-message { color: #cbd5e1; }
    .new-dialog-details { color: #94a3b8; }

    .new-dialog-btn--ghost {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.12);
        color: #cbd5e1;
    }

    .new-dialog-btn--secondary {
        background: rgba(59, 130, 246, 0.12);
        color: #93c5fd;
        border-color: rgba(59, 130, 246, 0.25);
    }

    .new-dialog-btn:focus-visible {
        outline-color: rgba(96, 165, 250, 0.5);
    }

    .new-dialog-info-row {
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(255, 255, 255, 0.07);
    }

    .new-dialog-info-icon { color: #60a5fa; }
    .new-dialog-info-text { color: #cbd5e1; }
    .new-dialog-info-text strong { color: #e2e8f0; }

    .new-dialog-check-label { color: #94a3b8; }
    .new-dialog-check-input { accent-color: #3b82f6; }

    .master-request-countdown-row {
        background: rgba(217, 119, 6, 0.12);
        border-color: rgba(217, 119, 6, 0.25);
    }

    .master-request-countdown-label { color: #fbbf24; }
}

/* ── New-dialog: Explicit dark theme class ── */
body.theme-modern-dark .new-dialog-overlay {
    background:
        radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.04), transparent 38%),
        radial-gradient(circle at 85% 90%, rgba(59, 130, 246, 0.1), transparent 42%),
        rgba(0, 0, 0, 0.7);
}

body.theme-modern-dark .new-dialog-panel {
    background: linear-gradient(165deg, rgba(30, 32, 38, 0.97) 0%, rgba(22, 24, 30, 0.95) 100%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 32px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

body.theme-modern-dark .new-dialog-eyebrow { color: #94a3b8; }
body.theme-modern-dark .new-dialog-title { color: #f1f5f9; }
body.theme-modern-dark .new-dialog-message { color: #cbd5e1; }
body.theme-modern-dark .new-dialog-details { color: #94a3b8; }

body.theme-modern-dark .new-dialog-btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
}

body.theme-modern-dark .new-dialog-btn--secondary {
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.25);
}

body.theme-modern-dark .new-dialog-btn:focus-visible {
    outline-color: rgba(96, 165, 250, 0.5);
}

body.theme-modern-dark .new-dialog-info-row {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.07);
}

body.theme-modern-dark .new-dialog-info-icon { color: #60a5fa; }
body.theme-modern-dark .new-dialog-info-text { color: #cbd5e1; }
body.theme-modern-dark .new-dialog-info-text strong { color: #e2e8f0; }
body.theme-modern-dark .new-dialog-check-label { color: #94a3b8; }
body.theme-modern-dark .new-dialog-check-input { accent-color: #3b82f6; }

body.theme-modern-dark .master-request-countdown-row {
    background: rgba(217, 119, 6, 0.12);
    border-color: rgba(217, 119, 6, 0.25);
}

body.theme-modern-dark .master-request-countdown-label { color: #fbbf24; }

/* ── New-dialog: Red-alert mode ── */
body.theme-modern-red-alert .new-dialog-overlay {
    background:
        radial-gradient(circle at 15% 10%, rgba(255, 0, 0, 0.06), transparent 38%),
        radial-gradient(circle at 85% 90%, rgba(255, 0, 0, 0.1), transparent 42%),
        rgba(0, 0, 0, 0.75);
}

body.theme-modern-red-alert .new-dialog-panel {
    background: linear-gradient(165deg, rgba(18, 2, 2, 0.97) 0%, rgba(12, 0, 0, 0.95) 100%);
    border-color: rgba(255, 0, 0, 0.2);
    box-shadow: 0 32px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 0, 0, 0.08), inset 0 1px 0 rgba(255, 0, 0, 0.1);
    color: #ff6b6b;
}

body.theme-modern-red-alert .new-dialog-eyebrow { color: #cc0000; }
body.theme-modern-red-alert .new-dialog-title { color: #ff1a1a; }
body.theme-modern-red-alert .new-dialog-message { color: #ff6b6b; }
body.theme-modern-red-alert .new-dialog-details { color: #b33a3a; }

body.theme-modern-red-alert .new-dialog-btn--primary {
    background: linear-gradient(165deg, #cc0000 0%, #990000 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(255, 0, 0, 0.25);
}

body.theme-modern-red-alert .new-dialog-btn--secondary {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4d4d;
    border-color: rgba(255, 0, 0, 0.25);
}

body.theme-modern-red-alert .new-dialog-btn--danger {
    background: linear-gradient(160deg, #ff0000 0%, #cc0000 100%);
    box-shadow: 0 8px 18px rgba(255, 0, 0, 0.3);
}

body.theme-modern-red-alert .new-dialog-btn--ghost {
    background: rgba(255, 0, 0, 0.05);
    border-color: rgba(255, 0, 0, 0.18);
    color: #ff6b6b;
}

body.theme-modern-red-alert .new-dialog-btn:focus-visible {
    outline-color: rgba(255, 0, 0, 0.45);
}

body.theme-modern-red-alert .new-dialog-info-row {
    background: rgba(255, 0, 0, 0.06);
    border-color: rgba(255, 0, 0, 0.12);
}

body.theme-modern-red-alert .new-dialog-info-icon { color: #ff1a1a; }
body.theme-modern-red-alert .new-dialog-info-text { color: #ff6b6b; }
body.theme-modern-red-alert .new-dialog-info-text strong { color: #ff4d4d; }
body.theme-modern-red-alert .new-dialog-check-label { color: #b33a3a; }
body.theme-modern-red-alert .new-dialog-check-input { accent-color: #cc0000; }

body.theme-modern-red-alert .master-request-countdown-row {
    background: rgba(255, 80, 0, 0.1);
    border-color: rgba(255, 80, 0, 0.22);
}

body.theme-modern-red-alert .master-request-countdown-label { color: #ff6b3a; }

/* ── Settings Plan Change Modal ── */
.settings-plan-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.settings-plan-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-plan-row-label {
    color: #627084;
    font-size: 13px;
}

.settings-plan-row-value {
    font-weight: 600;
    color: #101828;
    font-size: 13px;
}

.settings-plan-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    margin-bottom: 16px;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1.5;
}

.settings-plan-consent input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
}

.settings-plan-consent span {
    color: #4b5563;
}

.settings-plan-error {
    padding: 10px 14px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: none;
}

.textPackContainer {
    /* setting the h and w was causing issues */
    /* height: 100%;
    width: 100%; */
    padding: 5px 15px 25px 15px;
    display: none;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 34px;
    box-sizing: border-box;

}

.textPackContainer.active {
    display: flex;

}


.textPack {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: auto;
    margin: 0px 0px 0px 0px;
    padding: 10px;
    text-align: center;
    border-radius: 0px;
    background: var(--color-surface-primary);

    /* box-shadow: 3px 3px 5px #e5e7eb,
        -3px -3px 5px #ffffff; */
}

.textPack .audio-button-outer {
    visibility: hidden;
}

.textPack:hover .audio-button-outer {
    visibility: visible;
}

.textPackRow {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    width: 100%;
    height: auto;
    margin: 0px;
    padding: 0px;
    text-align: center;
    border-radius: 0px;
    background: var(--color-surface-primary-transparent, #f8f8f800);
}

.textPackText {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-left: auto;
    font-size: 16px;
    margin: 0px 10px 0px 10px;
}

.projectPackContainer {
    flex: 1;
    min-height: 0;
    width: 100%;
    margin: 0;
    padding: 5px 15px 10px 15px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    direction: rtl;
    box-sizing: border-box;
    transition: all 0.4s;
}
.projectPackContainer > * {
    direction: ltr;
}
.projectPackContainer::-webkit-scrollbar {
    width: 5px; /* Adjust scrollbar width */

}

.projectPackContainer::-webkit-scrollbar-track {
    /* background: #f1f1f1; Adjust track color */
}

.projectPackContainer::-webkit-scrollbar-thumb {
    background: var(--scrollbar-track-color); /* Adjust thumb color */

}

.projectPackContainer:hover::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb-color); /* Adjust thumb color when hovering over .projectPackContainer */

}
.projectPackContainer::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover-color); /* Adjust thumb color when hovering */
}

.projectPack {
    outline: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: auto;
    margin: 5px 0px 0px 0px;
    padding: 5px;
    text-align: center;
    border-radius: 15px;
    transition: all 0.4s;
    border-width: var(--button-border-width);
    border-color: var(--button-border-color);
border-style: var(--button-border-style) ;
    /* border: 0.5px solid var(--color-border-soft); */
    cursor: pointer;


/* border inactive
border: 0.5px solid var(--color-border-soft); */
/* border for selected and on     border: 1.0px solid #0000004e; */




    /* box-shadow: 3px 3px 5px #e5e7eb,
        -3px -3px 5px #ffffff; */
}

/* add project "+"" button */
.projectPack_addProject {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: auto;
    margin: 0px 0px 0px 0px;
    padding: 5px;
    text-align: center;
    border-radius: 15px;


}

.projectPack:hover {
    /* margin-top: 10px;
    margin-bottom: 10px; */
    background: var(--color-surface-primary);
    box-shadow: none;

}

/* for when you click */
.projectPack:active {
    background: var(--color-surface-primary);
    box-shadow: none;

}

/* for it to appear selected */
.activeProject {
    margin: 15px 0px 10px 0px;
    background: var(--color-surface-primary);
    box-shadow: none;
    border: 1px solid var(--color-border-soft);

}


.projectPack .projectMoreButtonOuter {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s;
}

.projectPack .projectLockButtonOuter {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.projectPack:hover .projectMoreButtonOuter {
    opacity: 1;
    visibility: visible;
}

.projectPack:hover .projectLockButtonOuter {
    opacity: 1;
    visibility: visible;
}

.projectPack .projectLockButtonOuter.is-locked {
    visibility: visible;
    opacity: 1;
}

.projectPackRow {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    width: 100%;
    height: auto;
    margin: 0px;
    padding: 0px;
    text-align: center;
    border-radius: 0px;
    background: var(--color-surface-primary-transparent, #f8f8f800);

}

.projectPackText {
    outline: none;
    display: inline-block;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    font-size: 16px;
    margin: 0px 5px 0px 5px;
    text-align: left;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: pointer;
}

.projectSaveStatus {
    font-size: 10px;
    color: var(--color-text-muted, #888);
    text-align: left;
    width: 100%;
    padding: 2px 8px 2px 8px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.3px;
}

.projectSaveStatus--unsaved {
    color: #d32f2f;
}

.projectMoreButton {
    font-family: Inter;
    box-sizing: border-box;
    /* border: 0.5px solid var(--color-border-soft); */
    border-radius: 8px;
    font-size: 13px;
    background: var(--color-surface-primary);
    /* box-shadow: inset 1px 1px 3px #e5e7eb, inset -1px -1px 3px #ffffff; */
    box-shadow: inset 0px 0px 0px #e5e7eb, inset -0px -0px 0px #ffffff;
    margin: 1px;
    padding: 8px 13px 8px 13px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;

    width: 2vw;
    height: 2vw;
}

.projectLockButton {
    font-family: Inter;
    box-sizing: border-box;
    border-radius: 8px;
    font-size: 13px;
    background: var(--color-surface-primary);
    box-shadow: inset 0px 0px 0px #e5e7eb, inset -0px -0px 0px #ffffff;
    margin: 1px;
    padding: 8px 13px 8px 13px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    width: 2vw;
    height: 2vw;
}

.projectLockButton .material-symbols-outlined {
    font-size: 18px;
    color: var(--color-text-muted, #8892a0);
    transition: color 0.25s ease;
}

.projectMoreButtonOuter {
    box-sizing: border-box;
    margin: 3px;
    /* padding: 2px; */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    border-radius: 9px;
    background: var(--color-surface-primary);
    box-shadow: 0px 0px 0px #e5e7eb,
        0px 0px 0px #ffffff;
        border-width: var(--button-border-width);
        border-color: var(--button-border-color);
        border-style: var(--button-border-style);
    transition: all 0.4s;
}

.projectLockButtonOuter {
    box-sizing: border-box;
    margin: 3px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    border-radius: 9px;
    background: var(--color-surface-primary);
    box-shadow: 0px 0px 0px #e5e7eb,
        0px 0px 0px #ffffff;
    border-width: var(--button-border-width);
    border-color: var(--button-border-color);
    border-style: var(--button-border-style);
    transition: all 0.3s ease;
}

.projectLockButtonOuter.is-locked {
    border-color: rgba(220, 38, 38, 0.55);
    background: rgba(220, 38, 38, 0.08);
}

.projectLockButtonOuter.is-locked .projectLockButton .material-symbols-outlined {
    color: #dc2626;
    font-variation-settings: "FILL" 1;
}

.projectMoreButtonOuter:hover {
    /* outline: none; */
    box-shadow: none;

}

.projectMoreButtonOuter:active {
    /* outline: none; */
    box-shadow: none;
}

.projectLockButtonOuter:hover {
    box-shadow: none;
}

.projectLockButtonOuter:active {
    box-shadow: none;
}


.projectMoreMenu {
    width: 200px;
    height: auto;
    background: #878a8e00;
    border-radius: 15px;
    /* box-shadow: 5px 5px 8px rgba(213, 218, 223, 0.8),
        -5px -5px 8px #ffffff; */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.hidden {
    display: none;
    /* This will hide the element */
}

.moreMenuRow {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    width: 100%;
    height: auto;
    margin: 0px;
    padding: 0px;
    text-align: center;
    border-radius: 0px;
    background: var(--color-surface-primary-transparent, #f8f8f800);
}

.projectMoreMenuInfoContainer {
    /* Add styles for projectMoreMenuInfoContainer here */
}

.projectMoreMenuRename,
.projectMoreMenuDelete,
.projectMoreMenuLoad,
.projectMoreMenuSave {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 40%;
    height: 35px;
    margin: 5px;
    padding: 5px;
    border-width: var(--button-border-width);
   border-color: var(--button-border-color);
   border-style: var(--button-border-style);
    background: var(--color-surface-primary);
    color: var(--color-text-primary, inherit);
    font-size: small;
    border-radius: 9px;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.4s;


}

.projectMoreMenuRename:hover,
.projectMoreMenuLoad:hover,
.projectMoreMenuSave:hover {
    background: var(--color-surface-primary);
    box-shadow: var(--box-shadow-1);
}

.projectMoreMenuDelete:hover {
    background: var(--color-surface-primary);
    box-shadow: var(--box-shadow-1);
        /* inset 0 0 2px #ff0000; */
        /* Add your new shadow here */
}





.panelDivider {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    margin-right: auto;
    /* margin-right: auto;  justifies this element left inside the parent for some reason*/
    border: 1px solid #00000000;
    border-radius: 4px;
    height: 8px;
    width: 100%;
    margin-top: 5px;
    box-shadow: inset 1px 1px 3px #e5e7eb,
        inset -1px -1px 3px #ffffff;

}



h1 {
    font-size: 36px;
    margin-top: 0;
}

p {
    font-size: 24px;
}


#textarea-container {
    /* position: fixed; */
    /* Change from fixed to relative */
    /* bottom: 10px; */
}


textarea {
    font-family: Inter;
    background: var(--color-surface-primary);
    width: 100%;
    height: auto;
    padding: 10px;
    box-sizing: border-box;
    border: 2px solid #dbedff00;
    border-radius: 10px;
    font-size: 16px;
    resize: none;
    /* Disable manual resizing */
}

textarea:focus {
    outline: none;
    /* border: 0.5px solid var(--color-border-soft); */ 
    box-shadow: var(--box-shadow-inset-1);
    margin-right: 10px;

}

input {
    font-family: Inter;
    background: var(--color-surface-primary);
    width: 55%;
    box-sizing: border-box;
    border: 0px solid #dbedff00;
    margin: 10px;
    padding: 8px 13px 8px 13px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    border-radius: 9px;
    font-size: 13px;
    resize: none;
    /* Disable manual resizing */
    outline: none;
    box-shadow: var(--box-shadow-inset-1);
}

select {
    font-family: Inter;
    background: var(--color-surface-primary);
    min-width: 100px;
    box-sizing: border-box;
    border: none;
    margin: 1px 7px 1px 1px;
    padding: 8px 13px 8px 13px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    border-radius: 9px;
    font-size: 13px;
    resize: none;
    /* Disable manual resizing */
    outline: none;
    box-shadow: none;
}

.select-outer {
    box-sizing: border-box;
    border-width: var(--button-border-width);
   border-color: var(--button-border-color);
   border-style: var(--button-border-style);
    margin: 10px;
    /* padding: 2px; */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    border-radius: 9px;
    background: var(--color-surface-primary);
    box-shadow: var(--box-shadow-3);
    transition: all 0.4s;
}

#select-outer:hover {
    outline: none;
    box-shadow: var(--box-shadow-1);
}

.select-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.select-container label {
    margin-right: 10px;
}
.center-row-for-voice-and-time {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    height: auto;
    margin: 0px;
    padding: 0px;
    text-align: center;
    border-radius: 0px;
    /* background: #76bb06; */
}

.time-outer {
    /* width: 15vw; */
/* background: #ee530000; */
}

.time-inner {
    display: flex;
    justify-content: flex-start; /* Align items to the start and end */
    align-items: center;
    flex-direction: row;
    width: 10vw;
    padding: 0px 0px 0px 40px;
    /* background: rgba(0, 0, 238, 0.661); */
}

.current-date {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    padding: 0px 1px 0px 1px;
    margin: 0px 10px 0px 10px;
}

.current-time {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    margin: 0px 5px 0px 5px;
    padding: 0px 1px 0px 1px;
    width: 3.5vw;
    /* background: #ffffff9c; */
}




/* --------------------------------------------BUTTONS---------------------------------------------- */
.button-outer {
    box-sizing: border-box;
    border-width: var(--button-border-width);
   border-color: var(--button-border-color);
   border-style: var(--button-border-style);
    margin: 10px;
    /* padding: 2px; */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    border-radius: 9px;
    background: var(--color-surface-primary);
    box-shadow: var(--box-shadow-3);
    transition: all 0.3s ease;

}


.button-outer:hover {
    box-shadow:
      0 10px 18px -12px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.button-outer:active {
    outline: none;
    border-radius: 9px;
    background: var(--color-surface-primary);
    box-shadow:
      inset 0 1px 2px rgba(0, 0, 0, 0.3),
      0 1px 3px rgba(0, 0, 0, 0.22);
    transform: translateY(0);
    transition: none;
}

.button-outer:has(button:active) {
    outline: none;
    border-radius: 9px;
    background: var(--color-surface-primary);
    box-shadow:
      inset 0 1px 2px rgba(0, 0, 0, 0.3),
      0 1px 3px rgba(0, 0, 0, 0.22);
    transform: translateY(0);
    transition: none;
}

/* voice select button engaged state */
.engaged{
    /* outline: none; */
    box-shadow: var(--box-shadow-1);
    border-color: var(--color-accent-primary);
}

.button-outer-chatArea {
    box-sizing: border-box;
    border-width: var(--button-border-width);
   border-color: var(--button-border-color);
   border-style: var(--button-border-style);
    margin: 10px 10px 0px 10px;
    /* padding: 2px; */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    border-radius: 9px;
    background: var(--color-surface-primary);
    box-shadow: var(--box-shadow-3);
    transition: all 0.3s ease;

}

.button-outer-chatArea:hover {
    box-shadow:
      0 10px 18px -12px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.button-outer-chatArea:active {
    outline: none;
    border-radius: 9px;
    background: var(--color-surface-primary);
    box-shadow:
      inset 0 1px 2px rgba(0, 0, 0, 0.3),
      0 1px 3px rgba(0, 0, 0, 0.22);
    transform: translateY(0);
    transition: none;
}

.button-outer-chatArea:has(button:active) {
    outline: none;
    border-radius: 9px;
    background: var(--color-surface-primary);
    box-shadow:
      inset 0 1px 2px rgba(0, 0, 0, 0.3),
      0 1px 3px rgba(0, 0, 0, 0.22);
    transform: translateY(0);
    transition: none;
}


.chatAreaButtons{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0px;
    padding: 0px;
    text-align: center;
    border-radius: 0px;
    /* background: #76bb06; */

}


#retrieveButton {
    padding-left: 20px;
    padding-right: 20px;
}

#updateButton {
    padding-left: 20px;
    padding-right: 20px;
}

#logoutButtonContainer {
    position: fixed;
    top: 7px;
    right: 20px;
    cursor: pointer;
}


.speakButton, 
.captureButton {
    width: 2vw;
    height: 2vw;
}

.downloadButton {
    width: 2vw;
    height: 2vw;
}

.trashButton {
    width: 2vw;
    height: 2vw;
}

.trashButton:hover {
    border: solid 0.5px;
    border-color: #ff0000;
}

.textPackButtons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-left: auto;
}

.projectPackButtons {
    flex-direction: row;
    gap: 6px;
}

.textPackCopyButton {
    width: 2vw;
    height: 2vw;
}

.textPackTrashButton {
    width: 2vw;
    height: 2vw;
}

.textPackSaveButton {
    width: 2vw;
    height: 2vw;
}

.projectAddButton-outer {
    box-sizing: border-box;
    margin: 10px;
    /* padding: 2px; */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    border-radius: 9px;
    background: var(--color-surface-primary);
    box-shadow: var(--box-shadow-3);
        border-width: var(--button-border-width);
        border-color: var(--button-border-color);
        border-style: var(--button-border-style);
    transition: all 0.4s;
}

.projectAddButton-outer:hover {
    outline: none;
    box-shadow: var(--box-shadow-1);

}

.projectAddButton {
    width: 2vw;
    height: 2vw;
}


#charCount {
    width: 25%;
    font-size: small;
    font-weight: 200;
    margin-bottom: 0px;
    position: relative;
    text-align: right;
    /* Add this line */
}

#costToGenerate {
    width: 25%;
    font-size: small;
    font-weight: 200;
    margin-bottom: 0px;
    position: relative;
    text-align: center;
    /* Add this line */
}

#accountBalance {
    width: 25%;
    font-size: small;
    font-weight: 200;
    margin-bottom: 0px;
    position: relative;
    text-align: left;
    /* Add this line */
}



/* ----------------------------------audio player---------------------------------- */
audio {
    font-family: Inter;
    box-sizing: border-box;
    border: 0px solid #dbedff00;
    border-radius: 8px;
    font-size: 13px;
    background: var(--color-surface-primary);
    color: #f8f8f8;
    box-shadow: var(--box-shadow-inset-1);
    margin: 1px;
    padding: 8px 13px 8px 13px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.audio-player-outer {
    box-sizing: border-box;
    border-width: var(--button-border-width);
   border-color: var(--button-border-color);
   border-style: var(--button-border-style);
    width: 100%;
    margin: 10px;
    padding: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    border-radius: 18px;
    background: var(--color-surface-primary);
    box-shadow: var(--box-shadow-3);
}

.audio-player-inner {
    font-family: Inter;
    box-sizing: border-box;
    border-radius: 15px;
    font-size: 13px;
    background: var(--color-surface-primary);
    color: #f8f8f8;
    /* box-shadow: inset 3px 3px 5px #e5e7eb, inset -3px -3px 5px #ffffff; */
    padding: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: auto;
    width: auto;
}

.audio-description {
    border: solid 0px;
    border-radius: 2px;
    color: var(--color-text-primary);
    font-size: 12px;
    margin: 2px 5px 2px 5px;
    width: 16vw;
    margin-bottom: 20px;
}

.audio-controls-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    width: 100%;
    /* flex-wrap: wrap; */
}

.audio-player-row{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: auto;
    margin: 0px;
    /* background: #76bb06; */
    color: var(--color-text-primary);
}

/* ------------------------------------------Autoplay Section -------------------------------------------- */

.audio-player-more-button{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* min-width: 34px;
    min-height: 13px; */
    margin: 0px;
    padding: 0px 3px;
    border-radius: 9px;
    /* box-sizing: border-box; */
    box-shadow: var(--box-shadow-3);
    border: 1px solid var(--color-border-soft);
    color: var(--color-text-primary);
    transition: all 0.4s ease;
}

.audio-player-more-button:hover{
    box-shadow: var(--box-shadow-1);
    color: var(--color-text-primary);
    cursor: pointer;
}
/* this is the span that is inside the button */
.audio-player-more:hover{
    /* background: #4591ec; */
}
.audioPlayerRow1{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: auto;
    margin: 10px;
    padding: 10px;
    /* background: #76bb06; */
    color: var(--color-text-primary);
    box-sizing: border-box;
    border: 1px solid var(--color-border-soft);
    border-radius: 13px;
box-shadow: var(--box-shadow-2);
}
.audioPlayerRow1.hidden {
    display: none;
 
}



/* autoplay active for the border of the audiopack- pulses red  */
.autoplayActive {
    border:1px solid;  /* Set just the border width and style */
    /* animation: pulseRed2 1s ease infinite ; */
    border-color: #ff0000;
}

    @keyframes pulseRed2 {
        0% {
            border-color: rgba(255, 0, 0, 1);
        }
        25% {
            border-color: rgb(255, 0, 0);
        }
        50% {
            border-color: rgba(227, 0, 0, 0.791);
        }
        75% {
            border-color: rgb(255, 0, 0);
        }
        100% {
            border-color: rgba(255, 0, 0, 1);
        }
    }

/* autoplay Enabled warning for above the audiopacks container - warns that there is an autoplay on somehwhere - pulses red  */

#autoplayWarningContainer{
    display: none;
    justify-content: center;
    align-items: center;

    flex-direction: row;
    width: 100%;
    padding: 15px;
    /* border: 1px solid #0000004e; */
}
#autoplayWarningContainer.active{
    display:flex;
}
#autoplayPrev, #autoplayNext{
    display: flex;
    padding: 3px;
    margin: 10px 20px 10px 20px;
    width: 30px;
    height: 30px;
    border-radius: 15px;
    box-sizing: border-box;
    border: 1px solid var(--color-border-soft);
    justify-self: center;
    align-self: center;
    justify-content: center;
    align-items: center;
    font-size: 21px;
    box-shadow: var(--box-shadow-3);
    color: var(--color-text-primary);
    transition: all 0.4s ease;

}

#autoplayPrev:hover, #autoplayNext:hover{
    box-shadow: var(--box-shadow-1);
    cursor: pointer;
    color: var(--color-text-primary);
    background: var(--color-surface-primary);
    transition: all 0.4s ease;
}
#autoplayPrev:active, #autoplayNext:active{
    box-shadow: var(--box-shadow-3);
    cursor: pointer;
    color: var(--color-text-primary);
    background: var(--color-surface-primary);
    transition: all 0.4s ease;
}



	    #autoplayWarning{
	        display: flex;
	        justify-content: center;
	        align-items: center;
        flex-direction: column;
        /* margin: 3px 0px 13px 0px; */
        box-sizing: border-box;
        padding: 8px 13px;
        /* animation: pulseRed 2s  infinite ; */
        color:#ff0000;
        border: 1px solid #ff0000;
        border-radius: var(--button-border-radius);
        /* font-weight: 400; */
        box-shadow: var(--box-shadow-2);
        /* background-color: var(--color-surface-contrast); */
	        font-size: 15px;


	    }

#autoplayWarningLabel {
    display: block;
    line-height: 1.1;
}

#autoplayNextCountdown {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.1;
    letter-spacing: 0.03em;
    opacity: 0.9;
}

    @keyframes pulseRed {
        0% {
          color: #8e00003b;
        }
    
        50% {
          color: #ff0000;
        }
        100% {
            color: #8e00003b;
        }
      }


    



.setAutoplayRow{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction:row;
    flex-wrap: wrap;
    width: 100%;
    height: auto;
    margin: 0px;
    padding: 0px;
    text-align: center;
    border-radius: 0px;
    /* background: #76bb06; */

}

.setAutoplayLabel {
    display: flex;
    color: var(--color-text-primary);
    margin: 0px 10px 0px 10px;
    font-size: large;
    align-items: center;
    justify-content: center;
  }
  
  .setPlayDateInput {
    font-family: Inter;
    background: var(--color-surface-primary);
    width: auto;
    box-sizing: border-box;
    border: 0.5px solid var(--color-border-soft);
    /* margin: 10px; */
    padding: 4px 4px 4px 4px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    border-radius: 9px;
    font-size: 13px;
    resize: none;
    /* Disable manual resizing */
    outline: none;
    /* box-shadow: inset 1px 1px 3px #e5e7eb,
        inset -1px -1px 3px #ffffff; */

  }
  
  .setPlayTimeInput {
    font-family: Inter;
    background: var(--color-surface-primary);
    width: 5vw;
    box-sizing: border-box;
    border: 0.5px solid var(--color-border-soft);
    /* margin: 10px; */
    padding: 4px 4px 4px 4px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    border-radius: 9px;
    font-size: 13px;
    resize: none;
    /* Disable manual resizing */
    outline: none;
    /* box-shadow: inset 1px 1px 3px #e5e7eb,
        inset -1px -1px 3px #ffffff; */

  }
  
  .autoplay-countdown-row{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: auto;
    margin: 0px;
    padding: 0px;
    text-align: center;
    border-radius: 0px;
    /* background: #76bb06; */

}
  .timeUntilAutoplayLabel {
    /* Add your styles here */
    display: flex;
    color: var(--color-text-primary);
    margin: 0px 10px 0px 10px;
    font-size: 15px;
    align-items: center;
    justify-content: center;

  }
  
  .time-until-autoplay-display {
    /* Add your styles here */
    display: flex;
    margin: 8px 13px 8px 13px;
    padding: 8px 13px;
width: 100px;
    font-size: large;
    align-items: center;
    justify-content: center;
    /* animation: pulseRed 2s  infinite ; */
    color:#ff0000;
    border: 0.5px solid #ff0000;
    border-radius: 13px;
    /* font-weight: 400; */
    box-shadow: var(--box-shadow-2) ;
    /* background-color: var(--color-surface-contrast); */
    font-size: 21px;

  }
  
  .cancel-autoplay-button {
    outline: none;

    box-sizing: border-box;
    margin: 13px;
    font-size: 15px;
    /* padding: 2px; */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    border-radius: 9px;
    background: var(--color-surface-primary);
    box-shadow: var(--box-shadow-3);
        border-width: var(--button-border-width);
        border-color: var(--button-border-color);
        border-style: var(--button-border-style);
         transition: all 0.4s;
  }
  .cancel-autoplay-button:hover {
    /* outline: none; */
    box-shadow: var(--box-shadow-1);
  
  }

  .timed-repeat-section {
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .timed-repeat-label-row {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .timed-repeat-label {
    color: var(--color-text-primary);
    font-size: 15px;
  }

  .timed-repeat-input-row {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .timed-repeat-input {
    width: 130px;
    border: 0.5px solid var(--color-border-soft);
    border-radius: 9px;
    padding: 6px 8px;
    text-align: center;
    font-size: 15px;
    font-family: Inter;
    background: var(--color-surface-primary);
    color: var(--color-text-primary);
    box-sizing: border-box;
  }

  .timed-repeat-toggle-row {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--color-text-primary);
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    transition: filter 0.2s ease;
  }

  .timed-repeat-toggle-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .timed-repeat-toggle-icon {
    font-size: 34px;
    line-height: 1;
    color: var(--repeat-toggle-off);
    transition: color 0.2s ease, text-shadow 0.2s ease;
  }

  .timed-repeat-toggle-row.is-on .timed-repeat-toggle-icon {
    color: var(--repeat-toggle-on);
    text-shadow: 0 0 9px var(--repeat-toggle-glow), 0 0 16px var(--repeat-toggle-glow);
  }

  .timed-repeat-hint {
    margin: 0;
    font-size: 12px;
    color: var(--color-text-secondary);
    text-align: center;
  }

  .timed-repeat-section.is-locked .timed-repeat-input {
    opacity: 0.65;
  }




.audio-button-outer {
    outline: none;

    box-sizing: border-box;
    margin: 3px;
    /* padding: 2px; */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    border-radius: 9px;
    background: var(--color-surface-primary);
    box-shadow: var(--box-shadow-3);
        border-width: var(--button-border-width);
        border-color: var(--button-border-color);
        border-style: var(--button-border-style);
    transition: all 0.3s ease;
}

.audio-button-outer:hover {
    outline: none;
    box-shadow:
      0 10px 18px -12px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);

}

.audio-button-outer:active {
    outline: none;
    border-radius: 9px;
    background: var(--color-surface-primary);
        border-width: var(--button-border-width);
        border-color: var(--button-border-color);
        border-style: var(--button-border-style);
    box-shadow:
      inset 0 1px 2px rgba(0, 0, 0, 0.3),
      0 1px 3px rgba(0, 0, 0, 0.22);
    transform: translateY(0);
    transition: none;


}

.audio-button-outer:has(button:active) {
    outline: none;
    border-radius: 9px;
    background: var(--color-surface-primary);
    border-width: var(--button-border-width);
    border-color: var(--button-border-color);
    border-style: var(--button-border-style);
    box-shadow:
      inset 0 1px 2px rgba(0, 0, 0, 0.3),
      0 1px 3px rgba(0, 0, 0, 0.22);
    transform: translateY(0);
    transition: none;
}

.audio-button-outer.playing {
    outline: none;
    box-shadow: var(--box-shadow-1);
    border-color: #00dd00;

}

.audio-button-outer.paused {
    outline: none;
    box-shadow: var(--box-shadow-1);
    border-color: #ff6a00;

}

.audio-button-outer.stopped {
    outline: none;
    box-shadow: var(--box-shadow-1);
    border-color: #ff0000;

}

.audio-button-outer:has(.audioButtonStop:active) {
    outline: none;
    box-shadow: var(--box-shadow-1);
    border-color: #ff0000;

}


.audioButtonPlay {
    border-radius: 8px;
    width: 2vw;
    height: 2vw;
    color: var(--color-text-primary);
    font-size: 24px;
}

.material-symbols-outlined {
    font-size: 1.45vw;

  font-variation-settings:
  'FILL' 0,
  'wght' 100,
  'GRAD' 0,
  'opsz' 24


}

/* add this class to the icon in the play button to make it pulse when playing */
.material-symbols-outlined.playing {
    color: #00dd00;
}

.material-symbols-outlined.paused {
    color: #ff6a00;
    animation: pulse 1s infinite;
}


.audioButtonStop {
    border-radius: 8px;
    width: 2vw;
    height: 2vw;
    color: var(--color-text-primary);
    font-size: 24px;
}

.audioButtonStop:active .material-symbols-outlined {
    color: #ff0000;
}



.downloadButton {
    border-radius: 8px;
    width: 2vw;
    height: 2vw;
    color: var(--color-text-primary);
    font-size: 24px;
}

.trashButton {
    border-radius: 8px;
    width: 2vw;
    height: 2vw;
    color: var(--color-text-primary);
    font-size: 24px;
}

.time-remaining {
    color: var(--color-text-primary);
    /* Light Blue */
    margin: 0px 10px 0px 10px;
    width: 100px;
    font-size: large;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-remaining.remote-status-delayed {
    color: #b45309;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.time-remaining.generating {
    color: rgb(0, 161, 0);
    width: 100px;
    font-size: small;

    /* Make the text green */
    /* font-weight: bold; */
    /* Make the text bold */
    animation: pulse 1s infinite;
    /* Make the text pulse */
}

.time-remaining.error {
    color: rgb(209, 0, 0);
    width: 100px;
    font-size: small;

    /* Make the text green */
    /* font-weight: bold; */
    /* Make the text bold */
    /* animation: pulse 1s infinite; */
    /* Make the text pulse */
}

                                  


@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* spinner for while generating */
.material-symbols-outlined.spin {
    display: inline-block;
    animation: spin 2s linear infinite;
}

.material-symbols-outlined.generating {
    color: rgb(210, 0, 0);
    animation: pulse 1s infinite;
}

/* Styling the scroll bars */
::-webkit-scrollbar {
    width: 6px;

}

::-webkit-scrollbar-track {
    background-color: var(--scrollbar-track-color);
}

::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-thumb-hover-color);


}

.randomTesting{
    background: #000000;
}



  /* voice select dialog for elevenlabs voices */



  #voiceSelectDialog {

    /* position: fixed; */
    /* width: 59vw;
    height: 50vh; */
    width: 100%;
    height: 100%;
    top: calc(50vh - 39vh );  /* 50% from the top of the viewport */
    left: calc(50vw - 30.7vw);
    background-color: var(--color-surface-primary);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    border: none;
    border-radius: 5px;
    padding: 0px 5px 10px 5px;
    font-size: 14px;
    overflow: hidden;  
    box-sizing: border-box;       
}


  
  #voiceSelectDialog.active {
    display: flex;
  }

  .voice-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--color-border-soft);
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
  }
  #voiceSelectDialogMenu{
    display: flex;

    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 50px;
    padding: 5px;
    border-bottom: 1px solid var(--color-border-soft);
    box-sizing: border-box;
    /* background-color: rgb(0, 195, 255); */
  }

  #voiceSelectDialogVoices{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
    overflow-y: auto;
    box-sizing: border-box;

  }

  /* The play button container */
  .playPreviewVoice {
    cursor: pointer;

    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .playPreviewVoice span{
    font-size: 30px; /* Adjust icon size as needed */

  }

.voice-row.playing span {
  color: #00dd00;
}

  /* Container for the voice information */
  .voice-info {
    display: flex;
    flex-direction: column;
  }

  /* Styling for the voice name */
  .voice-name {
    font-weight: bold;
  }

  .individualSelectButton{
    cursor: pointer;
    padding: 5px;
    border-radius: 8px;
    border: 1px solid var(--color-border-soft);
    font-size: 10px;
    margin-bottom: 0.25rem;
    margin: 5px 10px 5px 8px;
  }

  .individualSelectButton:hover{
    box-shadow: var(--box-shadow-2);

  }

  .voice-row.voice-locked {
    opacity: 0.5;
  }
  .voice-row.voice-locked .individualSelectButton {
    cursor: not-allowed;
    border-color: var(--color-border-strong);
  }
  .voice-tier-badge {
    font-size: 10px;
    font-weight: normal;
    background: #f59e0b;
    color: #000;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
  }
  .voice-fav-btn {
    cursor: pointer;
    margin: 0 6px;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
  }
  .voice-fav-btn:hover { color: #f59e0b; }
  .voice-fav-btn.favourited { color: #f59e0b; }
  .voice-fav-btn span { font-size: 20px; }

  .individualSelectButton.active{
    font-weight: bold;
    background-color: var(--color-surface-contrast);
    box-shadow: var(--box-shadow-2);
  }

  /* Styling for the voice description */
  .voice-description {
    color: var(--color-text-muted);
    font-size: 14px;
    text-align: left;
    padding-left: 40px;
  }


  /* ------------------- Search Bar --------------------- */
  /* #region */
  .searchBarOuter {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 30px;
    /* padding: 5px; */
    border-radius: 30px;
    border: 1px solid var(--color-border-soft);
    margin: 10px;
    box-shadow: var(--box-shadow-3);
background-color: var(--background-main);
  }

  .searchBarOuter:has(.searchBar:focus){
    box-shadow: var(--box-shadow-2);
  }

  #searchBarButton {
    cursor: pointer;
    padding: 10px 10px 10px 0px;

    cursor: pointer;
    font-size: 23px;
    font-weight: 200;
  }

  #searchBarButton:hover {
    font-weight: 800;    
  }

  .searchBar {
    width: 100%;
    height: 30px;
    padding: 5px;
    border-radius: 30px;
    border: none;
    margin-bottom: 10px;
    margin: 5px 0px 5px 10px;
    background-color: #00000000;
    box-shadow: none; 
}
  

  .searchBar:focus {
    outline: none;
    border-color: #00000000;

  }




  /* #endregion */

    /* Tooltip or Popover  */

.custom-tooltip {
        position: absolute;
        background-color: #333;
        color: #fff;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.2s;
        z-index: 9999;
      }


/* ================= Admin Page ================= */
body.admin-body {
  display: block;
  height: auto;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  align-items: stretch;
  justify-content: flex-start;
  margin: 0;
  min-height: 100vh;
  background: var(--color-app-background);
  color: var(--color-text-primary);
  font-family: "Inter", sans-serif;
}

.admin-page-container {
  min-height: 100vh;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-page-header {
  border: 1px solid var(--color-border-soft);
  border-radius: 16px;
  background: var(--color-surface-primary);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-page-header-title h1 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
}

.admin-page-header-title p {
  margin: 6px 0 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-dashboard {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-panel {
  border: 1px solid var(--color-border-soft);
  border-radius: 16px;
  background: var(--color-surface-primary);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-section-title h2 {
  margin: 0;
  font-size: 1.1rem;
}

.admin-section-title p {
  margin: 4px 0 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.admin-section-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-button {
  height: 38px;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0 14px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.admin-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.admin-button-primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.admin-button-primary:hover:not(:disabled) {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.admin-button-secondary {
  background: var(--color-surface-secondary);
  border-color: var(--color-border-soft);
  color: var(--color-text-primary);
}

.admin-button-secondary:hover:not(:disabled) {
  border-color: var(--color-border-strong);
  background: var(--color-surface-tertiary);
}

.admin-button-danger {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

.admin-button-danger:hover:not(:disabled) {
  background: #b91c1c;
  border-color: #b91c1c;
}

.admin-button-ghost {
  background: transparent;
  border-color: var(--color-border-soft);
  color: var(--color-text-primary);
}

.admin-button-ghost:hover:not(:disabled) {
  border-color: var(--color-border-strong);
  background: var(--color-surface-secondary);
}

.admin-row-action {
  min-width: 92px;
}

.admin-status-message {
  border: 1px solid var(--color-border-soft);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.875rem;
  background: var(--color-surface-secondary);
}

.admin-status-message.is-error {
  border-color: rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.07);
  color: #991b1b;
}

.admin-status-message.is-hidden {
  display: none;
}

.admin-users-table-wrapper,
.admin-registration-log-wrapper,
.admin-activity-table-wrapper {
  border: 1px solid var(--color-border-soft);
  border-radius: 12px;
  overflow: auto;
  background: var(--color-surface-primary);
}

.admin-users-table,
.admin-registration-log-table,
.admin-activity-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  color: var(--color-text-primary);
}

.admin-users-table {
  min-width: 1280px;
}

.admin-registration-log-table {
  min-width: 640px;
}

.admin-activity-table {
  min-width: 900px;
}

.admin-users-table thead th,
.admin-registration-log-table thead th,
.admin-activity-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  background: var(--color-surface-secondary);
  border-bottom: 1px solid var(--color-border-soft);
  padding: 10px 12px;
}

.admin-users-table td,
.admin-registration-log-table td,
.admin-activity-table td {
  border-bottom: 1px solid var(--color-border-soft);
  padding: 10px 12px;
  vertical-align: top;
}

.admin-users-table tbody tr:hover,
.admin-registration-log-table tbody tr:hover,
.admin-activity-table tbody tr:hover {
  background: var(--color-surface-secondary);
}

.admin-table-empty {
  text-align: center;
  color: var(--color-text-muted);
  padding: 20px;
}

.admin-row-privileged {
  background: rgba(37, 99, 235, 0.04);
}

.admin-row-orphaned {
  opacity: 0.86;
}

.admin-user-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.admin-user-name {
  font-weight: 600;
}

.admin-role-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--color-border-soft);
  background: var(--color-surface-secondary);
  color: var(--color-text-muted);
}

.admin-subscription-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-subscription-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-subscription-status--active {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.admin-subscription-status--cancelled,
.admin-subscription-status--inactive {
  background: rgba(220, 38, 38, 0.14);
  color: #b91c1c;
}

.admin-subscription-status--past_due,
.admin-subscription-status--incomplete {
  background: rgba(245, 158, 11, 0.2);
  color: #92400e;
}

.admin-billing-text {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* Plan cell card & tier picker */
.admin-plan-cell {
  position: relative;
}

.admin-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 10px;
  border: 1px solid var(--color-border-soft);
  background: var(--color-surface-secondary);
  color: var(--color-text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  user-select: none;
  white-space: nowrap;
}

.admin-plan-badge:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-tertiary);
}

.admin-plan-badge::after {
  content: "\25BE";
  font-size: 0.7rem;
  opacity: 0.5;
}

.admin-tier-picker {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  min-width: 160px;
  margin-top: 4px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--color-border-soft);
  background: var(--color-surface-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.admin-tier-picker-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--color-text-primary);
  transition: background 0.12s ease;
}

.admin-tier-picker-item:hover {
  background: var(--color-surface-secondary);
}

.admin-tier-picker-item.is-current {
  font-weight: 700;
  background: var(--color-surface-tertiary);
}

.admin-user-actions-cell {
  width: 1%;
  white-space: nowrap;
}

.admin-inline-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.admin-summary-card {
  border: 1px solid var(--color-border-soft);
  border-radius: 12px;
  background: var(--color-surface-secondary);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-summary-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.admin-summary-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.admin-elevenlabs-card {
  border: 1px solid var(--color-border-soft);
  border-radius: 12px;
  background: var(--color-surface-secondary);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-elevenlabs-card h2 {
  margin: 0;
  font-size: 1rem;
}

.admin-elevenlabs-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.84rem;
}

.admin-elevenlabs-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-elevenlabs-stat {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--color-border-soft);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--color-surface-primary);
}

.admin-elevenlabs-stat-label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.admin-elevenlabs-stat-value {
  font-size: 0.84rem;
  font-weight: 600;
}

.admin-activity-user {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-activity-user strong {
  font-size: 0.82rem;
}

.admin-activity-user span {
  font-size: 0.76rem;
  color: var(--color-text-muted);
}

.admin-activity-details {
  min-width: 280px;
}

.admin-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.admin-pagination-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  min-width: 96px;
  text-align: center;
}

.admin-pricing-grid,
.admin-room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.admin-pricing-card,
.admin-room-card {
  border: 1px solid var(--color-border-soft);
  border-radius: 12px;
  background: var(--color-surface-secondary);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-pricing-card h3 {
  margin: 0;
  font-size: 1rem;
}

.admin-pricing-card label,
.admin-room-card label,
.admin-modal-field label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.admin-pricing-card input,
.admin-room-input,
.admin-modal-field input,
.admin-modal-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--color-border-soft);
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 0.87rem;
  font-family: inherit;
  color: var(--color-text-primary);
  background: var(--color-surface-primary);
}

.admin-pricing-card input:focus,
.admin-room-input:focus,
.admin-modal-field input:focus,
.admin-modal-field textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.admin-features-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--color-border-soft);
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 0.87rem;
  font-family: inherit;
  color: var(--color-text-primary);
  background: var(--color-surface-primary);
  resize: vertical;
  min-height: 80px;
}

.admin-features-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.admin-room-note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.admin-registration-empty {
  padding: 16px;
  text-align: center;
  color: var(--color-text-muted);
}

.is-hidden {
  display: none !important;
}

.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(2px);
  z-index: 1000;
}

.admin-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 24px));
  border: 1px solid var(--color-border-soft);
  border-radius: 14px;
  background: var(--color-surface-primary);
  z-index: 1001;
  display: flex;
  flex-direction: column;
}

.admin-modal.is-hidden,
.admin-modal-backdrop.is-hidden {
  display: none;
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px 10px;
}

.admin-modal-header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.admin-modal-close {
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}

.admin-modal-close:hover,
.admin-modal-close:focus {
  outline: none;
  border-color: var(--color-border-soft);
  background: var(--color-surface-secondary);
}

.admin-modal-body {
  padding: 0 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-modal-field textarea {
  min-height: 110px;
  resize: vertical;
}

.admin-modal-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.admin-modal-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--color-text-primary);
}

.admin-modal-checkbox input {
  width: 15px;
  height: 15px;
}

.admin-modal-warning {
  margin: 0;
  font-size: 0.84rem;
  color: #991b1b;
}

.admin-modal-error {
  color: #b91c1c;
  font-size: 0.8rem;
}

.admin-modal-error:empty {
  display: none;
}

.admin-modal-footer {
  padding: 10px 16px 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 960px) {
  .admin-page-container {
    padding: 14px;
  }

  .admin-page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-header-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .admin-users-table,
  .admin-registration-log-table,
  .admin-activity-table {
    min-width: 100%;
  }

  .admin-inline-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .admin-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-modal-footer .admin-button {
    width: 100%;
  }
}
/* ======== xAI Expressive Voice Styles ======== */

/* --- Toolbar --- */
.xai-toolbar {
  display: flex;
  gap: 8px;
  padding: 6px 8px;
  align-items: center;
  flex-wrap: wrap;
}
.xai-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--color-border-soft);
  background: var(--color-surface-primary);
  color: var(--color-text-primary);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.xai-toolbar-btn:hover {
  background: var(--color-surface-contrast);
  box-shadow: var(--box-shadow-2);
}
.xai-toolbar-btn .material-symbols-outlined {
  font-size: 16px;
}

/* --- Contenteditable rich text area --- */
.xai-rich-textarea {
  width: 100%;
  min-height: 86px;
  max-height: 300px;
  padding: 0;
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  border: none;
  border-radius: 0;
  overflow-y: auto;
  outline: none;
  box-sizing: border-box;
  background: transparent;
  color: var(--color-text-primary);
  white-space: pre-wrap;
  word-wrap: break-word;
  text-align: left;
}
.xai-rich-textarea:empty::before {
  content: attr(data-placeholder);
  color: var(--color-text-muted);
  pointer-events: none;
}
.xai-rich-textarea:focus {
  outline: none;
}

/* --- Inline tag pills --- */
.xai-tag-inline {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  vertical-align: baseline;
  cursor: default;
  user-select: none;
  margin: 0 2px;
  line-height: 1.6;
}
.xai-tag-inline .xai-tag-remove {
  cursor: pointer;
  font-size: 12px;
  margin-left: 2px;
  opacity: 0.6;
}
.xai-tag-inline .xai-tag-remove:hover {
  opacity: 1;
}

/* Inline tag category colors */
.xai-tag-inline[data-category="pauses"]   { background: #e0e0e0; color: #555; }
.xai-tag-inline[data-category="emotion"]  { background: #fff3cd; color: #856404; }
.xai-tag-inline[data-category="mouth"]    { background: #d1ecf1; color: #0c5460; }
.xai-tag-inline[data-category="breathing"]{ background: #e2e3f1; color: #383d6e; }

/* --- Wrapping tag regions --- */
.xai-tag-wrapper {
  display: inline;
  position: relative;
  border: 1.5px solid #888;
  border-radius: 4px;
  padding: 1px 4px 1px 2px;
  margin: 0 1px;
}
.xai-tag-wrapper .xai-tag-label {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 700;
  padding: 0 5px;
  border-radius: 3px;
  margin-right: 3px;
  vertical-align: baseline;
  user-select: none;
  cursor: default;
}
.xai-tag-wrapper .xai-tag-label .xai-tag-remove {
  cursor: pointer;
  font-size: 11px;
  opacity: 0.6;
}
.xai-tag-wrapper .xai-tag-label .xai-tag-remove:hover {
  opacity: 1;
}

/* Wrapping tag category colors */
.xai-tag-wrapper[data-category="volume"]  { border-color: #4a90d9; }
.xai-tag-wrapper[data-category="volume"] .xai-tag-label  { background: #dbe8f8; color: #2a5d9f; }
.xai-tag-wrapper[data-category="pitch"]   { border-color: #8b5cf6; }
.xai-tag-wrapper[data-category="pitch"] .xai-tag-label   { background: #ede9fe; color: #6d28d9; }
.xai-tag-wrapper[data-category="vocal"]   { border-color: #10b981; }
.xai-tag-wrapper[data-category="vocal"] .xai-tag-label   { background: #d1fae5; color: #065f46; }

/* --- Tag picker dialogs --- */
.xai-tag-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.xai-tag-dialog {
  background: var(--color-surface-primary);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  max-width: 520px;
  width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  padding: 24px;
}
.xai-tag-dialog h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
}
.xai-tag-dialog-close {
  float: right;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--color-text-primary);
  padding: 0;
  line-height: 1;
}
.xai-tag-dialog h4 {
  margin: 14px 0 8px 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
}
.xai-tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.xai-tag-pick {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--color-border-soft);
  background: var(--color-surface-primary);
  color: var(--color-text-primary);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.12s;
}
.xai-tag-pick:hover {
  background: var(--color-surface-contrast);
  box-shadow: var(--box-shadow-2);
}
.xai-tag-pick.is-selected {
  background: var(--color-surface-contrast);
  box-shadow: inset 0 0 0 1px #2c71f0;
  font-weight: 600;
}

/* Category-colored pick buttons */
.xai-tag-pick[data-category="pauses"]   { border-color: #aaa; }
.xai-tag-pick[data-category="emotion"]  { border-color: #f59e0b; }
.xai-tag-pick[data-category="mouth"]    { border-color: #17a2b8; }
.xai-tag-pick[data-category="breathing"]{ border-color: #6c63ac; }
.xai-tag-pick[data-category="volume"]   { border-color: #4a90d9; }
.xai-tag-pick[data-category="pitch"]    { border-color: #8b5cf6; }
.xai-tag-pick[data-category="vocal"]    { border-color: #10b981; }

/* --- Expressive info card --- */
.xai-info-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #8b5cf6;
  background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 100%);
  color: #4c1d95;
}
.xai-info-card .material-symbols-outlined {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.xai-info-card-body {
  flex: 1;
}
.xai-info-card-body strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}
.xai-info-card-body p {
  margin: 0 0 8px 0;
  font-size: 12px;
  line-height: 1.4;
}
.xai-info-card-disclaimer {
  opacity: 0.8;
  font-style: italic;
}
.xai-info-card-disclaimer .beta-tag {
  font-style: normal;
}
.xai-info-card-btn {
  padding: 4px 14px;
  border-radius: 6px;
  border: 1px solid #8b5cf6;
  background: #fff;
  color: #6d28d9;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s;
}
.xai-info-card-btn:hover {
  background: #ede9fe;
}

/* --- Instructions dialog --- */
.xai-instructions-dialog {
  max-width: 640px;
}
.xai-instructions-dialog table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
  font-size: 12px;
}
.xai-instructions-dialog th,
.xai-instructions-dialog td {
  text-align: left;
  padding: 6px 10px;
  border-bottom: 1px solid var(--color-border-soft);
}
.xai-instructions-dialog th {
  font-weight: 700;
  color: var(--color-text-muted);
  font-size: 11px;
  text-transform: uppercase;
}
.xai-instructions-dialog code {
  background: var(--color-surface-contrast);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 11px;
}
.xai-instructions-dialog .xai-instructions-tip {
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-text-muted);
  margin: 4px 0 14px 0;
}
