* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #1a1a2e;
    color: #eee;
    min-height: 100vh;
    padding: 20px;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Light Mode Styles */
body.light-mode {
    background: #f5f5f5;
    color: #333;
}

body.light-mode h1 {
    color: #0077cc;
}

body.light-mode .table-container {
    background: #ffffff;
    border: 1px solid #333;
}

body.light-mode table {
    background: #ffffff;
}

body.light-mode th {
    background: #e9ecef;
    color: #333;
}

body.light-mode tr:hover {
    background: #f8f9fa !important;
}

body.light-mode .modal-content {
    background: #ffffff;
    color: #333;
}

body.light-mode .modal-header {
    border-bottom: 1px solid #333;
}

body.light-mode .close-btn {
    color: #666;
}

body.light-mode .close-btn:hover {
    color: #333;
}

body.light-mode input[type="text"],
body.light-mode input[type="date"],
body.light-mode input[type="time"],
body.light-mode textarea {
    background: #ffffff;
    color: #333;
    border: 1px solid #333;
}

body.light-mode button {
    background: rgba(0, 119, 204, 0.1);
    border-color: #0077cc;
    color: #0077cc;
}

body.light-mode button:hover {
    background: rgba(0, 119, 204, 0.2);
}

body.light-mode .dropdown-content {
    background: #ffffff;
    border: 1px solid #333;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.light-mode .dropdown-content a {
    color: #333;
}

body.light-mode .dropdown-content a:hover {
    background: #f8f9fa;
}

body.light-mode .user-info-header {
    background: #e9ecef;
    color: #333;
}

body.light-mode .add-broadcast-section {
    background: rgba(0, 119, 204, 0.05);
    border-color: #0077cc;
}

body.light-mode .hidden-broadcasts-section {
    background: rgba(0, 119, 204, 0.05);
    border-color: #0077cc;
}

body.light-mode .hidden-broadcasts-header h3 {
    color: #0077cc;
}

body.light-mode .hidden-broadcasts-toggle-btn {
    border-color: #0077cc;
    color: #0077cc;
}

body.light-mode .hidden-broadcasts-toggle-btn:hover {
    background: rgba(0, 119, 204, 0.15);
}

body.light-mode .hidden-broadcast-item {
    background: #ffffff;
    border-color: #d0d7de;
}

body.light-mode .hidden-broadcast-label {
    color: #333;
}

body.light-mode .theme-toggle-btn {
    background: rgba(0, 119, 204, 0.1);
    border-color: #0077cc;
    color: #0077cc;
}

body.light-mode a {
    color: #000000;
}

body.light-mode a:hover {
    color: #333333;
}

body.light-mode .stat-card {
    background: #ffffff;
    border-left-color: #0077cc;
    border: 1px solid #333;
    border-left: 4px solid #0077cc;
}

body.light-mode .stat-card h3 {
    color: #666;
}

body.light-mode .stat-card p {
    color: #0077cc;
}

body.light-mode .comments-list {
    background: #f8f9fa;
    border: 1px solid #333;
}

body.light-mode .comment-item {
    background: #ffffff;
    border-left-color: #0077cc;
}

body.light-mode .comment-item strong {
    color: #0077cc;
}

body.light-mode .comment-item p {
    color: #333;
}

body.light-mode .comment-input {
    background: #ffffff;
    color: #333;
    border-color: #333;
}

body.light-mode .comment-input:focus {
    border-color: #0077cc;
}

body.light-mode .add-comment-btn {
    background: #0077cc;
    color: #ffffff;
}

body.light-mode .add-comment-btn:hover {
    background: #005fa3;
}

body.light-mode .delete-comment-btn {
    color: #666;
}

body.light-mode .delete-comment-btn:hover {
    color: #ff4757;
}

body.light-mode .comment-time {
    color: #666;
}

body.light-mode .saved-filters-list {
    background: #f8f9fa;
    border: 1px solid #333;
}

body.light-mode .filter-item {
    background: #ffffff;
    border-color: #333;
}

body.light-mode .filter-item:hover {
    border-color: #0077cc;
    background: rgba(0, 119, 204, 0.05);
}

body.light-mode .filter-chip-bar,
body.light-mode .filter-chip-editor {
    background: #ffffff;
    border-color: #0077cc;
}

body.light-mode .filter-chip {
    background: rgba(0, 119, 204, 0.1);
    border-color: rgba(0, 119, 204, 0.35);
    color: #005a8f;
}

body.light-mode .filter-chip-remove {
    background: rgba(0, 0, 0, 0.08);
    color: #005a8f;
}

body.light-mode .filter-chip-input {
    color: #222;
}

body.light-mode .filter-chip-input::placeholder {
    color: #7f8c99;
}

body.light-mode .filter-chip-empty {
    color: #8f9aa5;
}

body.light-mode .filter-info strong {
    color: #0077cc;
}

body.light-mode .filter-text {
    color: #666;
}

body.light-mode .filter-actions button {
    background: rgba(0, 0, 0, 0.05);
    border-color: #333;
    color: #333;
}

