/* ===========================
   1. BACKGROUND / BASE
   =========================== */

/* base */
   :root {
    --edit-nav-height: 60px;
    --menu-margin: 45px;
    /* Increased value to position the menu higher */
    --block-height: 75vh;
    --content-height: 65vh;
    --stream-display: none;
    --storm-display: block;
    --only-storms-folder-display: flex;
    --only-streams-folder-display: none;
}

body {
    background-color: #212529;
}

.body-wrapper {
    height: 100vh;
    overflow: hidden;
}

hr {
    margin: 0;
}


/* layout shell */

.app-container {
    position: relative;
    height: 100vh;
    padding-bottom: calc(var(--edit-nav-height) + var(--menu-margin));
}

.content-row {
    height: calc(100vh - var(--edit-nav-height) - var(--menu-margin) - 80px);
    margin-bottom: var(--menu-margin);
}

.stage-column {
    height: 100%;
    overflow-y: auto;
}


/* shared components / utilities */

.app-card {
    box-shadow: var(--bs-box-shadow-sm) !important
}

.app-card {
    margin-bottom: 1em;
    padding: 1em;
    width: 100%;
    border-radius: .3em
}

.icon-button {
    border: none;
    background: none;
}

.form-control {
    background-color: #343A40 !important;
}

textarea {
    border-radius: var(--bs-border-radius-xl) !important;
    background-color: #343A40 !important;
}

input[type="text"] {
    background-color: #343A40 !important;
}

/* ===========================
   2. HEADER
   =========================== */

.navbar {
    background: #787878;
    background: linear-gradient(181deg, var(--bs-gray-800) 0%, var(--bs-gray-900) 100%);
}

.nav-link.active {
    background-color: #212529 !important;
    border-bottom: #212529;
}

/* ===========================
   3. FOOTER
   =========================== */


/* ===========================
   4. STAGE A
   =========================== */

/* aspect ratio */
.aspect-container {
    position: relative;
    width: auto;
    aspect-ratio: 16 / 9;
    background: grey;
    overflow: hidden;
}

.aspect-image {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: 100%;
    max-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}


/* a/v caption */

.caption-stack {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.captions-container {
    max-height: 50px;
    overflow-y: auto;
}

/* serves both sides a & b consider specifying for each side */
.storm-body-form textarea {
    margin: 0;
    height: 180px;
    overflow-y: auto;
}

.audio-player-card audio {
    width: 100%;
    display: block;
}

/* ===========================
   5. STAGE A - CREATE
   =========================== */
.textarea_create {
    height: 350px;
}

/* ===========================
   6. STAGE A - UPDATE
   =========================== */


/* ===========================
   7. STAGE A - PREVIEW
   =========================== */
.textarea_prev_update {
    height: var(--content-height);
    width: 100%;
    font-family: system-ui;
    line-height: 1.6;
    padding: 15px;
    box-sizing: border-box;
}

/* ===========================
   8. STAGE A - MENU
   =========================== */

.edit-nav-menu {
    position: fixed;
    bottom: var(--menu-margin);
    left: 0;
    right: 0;
    z-index: 1000;
    padding-left: 3rem;
    padding-right: 3rem;
}



/* ===========================
   9. STAGE B    
   =========================== */

/* ===========================
   10. STAGE B - FILTER
   =========================== */
   .filter-btn {
    padding: 3px 6px !important;
    border-radius: 7px;
    width: 30px;
    height: 30px;
}

.selected {
    background-color: #f0f0f0;
}


/* ===========================
   11. STAGE B - LIST
   =========================== */

.folder-header {
    background-color: var(--bs-gray-800) !important;
    border-bottom: var(--bs-border-width) solid var(--bs-border-color);
    padding: 5px 30px;
}

.card-header {
    background-color: var(--bs-gray-800);
}

   /* storm */
.only-storms-folder {
    display: var(--only-storms-folder-display);
}

.storm-card-body {
    background-color: #212529 !important;
}

.storm-card {
    display: var(--storm-display);
}

    /* stream */
.only-streams-folder {
    display: var(--only-streams-folder-display);
}

.stream-card {
    display: var(--stream-display);
}



/* ===========================
   12. STAGE B - INFO
   =========================== */

/* limit height of select2 */
.storm-body-form .select2-selection--multiple {
    max-height: 60px;
    overflow-y: auto;
}

/* Layout: input on the left, chips on the right */
.storm-body-form .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    /* override Select2 defaults */
    flex-wrap: wrap;
    align-items: center;
}

/* reserved typing lane on the left */
.storm-body-form .select2-selection--multiple .select2-search--inline {
    order: -1 !important;
    flex: 0 0 150px;
    margin-right: 8px;
    padding-right: 6px;
    border-right: 1px solid #555;
}

/* limit size of chips */
.storm-body-form .select2-selection--multiple .select2-selection__choice {
    font-size: 0.8rem;
    padding: 1px 6px;
    margin: 2px 2px;
}


/* Typing text inside Select2 */
.storm-body-form .select2-selection--multiple .select2-search__field {
    color: #fff !important;
}

/* Dark dropdown panel */
.select2-container--open .select2-dropdown {
    background-color: #292f3a !important;
    border-color: #555 !important;
}

/* Dropdown options */
.select2-container--open .select2-results__option {
    background-color: transparent !important;
    color: #ddd !important;
}

/* Optional: hide the global "clear all" X */
.storm-body-form .select2-selection__clear {
    display: none !important;
}

/* Scroll container for domains + keywords only */
.dom-key-container {
    height: 180px;
    overflow-y: auto;
    border: 1px solid #555;
    /* visualize container */
    margin-top: 0px;
    /* fine‑tune vertical alignment */
    border-radius: 4px;
    /* optional */
    padding: 10px 10px 0px;
    /* optional, so content isn't flush */

    display: block;
}

/* Fixed height for metadata description box */
.storm-body-form textarea[name="description"] {
    height: 220px;
    max-height: 220px;
    overflow-y: auto;
    margin-top: 0px;
    /* fine‑tune vertical alignment */
}

/* ===========================
   13. STAGE B - COMMENTS
   =========================== */
.comment-text {
    white-space: pre-line;
}

/* ===========================
   14. STAGE B - SETTINGS
   =========================== */


/* ===========================
   15. STAGE B - MENU
   =========================== */

.bottom-nav-btn {
    border: none;
}

.bottom-nav-btn img {
    height: 24px;
}



/* ===========================
   XXXXXXXXXXXXXXXXXXXXXXXXXXX
   =========================== */

/* Prevent page scroll - keep app static
    html, body {
    height: 100%;
    overflow: hidden;
  } */


























