/* 
   DitsBOSS Ultimate - Radio Automation Suite
   DitsBOSS Ultimate (7.2.5.0) Exact Theme & Broadcast Layout
*/

:root {
    --bg-main: #d4e2ed;
    --bg-window: #e6edf4;
    --bg-panel: #dbe7f2;
    --border-color: #8faac2;
    --border-dark: #62829e;
    --border-light: #ffffff;
    --toolbar-bg: linear-gradient(180deg, #fbfcfe 0%, #edf3f8 40%, #d8e5f0 100%);
    --btn-bg: transparent;
    --btn-border: transparent;
    --btn-hover: linear-gradient(180deg, #edf5fc 0%, #c9ddec 100%);
    --btn-active: linear-gradient(180deg, #b8d2e8 0%, #e4edf5 100%);
    --onair-green: #b4f7a6;
    --onair-green-border: #6fc85c;
    --next-yellow: #fdfbb7;
    --next-yellow-border: #d4cf52;
    --cart-bg: #f9fbf4;
    --cart-border: #93b169;
    --cart-active: #ffb443;
    --table-header-bg: linear-gradient(180deg, #ffffff 0%, #d2e2f0 100%);
    --table-row-even: #f7fafc;
    --table-row-odd: #ffffff;
    --table-row-selected: #3399ff;
    --table-text-selected: #ffffff;
    --accent-blue: #0066cc;
    --danger-red: #d32f2f;
    --text-main: #111111;
    --text-muted: #555555;
    --font-ui: "Segoe UI", Tahoma, Arial, sans-serif;
    --font-digital: "Courier New", Consolas, monospace;
}

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

body {
    font-family: var(--font-ui);
    font-size: 11px;
    background: var(--bg-main);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================================
   1. TITLEBAR & APP HEADER
   ======================================================== */
.titlebar {
    height: 28px;
    background: linear-gradient(180deg, #3a6080 0%, #204060 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    font-size: 12px;
    border-bottom: 1px solid #1a334d;
}

.titlebar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.app-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-logo-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(0,0,0,0.4);
}

.titlebar-center {
    display: flex;
    align-items: center;
    gap: 15px;
}

.trial-alert-badge {
    color: #ff3b30;
    font-weight: bold;
    font-size: 11.5px;
    background: rgba(255, 255, 255, 0.95);
    padding: 2px 8px;
    border-radius: 3px;
    border: 1px solid #ff3b30;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.trial-alert-badge:hover {
    background: #ff3b30;
    color: white;
}

.titlebar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-select {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
}

.profile-select select {
    background: #f0f4f8;
    border: 1px solid #5a7d9e;
    border-radius: 2px;
    padding: 1px 4px;
    font-size: 11px;
    font-weight: bold;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    cursor: pointer;
}

.window-controls {
    display: flex;
    gap: 4px;
    margin-left: 10px;
}

.win-btn {
    width: 20px;
    height: 18px;
    background: #466e94;
    border: 1px solid #6b93b8;
    color: white;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 2px;
}

.win-btn:hover {
    background: #5d88b0;
}

.win-btn.close:hover {
    background: #d32f2f;
}

/* ========================================================
   2. MAIN MENU BAR (DITSBOSS EXACT REPLICA)
   ======================================================== */
.menubar {
    height: 21px;
    background: #f0f4f8;
    border-bottom: 1px solid #b7c9da;
    display: flex;
    align-items: center;
    padding: 0 6px;
    position: relative;
    z-index: 1000;
}

.menu-item {
    padding: 2px 7px;
    cursor: pointer;
    position: relative;
    font-size: 12px;
    color: #111111;
    border: 1px solid transparent;
    border-radius: 2px;
    font-weight: 400;
}

.menu-item:hover, .menu-item.active {
    background: #cce4f7;
    border: 1px solid #99c9ef;
}

/* Windows Classic Dropdown Menus */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 21px;
    left: 0;
    min-width: 185px;
    background: #f0f4f8;
    border: 1px solid #7c98b3;
    box-shadow: 2px 3px 8px rgba(0,0,0,0.22);
    z-index: 99999;
    padding: 2px 0;
    font-size: 12px;
    font-family: var(--font-ui);
    cursor: default;
}

.dropdown-menu.show {
    display: block;
}

.menu-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 23px;
    padding: 0 14px 0 28px;
    cursor: pointer;
    color: #000000;
    position: relative;
    white-space: nowrap;
    user-select: none;
}

.menu-entry:hover {
    background: #3399ff;
    color: #ffffff;
}

.menu-entry u {
    text-decoration: underline;
}

.menu-entry-text {
    flex: 1;
    text-align: left;
    white-space: nowrap;
}

.menu-entry .shortcut {
    color: #000000;
    font-size: 11px;
    margin-left: 28px;
    font-family: var(--font-ui);
    text-align: right;
}

.menu-entry:hover .shortcut {
    color: #ffffff;
}

.menu-entry-icon {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.menu-entry-icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.menu-entry .menu-arrow {
    color: #2b2b2b;
    font-size: 10px;
    margin-left: 14px;
    font-family: var(--font-ui);
    display: inline-block;
}

.menu-entry:hover .menu-arrow {
    color: #ffffff;
}

.menu-entry-icon .menu-check {
    font-size: 12px;
    font-weight: bold;
    color: #000000;
    line-height: 1;
}

.menu-entry:hover .menu-entry-icon .menu-check {
    color: #ffffff;
}

/* Submenu popouts */
.menu-entry.has-submenu {
    position: relative;
}

.menu-entry.has-submenu > .submenu {
    display: none;
    position: absolute;
    top: -2px;
    left: 100%;
    min-width: 195px;
    background: #f0f4f8;
    border: 1px solid #7c98b3;
    box-shadow: 2px 3px 8px rgba(0,0,0,0.22);
    z-index: 100000;
    padding: 2px 0;
}

.menu-entry.has-submenu:hover > .submenu {
    display: block;
}

.menu-divider {
    height: 1px;
    background: #b5c7d8;
    border-bottom: 1px solid #ffffff;
    margin: 3px 1px;
}

/* ========================================================
   3. REALISTIC ACTION TOOLBAR (8 GROUPS WITH DIVIDERS)
   ======================================================== */
.toolbar {
    height: 32px;
    background: var(--toolbar-bg);
    border-bottom: 1px solid #9fb4c7;
    display: flex;
    align-items: center;
    padding: 0 4px;
    gap: 1px;
    box-shadow: inset 0 1px 0 #ffffff;
}

.tool-group {
    display: flex;
    align-items: center;
    gap: 1px;
    padding: 0 1px;
}

.tool-separator {
    width: 2px;
    height: 20px;
    border-left: 1px solid #a8bccd;
    border-right: 1px solid #ffffff;
    margin: 0 3px;
}

/* Exact sliced image toolbar buttons */
.real-tool-btn {
    width: 26px;
    height: 26px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    margin: 0 1px;
    transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
    position: relative;
}

.real-tool-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 1px 1px rgba(0, 30, 60, 0.18));
    pointer-events: none;
    transition: transform 0.1s ease;
}

.real-tool-btn:hover {
    background: linear-gradient(180deg, #ffffff 0%, #d4e7f8 100%);
    border: 1px solid #7eb4ea;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.real-tool-btn:hover img {
    transform: scale(1.05);
}

.real-tool-btn:active, .real-tool-btn.active {
    background: linear-gradient(180deg, #cde3f8 0%, #eef5fc 100%);
    border: 1px solid #5599dd;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.18);
}

.real-tool-btn:active img {
    transform: scale(0.96);
}

/* Tooltip on hover */
.real-tool-btn[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffe1;
    color: #000000;
    border: 1px solid #777777;
    padding: 1px 5px;
    font-size: 10px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10000;
    display: none;
    box-shadow: 1px 2px 3px rgba(0,0,0,0.2);
}

.real-tool-btn:hover[data-tip]::after {
    display: block;
}

/* ========================================================
   4. ON-AIR STATUS BANNERS (TOP HEADER)
   ======================================================== */
.onair-header {
    height: 72px;
    background: #e2ecf5;
    border-bottom: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 140px 1fr 1fr 65px;
    gap: 8px;
    padding: 6px 8px;
}

.clock-panel {
    background: #ffffff;
    border: 1px solid var(--border-dark);
    border-radius: 3px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.clock-date {
    font-size: 10px;
    font-weight: 600;
    color: #222222;
}

.clock-time {
    font-family: var(--font-digital);
    font-size: 17px;
    font-weight: bold;
    color: #000000;
    letter-spacing: 0.5px;
}

.clock-subtimer {
    font-family: var(--font-digital);
    font-size: 13px;
    font-weight: bold;
    color: #008888;
}

.banner-box {
    border-radius: 4px;
    padding: 4px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.banner-onair {
    background: var(--onair-green);
    border: 1px solid var(--onair-green-border);
}

.banner-next {
    background: var(--next-yellow);
    border: 1px solid var(--next-yellow-border);
}

.banner-title-label {
    font-size: 10px;
    font-weight: bold;
    color: #2c4c1a;
    display: flex;
    justify-content: space-between;
}

.banner-next .banner-title-label {
    color: #635b00;
}

.banner-track-name {
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #000000;
}

.banner-meta {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #333333;
}

.banner-progress-bar {
    width: 100%;
    height: 5px;
    background: rgba(0,0,0,0.15);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 2px;
}

.banner-progress-fill {
    height: 100%;
    width: 0%;
    background: #008800;
    transition: width 0.2s linear;
}

.radio-graphic-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    padding: 2px;
    overflow: hidden;
    box-shadow: inset 0 0 3px rgba(0,0,0,0.1);
}

.radio-logo-badge {
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: transform 0.2s;
    cursor: pointer;
}

.radio-logo-badge:hover {
    transform: scale(1.05);
}

/* ========================================================
   5. WORKSPACE BODY & FLEXIBLE LAYOUTS
   ======================================================== */
.workspace-body {
    flex: 1;
    display: grid;
    grid-template-columns: 240px 1fr 280px;
    gap: 4px;
    padding: 4px 6px;
    overflow: hidden;
    background: var(--bg-main);
    transition: all 0.2s ease;
}

/* Dynamic Layout Classes */
.workspace-body.layout-1 {
    grid-template-columns: 260px 1fr 0px;
}
.workspace-body.layout-1 .right-panel {
    display: none !important;
}

.workspace-body.layout-2 {
    grid-template-columns: 0px 1fr 0px;
}
.workspace-body.layout-2 .left-panel,
.workspace-body.layout-2 .right-panel {
    display: none !important;
}

.workspace-body.layout-3 {
    grid-template-columns: 0px 1fr 1fr;
}
.workspace-body.layout-3 .left-panel {
    display: none !important;
}

.workspace-body.layout-4 {
    grid-template-columns: 240px 1fr 280px;
}

/* ========================================================
   6. LEFT PANEL: FILE EXPLORER & LOG
   ======================================================== */
.left-panel {
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
    overflow: hidden;
}

.panel-container {
    background: #ffffff;
    border: 1px solid var(--border-dark);
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tab-header {
    height: 24px;
    background: var(--toolbar-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-end;
    padding: 0 4px;
    gap: 2px;
}

.tab-btn {
    padding: 3px 8px;
    background: #e3edf5;
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 3px 3px 0 0;
    font-size: 11px;
    cursor: pointer;
    color: #334e68;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tab-btn.active {
    background: #ffffff;
    border-color: var(--border-dark);
    font-weight: 600;
    position: relative;
    top: 1px;
}

.explorer-toolbar {
    height: 26px;
    background: #f0f4f8;
    border-bottom: 1px solid #d2dbe3;
    display: flex;
    align-items: center;
    padding: 0 4px;
    gap: 3px;
}

.exp-nav-btn {
    width: 20px;
    height: 20px;
    background: #ffffff;
    border: 1px solid #99b0c6;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
}

.exp-nav-btn:hover {
    background: #e5f1fb;
}

.exp-path-input {
    flex: 1;
    height: 20px;
    border: 1px solid #99b0c6;
    border-radius: 2px;
    padding: 0 4px;
    font-size: 11px;
    background: #ffffff;
}

.file-tree-view {
    flex: 1;
    overflow-y: auto;
    padding: 4px;
    font-size: 11px;
}

.tree-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 2px 4px;
    cursor: pointer;
    border-radius: 2px;
}

.tree-item:hover {
    background: #e5f1fb;
}

.tree-item.selected {
    background: #cce8ff;
    color: #000000;
}

.tree-item-icon {
    font-size: 12px;
}

.tree-item-icon.folder {
    color: #e6a100;
}

.tree-item-icon.music {
    color: #0066cc;
}

.log-panel-container {
    height: 140px;
}

.log-table-wrapper {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
}

.log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
}

.log-table th {
    background: var(--table-header-bg);
    border-bottom: 1px solid #abbecd;
    padding: 2px 4px;
    text-align: left;
    font-weight: 600;
    color: #334e68;
    position: sticky;
    top: 0;
}

.log-table td {
    padding: 2px 4px;
    border-bottom: 1px solid #f0f0f0;
}

.log-table tr.error td {
    color: #d32f2f;
}

/* ========================================================
   7. CENTER PANEL: MAIN PLAYLIST & INSPECTOR
   ======================================================== */
.center-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.playlist-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.playlist-table-wrapper {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.playlist-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.playlist-table th {
    background: var(--table-header-bg);
    border-bottom: 1px solid #8caec7;
    border-right: 1px solid #d0dee8;
    padding: 3px 6px;
    text-align: left;
    font-weight: 600;
    color: #1a334d;
    position: sticky;
    top: 0;
    z-index: 2;
}

.playlist-table td {
    padding: 3px 6px;
    border-bottom: 1px solid #eef2f5;
    border-right: 1px solid #f2f5f8;
    white-space: nowrap;
}

.playlist-table tr:nth-child(even) {
    background: var(--table-row-even);
}

.playlist-table tr:hover {
    background: #e8f4fd;
    cursor: pointer;
}

.playlist-table tr.selected {
    background: #3399ff !important;
    color: #ffffff !important;
}

.playlist-table tr.playing {
    background: #c3f7b8 !important;
    font-weight: bold;
    color: #0b5507 !important;
}

.track-inspector {
    height: 95px;
    background: #f0f5fa;
    border-bottom: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 85px 1fr 1fr;
    gap: 8px;
    padding: 6px;
}

.inspector-cover-box {
    width: 80px;
    height: 80px;
    background: #ffffff;
    border: 1px solid #8faac2;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    overflow: hidden;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.12);
}

.inspector-cover-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.inspector-meta-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 10px;
}

.meta-row {
    display: flex;
    gap: 4px;
}

.meta-label {
    width: 50px;
    color: #556c82;
    font-weight: bold;
}

.meta-val {
    color: #000000;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-summary-bar {
    height: 24px;
    background: #e8f1f8;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    font-size: 11px;
}

.summary-vol-box {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vol-slider {
    width: 80px;
    height: 5px;
    cursor: pointer;
}

/* Master Transport Controls */
.master-controls-bar {
    height: 48px;
    background: var(--toolbar-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    border-top: 1px solid #ffffff;
}

.transport-buttons-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ctl-btn {
    width: 32px;
    height: 32px;
    background: linear-gradient(180deg, #ffffff 0%, #e0e9f1 100%);
    border: 1px solid #7c99b5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #2b4967;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.ctl-btn:hover {
    background: var(--btn-hover);
    border-color: #3b6d9c;
}

.ctl-btn:active, .ctl-btn.active {
    background: #ffcc66;
    border-color: #d48800;
}

.ctl-btn.play-btn {
    width: 38px;
    height: 38px;
    background: radial-gradient(circle, #3399ff 20%, #0066cc 100%);
    border: 2px solid #004d99;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.4);
}

.ctl-btn.play-btn:hover {
    background: radial-gradient(circle, #4da6ff 20%, #0073e6 100%);
}

.mic-toggle-btn {
    height: 34px;
    padding: 0 14px;
    background: linear-gradient(180deg, #ffffff 0%, #e0e9f1 100%);
    border: 2px solid #8caec7;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    color: #222222;
    transition: all 0.2s;
}

.mic-toggle-btn:hover {
    background: #edf5fc;
}

.mic-toggle-btn.live {
    background: linear-gradient(180deg, #ff4d4d 0%, #cc0000 100%);
    border-color: #990000;
    color: white;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
    animation: pulse-mic 1s infinite alternate;
}

@keyframes pulse-mic {
    0% { transform: scale(1); }
    100% { transform: scale(1.03); }
}

/* ========================================================
   8. RIGHT PANEL: CART WALL & AUX PLAYER
   ======================================================== */
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
    overflow: hidden;
}

.cartwall-container {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-grid {
    flex: 1;
    padding: 4px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 3px;
    background: #eef4f9;
}

.cart-pad {
    background: var(--cart-bg);
    border: 1px solid var(--cart-border);
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2px 4px;
    cursor: pointer;
    position: relative;
    box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.cart-pad:hover {
    border-color: #55802b;
    background: #f4faeb;
}

.cart-pad.playing {
    background: var(--cart-active) !important;
    border-color: #cc6600 !important;
    color: #ffffff !important;
    animation: flash-pad 0.6s infinite alternate;
}

@keyframes flash-pad {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.2); }
}

.cart-pad-header {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: bold;
    color: #335511;
}

.cart-pad-time {
    font-family: var(--font-digital);
    font-size: 9px;
    color: #444444;
}

.cart-pad-title {
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #111111;
}

/* AUX PLAYER */
.auxplayer-container {
    flex: 0.9;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.aux-toolbar {
    height: 24px;
    background: #f0f4f8;
    border-bottom: 1px solid #d2dbe3;
    display: flex;
    align-items: center;
    padding: 0 4px;
    gap: 3px;
}

.aux-display-bar {
    flex: 1;
    height: 18px;
    background: #e2f7db;
    border: 1px solid #9ad98a;
    border-radius: 2px;
    padding: 0 4px;
    font-size: 10px;
    display: flex;
    align-items: center;
    color: #1b5e20;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
}

.aux-table-wrapper {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
}

.aux-controls {
    height: 32px;
    background: var(--toolbar-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
}

/* ========================================================
   9. BOTTOM STATUS BAR & REALTIME VU METERS
   ======================================================== */
.statusbar {
    height: 24px;
    background: #e2ecf5;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    font-size: 11px;
}

.status-indicators {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dot-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2e7d32;
    box-shadow: 0 0 3px #2e7d32;
}

.dot-indicator.disabled {
    background: #757575;
    box-shadow: none;
}

.dot-indicator.red {
    background: #d32f2f;
    box-shadow: 0 0 4px #d32f2f;
}

.vu-meter-section {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vu-channel {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    font-weight: bold;
}

.vu-meter-bar {
    width: 80px;
    height: 8px;
    background: #222222;
    border: 1px solid #444444;
    border-radius: 1px;
    overflow: hidden;
    position: relative;
}

.vu-meter-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00e676 0%, #ffeb3b 75%, #ff1744 100%);
    transition: width 0.05s ease-out;
}

/* ========================================================
   10. MODALS & DIALOGS
   ======================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    display: flex;
}

.modal-window {
    background: #f4f8fb;
    border: 2px solid #336699;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    width: 700px;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    height: 32px;
    background: linear-gradient(180deg, #336699 0%, #1f4369 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    font-weight: bold;
    font-size: 13px;
}

.modal-close-btn {
    cursor: pointer;
    font-size: 16px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.modal-close-btn:hover {
    background: #d32f2f;
}

.modal-body {
    padding: 16px;
    overflow-y: auto;
    font-size: 12px;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.plan-card {
    background: #ffffff;
    border: 1px solid #9ec0de;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.plan-card.popular {
    border: 2px solid #0066cc;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

.plan-card.popular .plan-badge {
    background: #0066cc;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    position: absolute;
    top: -9px;
    right: 10px;
    font-weight: bold;
}

.plan-name {
    font-size: 14px;
    font-weight: bold;
    color: #1a334d;
    margin-bottom: 4px;
}

.plan-price {
    font-size: 18px;
    font-weight: bold;
    color: #0066cc;
    margin-bottom: 10px;
}

.plan-features {
    list-style: none;
    font-size: 11px;
    color: #334e68;
    margin-bottom: 14px;
    line-height: 1.6;
}

.plan-features li::before {
    content: "✓ ";
    color: #2e7d32;
    font-weight: bold;
}

.plan-btn {
    padding: 7px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
}

.plan-btn:hover {
    background: #0052a3;
}

.license-box {
    background: #ffffff;
    border: 1px solid #b0c8dc;
    border-radius: 4px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.license-input {
    flex: 1;
    height: 28px;
    padding: 0 8px;
    font-family: monospace;
    font-size: 12px;
    border: 1px solid #7c99b5;
    border-radius: 3px;
    text-transform: uppercase;
}

.license-activate-btn {
    height: 28px;
    padding: 0 14px;
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 3px;
    font-weight: bold;
    cursor: pointer;
}

.license-activate-btn:hover {
    background: #256528;
}

/* Call in Queue Alert Popup */
.call-alert-banner {
    position: fixed;
    bottom: 30px;
    right: 20px;
    background: #fff8e1;
    border: 2px solid #ffa000;
    border-radius: 6px;
    padding: 10px 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 9000;
    display: none;
    align-items: center;
    gap: 12px;
}

.call-alert-banner.active {
    display: flex;
    animation: bounce 0.5s;
}

@keyframes bounce {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.call-btn-accept {
    background: #2e7d32;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 3px;
    font-weight: bold;
    cursor: pointer;
}

.call-btn-end {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 3px;
    font-weight: bold;
    cursor: pointer;
}

/* ===================================================
   DitsBOSS Master Settings Windows Replica Dialog
   =================================================== */
.win7-settings-dialog {
    background: #d8e5f2;
    border: 1px solid #708ea8;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.7);
    width: 745px;
    max-width: 96vw;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    font-size: 11px;
    color: #000000;
    user-select: none;
}

.win7-titlebar {
    background: linear-gradient(to bottom, #edf4fc 0%, #dbe8f5 50%, #c8daf0 51%, #d0e0f3 100%);
    border-bottom: 1px solid #a0b5c9;
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: default;
}

.win7-title {
    font-size: 12px;
    font-weight: 600;
    color: #1e395b;
    text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

.win7-close-btn {
    width: 22px;
    height: 19px;
    border: 1px solid #7a93a9;
    border-radius: 2px;
    background: linear-gradient(to bottom, #fcfcfc 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #333;
    cursor: pointer;
    line-height: 1;
}

.win7-close-btn:hover {
    background: linear-gradient(to bottom, #e97a7a 0%, #c42b2b 100%);
    border-color: #a82323;
    color: #ffffff;
}

.win7-dialog-body {
    padding: 10px 12px 12px 12px;
    display: flex;
    gap: 12px;
    background: #d8e5f2;
    height: 520px;
}

/* Left Sidebar TreeView */
.win7-treeview-col {
    width: 175px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.win7-treeview {
    background: #ffffff;
    border: 1px solid #7f9db9;
    border-radius: 2px;
    flex: 1;
    overflow-y: auto;
    padding: 3px 2px;
}

.win7-tree-node {
    display: flex;
    align-items: center;
    padding: 2px 4px 2px 4px;
    cursor: pointer;
    color: #000000;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: 2px;
    line-height: 19px;
    font-size: 11px;
}

.win7-tree-node:hover {
    background: #e5f1fb;
    border-color: #70c0e7;
}

.win7-tree-node.active {
    background: #cce8ff;
    border-color: #99d1ff;
    font-weight: 500;
}

.win7-tree-arrow {
    display: inline-block;
    width: 14px;
    font-size: 9px;
    text-align: center;
    color: #333;
    user-select: none;
    margin-right: 2px;
}

.win7-tree-subnode {
    padding-left: 20px;
}

.win7-help-btn {
    width: 26px;
    height: 24px;
    border: 1px solid #707070;
    border-radius: 3px;
    background: linear-gradient(to bottom, #fbfbfb 0%, #d8d8d8 100%);
    font-weight: bold;
    font-size: 13px;
    color: #111;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.win7-help-btn:hover {
    background: linear-gradient(to bottom, #eaf6fd 0%, #bee6fd 100%);
    border-color: #3c7fb1;
}

/* Right Content Area */
.win7-content-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.win7-tab-panel {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.win7-tab-panel.active {
    display: flex;
    flex-direction: column;
}

.win7-panel-title {
    font-size: 13px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 10px;
}

.win7-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.win7-checkbox-label input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.win7-btn {
    height: 23px;
    padding: 0 10px;
    border: 1px solid #707070;
    border-radius: 3px;
    background: linear-gradient(to bottom, #f2f2f2 0%, #ebebeb 50%, #cfcfcf 51%, #cfcfcf 100%);
    font-size: 11px;
    font-family: inherit;
    color: #000000;
    cursor: pointer;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
    white-space: nowrap;
}

.win7-btn:hover {
    background: linear-gradient(to bottom, #eaf6fd 0%, #d9f0fc 50%, #bee6fd 51%, #a7d9f5 100%);
    border-color: #3c7fb1;
}

.win7-btn:active {
    background: linear-gradient(to bottom, #c2e4f6 0%, #a6d9f4 100%);
    border-color: #2c628b;
}

.win7-btn-default {
    border-color: #3c7fb1;
    background: linear-gradient(to bottom, #eaf6fd 0%, #d9f0fc 50%, #bee6fd 51%, #b2dcf6 100%);
    box-shadow: 0 0 2px rgba(60,127,177,0.7), inset 0 1px 0 rgba(255,255,255,0.8);
}

.win7-select {
    height: 22px;
    border: 1px solid #7f9db9;
    border-radius: 2px;
    background: #ffffff;
    font-size: 11px;
    font-family: inherit;
    padding: 1px 4px;
    outline: none;
}

.win7-input {
    height: 22px;
    border: 1px solid #7f9db9;
    border-radius: 2px;
    background: #ffffff;
    font-size: 11px;
    font-family: inherit;
    padding: 1px 6px;
    outline: none;
}

.win7-footer-btns {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

/* ==========================================================================
   Windows 7 Aero Classic Context Menu (Native RadioBOSS Style)
   ========================================================================== */
.win7-context-menu {
    position: fixed;
    z-index: 10000;
    min-width: 200px;
    background: #f0f0f0;
    border: 1px solid #979797;
    border-radius: 2px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.25);
    padding: 3px 2px;
    font-family: var(--font-ui);
    font-size: 11px;
    color: #000000;
    user-select: none;
    display: none;
}

.ctx-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 10px;
    border-radius: 2px;
    border: 1px solid transparent;
    cursor: default;
    white-space: nowrap;
}

.ctx-item:hover {
    background: linear-gradient(180deg, #eaf6fd 0%, #bee6fd 100%);
    border: 1px solid #7da2ce;
}

.ctx-shortcut {
    color: #666666;
    margin-left: 20px;
    font-size: 10px;
}

.ctx-sep {
    height: 1px;
    background: #e0e0e0;
    border-bottom: 1px solid #ffffff;
    margin: 3px 2px;
}

/* ==========================================================================
   Playlist Dynamic Column Visibility & Font Sizing
   ========================================================================== */
.playlist-table {
    font-size: var(--playlist-font-size, 11px);
}

body[data-font-size="11"] .playlist-table { font-size: 11px; }
body[data-font-size="12"] .playlist-table { font-size: 12px; }
body[data-font-size="14"] .playlist-table { font-size: 14px; }

#playlistTable.hide-col-start th:nth-child(3),
#playlistTable.hide-col-start td:nth-child(3) {
    display: none !important;
}

#playlistTable.hide-col-duration th:nth-child(5),
#playlistTable.hide-col-duration td:nth-child(5) {
    display: none !important;
}

#playlistTable.hide-col-listeners th:nth-child(7),
#playlistTable.hide-col-listeners td:nth-child(7) {
    display: none !important;
}

#playlistTable.hide-col-lastplayed th:nth-child(8),
#playlistTable.hide-col-lastplayed td:nth-child(8) {
    display: none !important;
}

/* ==========================================================================
   DitsBOSS Studio Broadcast Themes (Dark, Ice Blue, Charcoal)
   ========================================================================== */

/* DARK STUDIO BROADCAST THEME */
body[data-theme="dark"] {
    --bg-main: #181b20;
    --bg-window: #20242b;
    --bg-panel: #272c35;
    --border-color: #3b4250;
    --border-dark: #121418;
    --border-light: #444c5c;
    --toolbar-bg: linear-gradient(180deg, #2b303a 0%, #20242b 100%);
    --btn-hover: linear-gradient(180deg, #373f4d 0%, #2a313d 100%);
    --btn-active: linear-gradient(180deg, #1f242c 0%, #303744 100%);
    --table-header-bg: linear-gradient(180deg, #2c323c 0%, #1f232a 100%);
    --table-row-even: #20242b;
    --table-row-odd: #252a32;
    --table-row-selected: #1976d2;
    --table-text-selected: #ffffff;
    --text-main: #e8ecf1;
    --text-muted: #9aa5b5;
    --cart-bg: #22262e;
    --cart-border: #414a59;
    --cart-active: #e65100;
}

body[data-theme="dark"] .menubar,
body[data-theme="dark"] .toolbar,
body[data-theme="dark"] .panel-header,
body[data-theme="dark"] .tabs-header {
    color: #e8ecf1;
}

body[data-theme="dark"] .menu-item:hover,
body[data-theme="dark"] .menu-item.active {
    background: #373f4d;
    color: #ffffff;
}

body[data-theme="dark"] .dropdown-menu {
    background: #20242b;
    border-color: #3b4250;
    color: #e8ecf1;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

body[data-theme="dark"] .dropdown-item:hover {
    background: #2a5885;
    color: #ffffff;
}

body[data-theme="dark"] .win7-context-menu {
    background: #20242b;
    border-color: #3b4250;
    color: #e8ecf1;
}

body[data-theme="dark"] .ctx-item:hover {
    background: #2a5885;
    border-color: #4682b4;
    color: #ffffff;
}

body[data-theme="dark"] .ctx-shortcut {
    color: #8fa0b5;
}

body[data-theme="dark"] .ctx-sep {
    background: #3b4250;
    border-bottom: 1px solid #1a1d22;
}

body[data-theme="dark"] input[type="text"],
body[data-theme="dark"] select,
body[data-theme="dark"] textarea {
    background: #181b20;
    color: #e8ecf1;
    border-color: #3b4250;
}

body[data-theme="dark"] .win7-btn {
    background: linear-gradient(to bottom, #333a46 0%, #252b34 100%);
    color: #e8ecf1;
    border-color: #4a5464;
}

/* ICE BLUE MODERN THEME */
body[data-theme="blue"] {
    --bg-main: #0d2847;
    --bg-window: #13345a;
    --bg-panel: #1a4270;
    --border-color: #2b629c;
    --border-dark: #081a2e;
    --border-light: #3a75b8;
    --toolbar-bg: linear-gradient(180deg, #1b4573 0%, #113155 100%);
    --btn-hover: linear-gradient(180deg, #275d94 0%, #1a4470 100%);
    --btn-active: linear-gradient(180deg, #123257 0%, #26598e 100%);
    --table-header-bg: linear-gradient(180deg, #205084 0%, #12345b 100%);
    --table-row-even: #13345a;
    --table-row-odd: #183e6b;
    --table-row-selected: #0288d1;
    --table-text-selected: #ffffff;
    --text-main: #f0f7ff;
    --text-muted: #9cc2ec;
    --cart-bg: #143760;
    --cart-border: #2c639c;
}

body[data-theme="blue"] .menubar,
body[data-theme="blue"] .toolbar,
body[data-theme="blue"] .panel-header,
body[data-theme="blue"] .tabs-header {
    color: #f0f7ff;
}

body[data-theme="blue"] .menu-item:hover,
body[data-theme="blue"] .menu-item.active {
    background: #255588;
    color: #ffffff;
}

body[data-theme="blue"] .dropdown-menu {
    background: #13345a;
    border-color: #2b629c;
    color: #f0f7ff;
}

body[data-theme="blue"] .win7-context-menu {
    background: #13345a;
    border-color: #2b629c;
    color: #f0f7ff;
}

body[data-theme="blue"] .ctx-item:hover {
    background: #0288d1;
    border-color: #4fc3f7;
    color: #ffffff;
}

body[data-theme="blue"] input[type="text"],
body[data-theme="blue"] select,
body[data-theme="blue"] textarea {
    background: #0d2847;
    color: #f0f7ff;
    border-color: #2b629c;
}

body[data-theme="blue"] .win7-btn {
    background: linear-gradient(to bottom, #1f4f82 0%, #13345a 100%);
    color: #f0f7ff;
    border-color: #3b74b0;
}

/* CHARCOAL RADIO PRO THEME */
body[data-theme="charcoal"] {
    --bg-main: #2b2b2b;
    --bg-window: #333333;
    --bg-panel: #3a3a3a;
    --border-color: #555555;
    --border-dark: #1e1e1e;
    --border-light: #666666;
    --toolbar-bg: linear-gradient(180deg, #444444 0%, #2f2f2f 100%);
    --btn-hover: linear-gradient(180deg, #4f4f4f 0%, #3a3a3a 100%);
    --btn-active: linear-gradient(180deg, #282828 0%, #484848 100%);
    --table-header-bg: linear-gradient(180deg, #444444 0%, #303030 100%);
    --table-row-even: #323232;
    --table-row-odd: #383838;
    --table-row-selected: #e53935;
    --table-text-selected: #ffffff;
    --text-main: #f5f5f5;
    --text-muted: #b0b0b0;
    --cart-bg: #303030;
    --cart-border: #525252;
}

body[data-theme="charcoal"] .menubar,
body[data-theme="charcoal"] .toolbar,
body[data-theme="charcoal"] .panel-header,
body[data-theme="charcoal"] .tabs-header {
    color: #f5f5f5;
}

body[data-theme="charcoal"] .menu-item:hover,
body[data-theme="charcoal"] .menu-item.active {
    background: #4a4a4a;
    color: #ffffff;
}

body[data-theme="charcoal"] .dropdown-menu {
    background: #333333;
    border-color: #555555;
    color: #f5f5f5;
}

body[data-theme="charcoal"] .win7-context-menu {
    background: #333333;
    border-color: #555555;
    color: #f5f5f5;
}

body[data-theme="charcoal"] .ctx-item:hover {
    background: #e53935;
    border-color: #ef5350;
    color: #ffffff;
}

body[data-theme="charcoal"] input[type="text"],
body[data-theme="charcoal"] select,
body[data-theme="charcoal"] textarea {
    background: #252525;
    color: #f5f5f5;
    border-color: #555555;
}

body[data-theme="charcoal"] .win7-btn {
    background: linear-gradient(to bottom, #444444 0%, #2f2f2f 100%);
    color: #f5f5f5;
    border-color: #666666;
}