body.light-mode .filter-actions button:hover {
    background: rgba(0, 119, 204, 0.1);
    border-color: #0077cc;
}

body.light-mode .filter-builder-col {
    background: #ffffff;
    border-color: #d1d5db;
}

body.light-mode .filter-builder-head {
    border-bottom-color: #d1d5db;
}

body.light-mode .filter-builder-chip {
    background: rgba(0, 119, 204, 0.1);
    border-color: rgba(0, 119, 204, 0.35);
    color: #005fa3;
}

body.light-mode .filter-builder-chip.legacy {
    background: rgba(255, 165, 0, 0.16);
    border-color: rgba(255, 165, 0, 0.45);
    color: #8b5a00;
}

body.light-mode .filter-builder-legacy {
    color: #8b5a00;
}

body.light-mode .dropdown-header {
    border-bottom-color: #333;
    color: #0077cc;
}

body.light-mode .dropdown-header .add-btn {
    background: #4ade80;
    color: #000;
}

body.light-mode .user-info-header {
    border-bottom-color: #333;
}

body.light-mode .user-email {
    color: #0077cc;
}

body.light-mode .ssh-link {
    color: #0077cc;
}

body.light-mode .ssh-link:hover {
    background: #f8f9fa;
}

body.light-mode .logout-link:hover {
    background: #f8f9fa;
}

body.light-mode .playsite-item {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
}

body.light-mode .playsite-item:hover {
    background: #e9ecef;
}

body.light-mode .playsite-name {
    color: #333;
}

body.light-mode .loading-text,
body.light-mode .empty-text {
    color: #666;
}

body.light-mode .error-text {
    color: #ff4757;
}

body.light-mode .broadcast-row.issue-status-yes {
    background-color: #ff6b6b !important;
}

body.light-mode .broadcast-row.issue-status-yes td,
body.light-mode .broadcast-row.issue-status-yes .time-badge,
body.light-mode .broadcast-row.issue-status-yes .broadcast-link a {
    color: #000 !important;
}

body.light-mode .broadcast-row.issue-status-ok {
    background-color: #4ade80 !important;
}

body.light-mode .broadcast-row.issue-status-ok td,
body.light-mode .broadcast-row.issue-status-ok .time-badge,
body.light-mode .broadcast-row.issue-status-ok .broadcast-link a {
    color: #000 !important;
}

body.light-mode .broadcast-row.issue-status-no {
    background-color: #e0e0e0 !important;
}

body.light-mode .broadcast-row.issue-status-no td,
body.light-mode .broadcast-row.issue-status-no .time-badge,
body.light-mode .broadcast-row.issue-status-no .broadcast-link a {
    color: #666 !important;
}

body.light-mode .floating-modal {
    background: #ffffff;
    border-color: #0077cc;
}

body.light-mode .floating-modal div p {
    color: #0077cc;
    outline-color: #0077cc;
}

body.light-mode .floating-modal div p:hover {
    background: #0077cc;
    color: #ffffff;
    outline-color: #0077cc;
}

body.light-mode #close-modal-btn {
    color: #333;
}


body.light-mode .details-content {
    background: #f8f9fa;
    border-left-color: #333;
}

body.light-mode .detail-group label {
    color: #666;
}

body.light-mode .issue-select,
body.light-mode .comments-input {
    background: #ffffff;
    color: #333;
    border-color: #333;
}

body.light-mode .issue-select:focus,
body.light-mode .comments-input:focus {
    border-color: #0077cc;
}

body.light-mode #addBroadcastInput {
    background: #ffffff;
    color: #333;
    border-color: #333;
}

body.light-mode #addBroadcastInput:focus {
    border-color: #0077cc;
}

body.light-mode #addBroadcastInput::placeholder {
    color: #999;
}

body.light-mode .hide-practices-btn {
    background: rgba(0, 119, 204, 0.1);
    border-color: #0077cc;
    color: #0077cc;
}

body.light-mode .hide-practices-btn:hover {
    background: rgba(0, 119, 204, 0.2);
}

body.light-mode .preview-comment-text {
    color: #333;
    font-style: italic;
    flex: 1;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-all;
    min-width: 0;
}



.container {
    max-width: 1400px;
    margin: 0 auto;
    position:absolute;
    align-self: center;
    top: 20px;
    left: 1px;
    right: 1px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

h1 {
    color: #00d4ff;
    font-size: 2rem;
}

.indicators {
    font-size: 0.2rem;
}

.toggle-indicators-btn {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid #00d4ff;
    color: #00d4ff;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.toggle-indicators-btn:hover {
    background: rgba(0, 212, 255, 0.2);
}


.floating-modal {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #16213e;
    border: 2px solid #00d4ff;
    border-radius: 8px;
    padding: 5px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.floating-modal div p {
    color: #00d4ff;
    font-size: 1.5rem;
    margin: 5px;
    outline: 2px solid #00d4ff;
    border-radius: 6px;
}

.floating-modal div p:hover {
    background: #00d4ff;
    color: #16213e;
    outline: 2px solid #00d4ff;
    transform: scale(1.1);
    cursor: pointer;
}

#close-modal-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    align-self: flex-start;
}



.controls {
    display: flex;
    gap: 15px;
    align-items: center;
    position: relative;
}

.filter-chip-bar,
.filter-chip-editor {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 44px;
    padding: 6px 8px;
    border: 1px solid #00d4ff;
    border-radius: 8px;
    background: #16213e;
    min-width: 260px;
}

.filter-chip-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(0, 212, 255, 0.45);
    background: rgba(0, 212, 255, 0.15);
    color: #a7efff;
    font-size: 0.82rem;
    max-width: 250px;
}

.filter-chip span {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-chip-remove {
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    line-height: 1;
    padding: 0;
    background: rgba(0, 0, 0, 0.25);
    color: #dff9ff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.filter-chip-remove:hover {
    background: rgba(255, 99, 99, 0.85);
    color: #fff;
    transform: none;
}

.filter-chip-input {
    min-width: 160px;
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: #eee;
    font-size: 0.9rem;
}

.filter-chip-input::placeholder {
    color: #7fb9c4;
}

.filter-chip-empty {
    color: #6a8f98;
    font-size: 0.82rem;
}

input[type="date"] {
    padding: 10px 15px;
    border: 2px solid #00d4ff;
    border-radius: 8px;
    background: #16213e;
    color: #eee;
    font-size: 1rem;
    cursor: pointer;
}

input[type="time"] {
    padding: 10px 10px;
    border: 2px solid #00d4ff;
    border-radius: 8px;
    background: #16213e;
    color: #eee;
    font-size: 1rem;
    cursor: pointer;
    width: 7rem;
}

.time-separator {
    color: #aaa;
    font-size: 1.1rem;
    user-select: none;
}

button {
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    background: #00d4ff;
    color: #1a1a2e;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: #00a8cc;
    transform: translateY(-2px);
}

button:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
}

.stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-card {
    background: #16213e;
    padding: 15px 25px;
    border-radius: 10px;
    border-left: 4px solid #00d4ff;
}

.stat-card h3 {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 1.5rem;
    font-weight: 600;
    color: #00d4ff;
}

.loading {
    text-align: center;
    padding: 50px;
    color: #888;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #16213e;
    border-top-color: #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #16213e;
    border-radius: 10px;
    overflow: visible;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #2a2a4a;
}

th {
    background: #0f3460;
    color: #00d4ff;
    font-weight: 600;
}

.sortable-header {
    user-select: none;
    transition: background 0.2s ease;
}

.sortable-header:hover {
    background: #164a73;
}

.sortable-header:active {
    background: #0d2d4a;
}

#venueSortIndicator {
    font-size: 0.9em;
    margin-left: 4px;
}

tr:hover {
    background: #1f2b4a;
}

tr:last-child td {
    border-bottom: none;
}

.site-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #0f3460;
    color: #00d4ff;
}

.practice-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    background: #ffa500;
    color: #000;
    margin-left: 6px;
    vertical-align: middle;
}

.time-badge {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #4ade80;
    cursor: help;
}

/* Camera status icon styles */
.camera-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 8px;
    vertical-align: middle;
    transition: transform 0.2s ease;
    position: relative;
}

.camera-status:hover {
    transform: scale(1.2);
}

.camera-status:has(.vdcc-confirmation-popup) {
    transform: scale(1);
    z-index: 10001;
}

.camera-status:has(.vdcc-confirmation-popup):hover {
    transform: scale(1);
}

.camera-icon {
    width: 20px;
    height: 20px;
}

.camera-status.status-off,
.camera-status:not([class*="status-"]) {
    color: #278549;
}

.camera-status.status-disconnected {
    color: #bb313d;
}

.camera-status.status-on {
    color: #b82e3a;
}

.camera-status.status-busy {
    color: #71544c; /* Orange color for busy cameras */
}

.camera-status.status-unknown {
    color: #888;
}

.camera-status.status-state-down {
    color: #ffa12e;
    border: 2px solid currentColor;
    border-radius: 50%;
    width: 24px;
    height: 24px;
}

.camera-status.status-preparing {
    color: #00d4ff;
}

.loading-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.loading-dots .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: currentColor;
    animation: dotBounce 1.2s infinite ease-in-out;
}

.loading-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.error {
    background: #ff4757;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.table-container {
    overflow: visible;
    border-radius: 10px;
}


.jira-link {
    padding-top: 10px;
    padding-bottom: 10px;
    color: gold;
    display: block;
}

.broadcast-link a {
    color: #00d4ff;
    text-decoration: none;
}

.competition-link a {
    color: #00d4ff;
}

.competition-name {
    display: block;
    text-decoration: none;
    font-size: small;
    color: #888;
}

.venue-link {
    color: #00d4ff;
    text-decoration: none;
}
.broadcast-row.issue-status-ok td,
.broadcast-row.issue-status-ok .time-badge,
.broadcast-row.issue-status-ok .competition-link a {
    color: #000 !important;
}

.broadcast-row.issue-status-ok td,
.broadcast-row.issue-status-ok .time-badge,
.broadcast-row.issue-status-ok .venue-link {
    color: #000 !important;
}

.broadcast-link a:hover,
.venue-link:hover {
    text-decoration: underline;
}

/* Status buttons column */
.status-col {
    width: 160px;
    text-align: center;
}

.status-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.status-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
}

.ok-btn {
    background: #4ade80;
    color: #000;
}

.ok-btn:hover {
    background: #22c55e;
}

.issue-btn {
    background: #ff4757;
    color: #fff;
}

.issue-btn:hover {
    background: #ff1a1a;
}

/* Expand column */
.expand-col {
    width: 60px;
    text-align: center;
}

.expand-btn {
    background: transparent;
    border: 1px solid #555;
    border-radius: 4px;
    color: #888;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.2s;
}

.expand-btn:hover {
    background: #333;
    color: #fff;
}

.expand-btn{
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Details row */
.details-row {
    background: #1a1a2e !important;
}

.details-row td {
    padding: 0 !important;
    border-top: none !important;
}

/* Comment preview row */
.comment-preview-row {
    background: rgba(0, 212, 255, 0.05) !important;
}

.comment-preview-row td {
    padding: 0 !important;
    border-top: none !important;
    border-bottom: 1px dotted;
}

/* Tooltip info row */
.tooltip-info-row {
    background: rgba(255, 165, 0, 0.08) !important;
}

.tooltip-info-row td {
    padding: 0 !important;
    border-top: none !important;
}

.tooltip-info {
    padding: 4px 20px;
    font-size: 0.7rem;
    color: #ffa500;
    border-left: 4px solid rgba(255, 165, 0, 0.4);
    background: rgba(255, 165, 0, 0.05);
    font-style: italic;
}

.comment-preview {
    padding: 6px 20px;
    font-size: 0.75rem;
    color: #aaa;
    border-left: 4px solid rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.preview-comment-item {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.comment-preview strong {
    color: #00d4ff;
    font-size: 0.8rem;
}

.preview-issue-type {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
}

.preview-comment-text {
    color: #ddd;
    font-style: italic;
    flex: 1;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-all;
    min-width: 0;
}

.preview-more-indicator {
    color: #00d4ff;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 2px;
}

.details-content {
    display: flex;
    gap: 30px;
    padding: 15px 20px;
    background: #16213e;
    border-left: 4px solid #555;
    flex-wrap: wrap;
    flex-direction:column;
}

.detail-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-group label {
    color: #888;
    font-size: 0.85rem;
}

.issue-select {
    padding: 8px 12px;
    border: 2px solid #333;
    border-radius: 6px;
    background: #1a1a2e;
    color: #eee;
    font-size: 0.9rem;
    min-width: 150px;
}

.issue-select:focus {
    border-color: #00d4ff;
    outline: none;
}

.comments-input {
    padding: 8px 12px;
    border: 2px solid #333;
    border-radius: 6px;
    background: #1a1a2e;
    color: #eee;
    font-size: 0.9rem;
    min-width: 300px;
}

.comments-input:focus {
    border-color: #00d4ff;
    outline: none;
}

/* Issue status row styles */
.broadcast-row {
    position: relative;
    overflow: visible;
}

.broadcast-row.issue-status-yes {
    background-color: #d13c48 !important;
}

.broadcast-row.issue-status-yes td,
.broadcast-row.issue-status-yes .time-badge,
.broadcast-row.issue-status-yes .broadcast-link a {
    color: #fff !important;
}

.broadcast-row.issue-status-yes .expand-arrow {
    color: #0037ff !important;
}

.broadcast-row.issue-status-ok {
    background-color: #4ade80 !important;
}

.broadcast-row.issue-status-ok td,
.broadcast-row.issue-status-ok .time-badge,
.broadcast-row.issue-status-ok .broadcast-link a {
    color: #000 !important;
}

.broadcast-row.issue-status-ok .expand-arrow {
    color: #ff0000 !important;
}

.broadcast-row.issue-status-no {
    background-color: #4a4a4a !important;
}

.broadcast-row.issue-status-no td,
.broadcast-row.issue-status-no .time-badge,
.broadcast-row.issue-status-no .broadcast-link a {
    color: #888 !important;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }
    
    .controls {
        width: 100%;
    }
    
}

/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    padding: 10px 20px;
    background: #16213e;
    border: 2px solid #00d4ff;
    color: #00d4ff;
}

.dropdown-btn:hover {
    background: #1f2b4a;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 300px;
    background: #16213e;
    border: 2px solid #00d4ff;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    margin-top: 5px;
}

.dropdown-content.show {
    display: block;
}

/* Playsites dropdown at bottom of page - appears above */
#playsitesDropdown {
    bottom: 100%;
    top: auto;
    right: auto;
    left: 230%;
    transform: translateX(-50%);
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 5px;
    margin-top: 0;
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #2a2a4a;
    color: #00d4ff;
    font-weight: 600;
}

.dropdown-header .add-btn {
    padding: 5px 12px;
    font-size: 0.85rem;
    background: #4ade80;
    color: #000;
}

.dropdown-header .add-btn:hover {
    background: #22c55e;
}

/* User dropdown styles */
.user-dropdown {
    min-width: 250px;
}

.user-info-header {
    padding: 15px;
    border-bottom: 1px solid #2a2a4a;
    text-align: center;
}

.user-email {
    color: #00d4ff;
    font-size: 0.9rem;
    word-break: break-all;
}

.user-menu {
    padding: 10px;
}

.logout-link {
    display: block;
    padding: 10px 15px;
    color: #ff4757;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    transition: background 0.2s;
}

.ssh-link {
    display: block;
    padding: 10px 15px;
    color: #00d4ff;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    transition: background 0.2s;
}
.ssh-link:hover {
    background: #2a2a4a;
}

.logout-link:hover {
    background: #2a2a4a;
}

.dropdown-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
}

.playsite-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 6px;
    margin-bottom: 5px;
    background: #1a1a2e;
    cursor: pointer;
    transition: background 0.2s;
}

.playsite-item:hover {
    background: #2a2a4a;
}

.playsite-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    margin-right: 10px;
    flex-shrink: 0;
}

.playsite-name {
    flex-grow: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.delete-playsite-btn {
    padding: 2px 8px;
    font-size: 1rem;
    background: transparent;
    color: #ff4757;
    border: 1px solid #ff4757;
}

.delete-playsite-btn:hover {
    background: #ff4757;
    color: #fff;
}

.loading-text, .empty-text {
    color: #888;
    text-align: center;
    padding: 20px;
}

.error-text {
    color: #ff4757;
    text-align: center;
    padding: 20px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #16213e;
    border: 2px solid #00d4ff;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #2a2a4a;
}

.modal-header h3 {
    color: #00d4ff;
    margin: 0;
}

.close-btn {
    background: transparent;
    color: #888;
    font-size: 1.5rem;
    padding: 0 5px;
    border: none;
}

.close-btn:hover {
    color: #ff4757;
    background: transparent;
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #888;
    font-size: 0.9rem;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #333;
    border-radius: 8px;
    background: #1a1a2e;
    color: #eee;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
}

.form-group input[type="text"]:focus {
    border-color: #00d4ff;
    outline: none;
}

.form-group input[type="color"] {
    width: 100%;
    height: 50px;
    padding: 5px;
    border: 2px solid #333;
    border-radius: 8px;
    background: #1a1a2e;
    cursor: pointer;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #2a2a4a;
}

.cancel-btn {
    background: #555;
    color: #eee;
}

.cancel-btn:hover {
    background: #666;
}

.save-btn {
    background: #4ade80;
    color: #000;
}

.save-btn:hover {
    background: #22c55e;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #16213e, #1a1a2e);
    border: 2px solid #4ade80;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(74, 222, 128, 0.3);
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-icon {
    font-size: 1.5rem;
}

.toast-message {
    color: #eee;
    font-weight: 500;
    white-space: pre-line;
    max-height: 240px;
    max-width: 400px;
    overflow-y: auto;
}

.toast-btn {
    background: #4ade80;
    color: #000;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.toast-btn:hover {
    background: #22c55e;
}

.toast-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

.toast-close:hover {
    color: #eee;
}

/* Refresh Card */
.refresh-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.refresh-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.refresh-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 5px 5px;
    font-size: 1rem;
    background: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.report-btn {
    padding: 8px 16px;
    color: #000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.report-btn:hover {
    transform: translateY(-2px);
}

.fiha-test-btn {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #000;
    background: #288a4c;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity 0.2s ease;
    vertical-align: middle;
    
}


.fiha-test-btn:hover {
    opacity: 0.85;
}

.fiha-test-btn.fiha-test-skipped {
    background: #555;
    color: #ccc;
    cursor: help;
}

.refresh-btn:hover {
    transform: rotate(180deg);
    background: none;
}

.refresh-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.refresh-btn.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Comments Section */
.comments-section {
    flex: 2;
}

.comments-list {
    max-height: 150px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 10px;
    background: #1a1a2e;
    border-radius: 6px;
    padding: 8px;
}

.comment-item {
    padding: 8px;
    margin-bottom: 6px;
    background: #16213e;
    border-radius: 4px;
    border-left: 3px solid #00d4ff;
    position: relative;
}

.comment-item:last-child {
    margin-bottom: 0;
}

.comment-item strong {
    color: #00d4ff;
    font-size: 0.85rem;
}

.delete-comment-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.2s, color 0.2s;
}

.delete-comment-btn:hover {
    opacity: 1;
    color: #ff4757;
}

.comment-time {
    color: #888;
    font-size: 0.75rem;
    margin-left: 10px;
}

.issue-type-label {
    display: inline-block;
    background: #00d4ff;
    color: #000;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    text-transform: capitalize;
}

.comment-item p {
    margin: 5px 0 0 0;
    color: #eee;
    font-size: 0.9rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
    max-width: 100%;
}

.special-info-section {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 165, 0, 0.3);
}

.special-info-user-row {
    background: transparent;
}

.special-info-user-container {
    background: rgba(255, 165, 0, 0.08);
}

.special-info-user-item {
    padding: 8px 20px;
    color: #ffa500;
    font-size: 0.7rem;
    font-style: italic;
    border-left: 3px solid #ffa500;
    position: relative;
    padding-right: 40px;
}

.delete-special-info-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
    background: none;
    border: none;
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.2s, color 0.2s;
}

.delete-special-info-btn:hover {
    opacity: 1;
    color: #ff4757;
}

.special-info-item {
    padding: 8px 8px 8px 30px;
    margin-bottom: 6px;
    background: rgba(255, 165, 0, 0.08);
    border-radius: 4px;
    border-left: 3px solid #ffa500;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.special-info-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.special-info-text {
    color: #ffa500;
    font-size: 0.9rem;
    font-style: italic;
    flex: 1;
}

.comment-input-row {
    display: flex;
    gap: 8px;
}

.comment-backoffice-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 0.85rem;
    color: #c7d2fe;
}

.comment-backoffice-toggle input[type="checkbox"] {
    accent-color: #00d4ff;
}

.comment-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #333;
    border-radius: 6px;
    background: #16213e;
    color: #eee;
    font-size: 0.9rem;
}

.comment-input:focus {
    outline: none;
    border-color: #00d4ff;
}





.add-comment-btn {
    padding: 8px 16px;
    background: #00d4ff;
    color: #000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.add-comment-btn:hover {
    background: #00b8e6;
}

.comment-count {
    background: #00d4ff;
    color: #000;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

.backoffice-sync-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 16px;
    padding: 0 5px;
    margin: 0 4px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #0b1622;
    background: #8be9fd;
    border: 1px solid rgba(139, 233, 253, 0.45);
    vertical-align: middle;
}

.delete-manual-broadcast-btn {
    background: none;
    border: none;
    color: #ff4757;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 5px;
    margin-left: 8px;
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
    vertical-align: middle;
}

.delete-manual-broadcast-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* Loading state for rows */
.loading-row {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.row-loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 212, 255, 0.2);
    border-top: 4px solid #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* VDCC Success Indicator */
.vdcc-success-indicator {
    background: rgba(22, 33, 62, 0.5);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    font-size: 1rem;
    color: #4ade80;
    font-weight: bold;
    animation: fadeInOut 2s ease-in-out;
    pointer-events: none;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
    80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

/* VDCC Failure Indicator */
.vdcc-failure-indicator {
    background: rgba(255, 71, 87, 0.2);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    font-size: 1rem;
    color: #ff4757;
    font-weight: bold;
    animation: fadeInOut 2s ease-in-out;
    pointer-events: none;
}

/* VDCC Confirmation Popup */
.vdcc-confirmation-popup {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10002;
    animation: popupSlideIn 0.2s ease-out;
    animation-fill-mode: forwards;
    overflow-y:visible;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.vdcc-popup-content {
    background: #1a1a2e;
    border: 2px solid #00d4ff;
    border-radius: 8px;
    padding: 16px;
    min-width: 250px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    opacity: 1;
    overflow-y: visible;
}

.vdcc-popup-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #00d4ff;
    margin-bottom: 12px;
    text-align: center;
}

.vdcc-popup-info {
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.vdcc-popup-info strong {
    color: #00d4ff;
    margin-right: 4px;
}

.vdcc-popup-status-live {
    color: #ff4757 !important;
    font-size: 1.1rem;
}

.vdcc-popup-status-not-live {
    color: #4ade80 !important;
    font-size: 1.1rem;
}

.vdcc-popup-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.vdcc-popup-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.vdcc-cancel-btn {
    background: #555;
    color: #fff;
}

.vdcc-cancel-btn:hover {
    background: #666;
}

.vdcc-confirm-btn {
    background: #00d4ff;
    color: #1a1a2e;
}

.vdcc-confirm-btn:hover {
    background: #00b8d4;
}

/* VDCC Light Mode */
body.light-mode .vdcc-popup-content {
    background: #ffffff;
    border-color: #0077cc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body.light-mode .vdcc-popup-title {
    color: #0077cc;
}

body.light-mode .vdcc-popup-info strong {
    color: #0077cc;
}

body.light-mode .vdcc-cancel-btn {
    background: #e0e0e0;
    color: #333;
}

body.light-mode .vdcc-cancel-btn:hover {
    background: #d0d0d0;
}

body.light-mode .vdcc-confirm-btn {
    background: #0077cc;
    color: #ffffff;
}

body.light-mode .vdcc-confirm-btn:hover {
    background: #0066b3;
}

/* Filter Management */
.filter-manage-btn {
    padding: 10px 15px;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid #00d4ff;
    border-radius: 8px;
    color: #00d4ff;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    margin-left: -2px;
}

.filter-manage-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}


.navbar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid #2a2a4a;
}

.navbar-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
}

.navbar-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.navbar-link {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid #00d4ff;
    color: #00d4ff;
    border-radius: 4px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1;
}

.navbar-link:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.navbar-link.active {
    background: rgba(0, 212, 255, 0.25);
    font-weight: 700;
}

body.light-mode .navbar {
    border-bottom-color: #c9d4e3;
}

body.light-mode .navbar-link {
    border-color: #0077cc;
    color: #0077cc;
}

body.light-mode .navbar-link {
    background: rgba(0, 119, 204, 0.1);
}

body.light-mode .navbar-link:hover,
body.light-mode .navbar-link.active {
    background: rgba(0, 119, 204, 0.2);
}

.filters-section {
    margin-bottom: 20px;
}

.filter-builder-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.filter-builder-col {
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    background: #111827;
    overflow: hidden;
}

.filter-builder-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid #2a2a4a;
}

.filter-builder-list {
    max-height: 180px;
    overflow-y: auto;
}

.filter-builder-summary {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-builder-chip {
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid rgba(0, 212, 255, 0.45);
    color: #a7efff;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.78rem;
}

.filter-builder-chip.legacy {
    background: rgba(255, 165, 0, 0.16);
    border-color: rgba(255, 165, 0, 0.55);
    color: #ffd391;
}

.filter-builder-legacy {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #ffcf8a;
}

.filters-section h4 {
    color: #00d4ff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.saved-filters-list {
    max-height: 300px;
    overflow-y: auto;
    background: #16213e;
    border-radius: 8px;
    padding: 10px;
}

.filter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a2e;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.filter-item:hover {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.05);
}

@media (max-width: 920px) {
    .filter-builder-grid {
        grid-template-columns: 1fr;
    }

    .filter-chip-bar,
    .filter-chip-editor {
        width: 100%;
        min-width: 0;
    }
}

.filter-info {
    flex: 1;
    cursor: pointer;
}

.filter-info strong {
    color: #00d4ff;
    display: inline-block;
    margin-bottom: 4px;
}

.filter-text {
    color: #888;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;

}

.filter-default-badge {
    display: inline-block;
    background: #ffd700;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 8px;
    vertical-align: middle;
}

.filter-actions {
    display: flex;
    gap: 8px;
}

.filter-actions button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #555;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-actions button:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
}

/* Add Broadcast Section */
.add-broadcast-section {
    background: #16213e;
    border: 2px solid #00d4ff;
    border-radius: 12px;
    padding: 15px 20px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.add-broadcast-section label {
    color: #00d4ff;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

#addBroadcastInput {
    width: 500px;
    padding: 10px 15px;
    border: 2px solid #333;
    border-radius: 8px;
    background: #1a1a2e;
    color: #eee;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
}

#addBroadcastInput:focus {
    border-color: #00d4ff;
    outline: none;
}

#addBroadcastInput::placeholder {
    color: #666;
    font-size: 0.85rem;
}

.add-broadcast-btn {
    padding: 10px 25px;
    background: #4ade80;
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-broadcast-btn:hover {
    background: #22c55e;
    transform: translateY(-2px);
}

.hidden-broadcasts-section {
    background: #16213e;
    border: 2px solid #00d4ff;
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 12px;
}

.hidden-broadcasts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.hidden-broadcasts-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hidden-broadcasts-header h3 {
    color: #00d4ff;
    font-size: 0.95rem;
}

.hidden-broadcasts-count {
    background: #2a2a4a;
    color: #eee;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.hidden-broadcasts-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
}

.hidden-broadcasts-toggle-btn {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    border: 1px solid #00d4ff;
    background: transparent;
    color: #00d4ff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hidden-broadcasts-toggle-btn:hover {
    background: rgba(0, 212, 255, 0.2);
}

.hidden-broadcast-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #1a1a2e;
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    padding: 7px 10px;
}

.hidden-broadcast-label {
    color: #ddd;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hide-broadcast-btn,
.unhide-broadcast-btn {
    padding: 5px 9px;
    border-radius: 6px;
    border: 1px solid #ffb347;
    color: #ffb347;
    background: transparent;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hide-broadcast-btn:hover,
.unhide-broadcast-btn:hover {
    background: #ffb347;
    color: #111;
}

.details-hide-broadcast-btn {
    margin-top: 8px;
    align-self: flex-start;
}

/* Video Preview Styles */
.video-loading-text {
    color: #888;
}

.video-error-text {
    color: #ff4757;
}

.video-error-response {
    background: #2d2d2d;
    color: #fff;
    padding: 10px;
    overflow: auto;
    max-height: 200px;
    font-size: 0.85em;
}

.video-library-code {
    background: #2d2d2d;
    color: #fff;
    padding: 5px;
    display: block;
    margin: 5px 0;
}


.video-container {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-player {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 6px;
    object-fit: cover;
}

.video-stream-info {
    font-size: 0.9em;
    color: #888;
    margin-top: 5px;
}

.video-stream-link {
    color: #0077cc;
}

.video-status {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85em;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 12px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
}

.video-status-loading {
    color: #888;
}

.video-status-ready {
    color: #4ade80;
}

.video-status-error {
    color: #ff4757;
}

.video-status-warning {
    color: #ffa500;
}

.video-skeleton {
    width: 100%;
    max-width: 640px;
    min-height: 360px;
    background: #1a1a2e;
    border: 2px solid #333;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 10px auto;
    overflow: hidden;
}

.video-skeleton.dual-stream {
    max-width: 1400px;
}

body.light-mode .video-skeleton {
    background: #e9ecef;
    border-color: #ccc;
}

.video-skeleton::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    z-index: 0;
}

.video-skeleton.loading::before {
    display: none;
}

.video-load-btn {
    padding: 12px 24px;
    background: #0077cc;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 1;
}

.video-load-btn:hover {
    background: #0099ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 204, 0.4);
}

.video-skeleton .video-player {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 6px;
}

.video-dual-container {
    display: flex;
    gap: 4px;
    width: 100%;
    height: 100%;
}

.video-player-dual {
    flex: 0 0 640px;
    width: 640px !important;
    height: 360px !important;
}


.video-skeleton .video-status {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 12px;
    border-radius: 4px;
    z-index: 2;
}

.test-btn {
    width: 10%;
    padding: 8px 16px;
}

/* Online Users Display */
.online-users {
    position: absolute;
    right: 0;
    top: 240px;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-direction: row-reverse;
    z-index: 999;
}

.user-ball {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 10px;
    cursor: pointer;
    position: relative;
    outline: 2px solid #4ade80;
}

.owner-ball {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
    color: #000;
    outline-color: #ff4757;
}


.user-ball:hover {
    transform: scale(1.2);
}

.user-ball:hover::after {
    content: attr(data-email);
    position: absolute;
    bottom: -35px;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 11px;
    font-weight: normal;
    z-index: 1001;
    pointer-events: none;
}

body.light-mode .user-ball {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body.light-mode .user-ball:hover::after {
    background: rgba(0, 0, 0, 0.8);
}

/* ==================== Offline Board ==================== */

.offline-board-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.offline-board-header h1 {
    margin: 0;
}

.offline-board-subtitle {
    font-size: 0.9rem;
    color: #8b93a7;
}

body.light-mode .offline-board-subtitle {
    color: #666;
}

.offline-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    width: 100%;
    padding-bottom: 24px;
}

.offline-date-divider {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    color: #9aa3b5;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.offline-date-divider:not(:first-child) {
    margin-top: 20px;
    padding-top: 20px;
}

.offline-date-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #3a3f4b;
}

body.light-mode .offline-date-divider {
    color: #666;
}

body.light-mode .offline-date-divider::after {
    background: #d8dbe3;
}

body.light-mode .offline-date-divider:not(:first-child) {
    border-top-color: #d8dbe3;
}

.offline-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 180px;
    padding: 24px 16px;
    border-radius: 12px;
    border: 3px solid #3a3f4b;
    text-align: center;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* OFFLINE cards — thick red border + red status text */
.card-offline {
    background: #22252e;
    border-color: #ff5c5c;
}

.card-offline .card-status {
    color: #ff5c5c;
}

/* STATE DOWN cards — thick amber border + amber status text */
.card-state-down {
    background: #22252e;
    border-color: #ffb347;
}

.card-state-down .card-status {
    color: #ffb347;
}

/* UNKNOWN cards — blue-grey border + status text */
.card-unknown {
    background: #22252e;
    border-color: #6c8cff;
}

.card-unknown .card-status {
    color: #6c8cff;
}

.card-clickable {
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.card-clickable:hover {
    border-color: #ffffff;
    transform: translateY(-2px);
}

.card-jira-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #2684ff;
    opacity: 0.9;
}

.card-status {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.card-venue {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
}

.card-camera-type {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #9aa3b5;
    text-align: center;
}

body.light-mode .card-camera-type {
    color: #777;
}

.card-camera-short {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #9aa3b5;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

body.light-mode .card-camera-short {
    color: #777;
}

.card-time {
    font-size: 0.85rem;
    color: #8b93a7;
    white-space: nowrap;
}

body.light-mode .offline-card {
    background: #ffffff;
    border: 1px solid #d8dbe3;
}

body.light-mode .card-offline {
    border: 3px solid #ff5c5c;
}

body.light-mode .card-state-down {
    border: 3px solid #ffb347;
}

body.light-mode .card-unknown {
    border: 3px solid #6c8cff;
}

body.light-mode .card-venue {
    color: #1a1a2e;
}

body.light-mode .card-time {
    color: #666;
}

@media (max-width: 1400px) {
    .offline-board {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .offline-board {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .offline-board {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .offline-board {
        grid-template-columns: 1fr;
    }
}
