body {
    font-family: "MS Sans Serif", Geneva, sans-serif;
    background-color: #c0c0c0;
    color: #000;
    margin: 0;
    padding: 0;
    font-size: 12px;
}

/* New Header Styles */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    background-color: #000080;
    color: #fff;
    border-bottom: 2px outset #fff;
}

.header-left {
    display: flex;
    align-items: center;
}

.app-title {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.3);
}

.header-right {
    display: flex;
    align-items: center;
}

/* Channel List View Styles */
.channel-list-view {
    padding: 20px;
    min-height: calc(100vh - 200px);
}

.channel-list-content {
    max-width: 1200px;
    margin: 0 auto;
}

.logged-out-message {
    text-align: center;
    padding: 60px 20px;
}

.welcome-message h2 {
    font-size: 28px;
    color: #000080;
    margin-bottom: 16px;
}

.welcome-message p {
    font-size: 16px;
    margin-bottom: 24px;
    color: #333;
}

.primary-btn {
    background-color: #000080;
    color: white;
    border: 2px outset #fff;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    font-family: inherit;
}

.primary-btn:hover {
    background-color: #0040ff;
}

.secondary-btn {
    background-color: #c0c0c0;
    color: #000;
    border: 2px outset #fff;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
}

.secondary-btn:hover {
    background-color: #e0e0e0;
}

.channel-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px inset #fff;
}

.channel-list-header h2 {
    font-size: 24px;
    color: #000080;
    margin: 0;
}

.channels-container {
    /* Simple container for the table */
}

/* Channels Table Styles */
.channels-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border: 2px outset #fff;
    font-family: "MS Sans Serif", Geneva, sans-serif;
    font-size: 12px;
}

.channels-table th {
    background-color: #c0c0c0;
    border: 1px solid #808080;
    padding: 8px 12px;
    text-align: left;
    font-weight: bold;
    color: #000;
    white-space: nowrap;
}

.channels-table td {
    border: 1px solid #808080;
    padding: 8px 8px;
    vertical-align: middle;
    background-color: #fff;
}

.channel-row:hover {
    background-color: #e6f3ff;
}

.channel-row:hover td {
    background-color: #e6f3ff;
}

.channel-id {
    font-weight: bold;
    color: #000080;
    min-width: 70px;
}

.channel-name {
    min-width: 150px;
    color: #000;
}

.chain-name {
    min-width: 150px;
    color: #000;
}


/* Channel status column removed */


/* Status indicator styles removed - no longer needed */

.entry-path {
    font-family: monospace;
    font-size: 11px;
    min-width: 220px;
    max-width: none;
}

.entry-path-text {
    cursor: help;
}

.channel-actions {
    text-align: center;
    min-width: 120px;
}

.enter-channel-btn {
    background-color: #000080;
    color: white;
    border: 2px outset #fff;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
}

.enter-channel-btn:hover:not(.disabled) {
    background-color: #0040ff;
}

.enter-channel-btn.disabled {
    background-color: #808080;
    color: #c0c0c0;
    cursor: not-allowed;
    border: 2px inset #fff;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
    font-size: 11px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: bold;
    color: #000;
    min-width: 80px;
}

.info-value {
    color: #000;
    text-align: right;
    font-family: "MS Sans Serif", Geneva, sans-serif;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kuri-display {
    max-width: 140px;
}

.channel-actions {
    margin-top: 12px;
}

.enter-session-btn {
    background-color: #c0c0c0;
    color: #000;
    border: 2px outset #fff;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    font-family: "MS Sans Serif", Geneva, sans-serif;
    width: 100%;
}

.enter-session-btn:hover:not(.disabled) {
    border: 2px inset #fff;
}

.enter-session-btn.disabled {
    background-color: #808080;
    color: #c0c0c0;
    cursor: not-allowed;
    border: 2px outset #808080;
}

.no-channels-message {
    text-align: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border: 2px inset #fff;
    color: #666;
}

.no-channels-message h3 {
    margin: 0 0 8px 0;
    color: #333;
}

.no-channels-message p {
    margin: 0;
    font-size: 14px;
}

/* Session Navigation */
.session-nav {
    padding: 8px 20px;
    background-color: #e0e0e0;
    border-bottom: 2px inset #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-btn {
    background-color: #c0c0c0;
    color: #000;
    border: 2px outset #fff;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 4px;
}

.back-btn:hover {
    background-color: #e0e0e0;
}

.session-info-left {
    display: flex;
    align-items: center;
}

.session-info-right {
    display: flex;
    align-items: center;
}

.current-channel-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.channel-title {
    font-size: 16px;
    color: #000080;
    font-weight: bold;
}

.channel-details {
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

/* View State Management */
.channel-list-view.hidden,
.lbfs-session-view.hidden {
    display: none !important;
}

.lbfs-session-view.active {
    display: block;
}

.container {
    display: flex;
    flex-wrap: wrap;
}

.app-container {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 120px); /* Account for breadcrumbs and menu */
}

.sidebar {
    width: 250px;
    background-color: #fff;
    border-right: 2px outset #fff;
    border-bottom: 2px outset #fff;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 12px;
    background-color: #000080;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    border-bottom: 2px outset #fff;
}

.sidebar-header .material-icons {
    font-size: 18px;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 4px;
}

.sidebar-item::before {
    content: '';
    width: 24px;
    height: 24px;
    background-color: #68b1d1;
    display: inline-block;
    flex-shrink: 0;
}

.sidebar-item:hover {
    background-color: #e6e6e6;
}

.sidebar-item.selected {
    background-color: #000080;
    color: #fff;
}

.sidebar-item .material-icons {
    display: none; /* Hide the material icon */
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
}

.main-container {
    border: 2px outset #fff;
    background-color: #fff;
    margin: 10px;
    padding: 10px;
    flex: 1;
    min-height: 200px;
}

/* Responsive Design for Smaller Screens */
@media (max-width: 600px) {
    .main-container, .actions-log {
        flex: 0 0 100%; /* Full width on small screens */
        margin-left:10px;
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 2px outset #fff;
    }
    
    .main-container {
        margin: 10px;
    }
}

#breadcrumbs {
    padding: 8px 16px;
    background-color: #000080;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    overflow-x: auto;
    white-space: nowrap;
    font-family: inherit;
}

.breadcrumbs a {
    color: #fff;
    text-decoration: none;
    margin-right: 5px;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.selected {
    background-color: #000080;
    color: #fff;
}

/* Ensure selected file and folder names are white */
.selected .folder-name,
.selected .file-name,
.folder.selected .folder-name,
.file.selected .file-name {
    color: #fff !important;
}

.folder, .file {
    cursor: default;
    margin-bottom: 5px;
}

.folder .icon, .file .icon {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    display: block;
}

.folder .icon {
    width: 48px;
    height: 48px;
    background-color: #68b1d1;
    display: inline-block;
}

.file .icon, .action-file .icon {
    width: 32px;
    height: 48px;
    border: 2px solid black;
    background-color: #c1f5fc;
    position: relative;
    display: inline-block;
}

.file .icon:before, .file .icon:after, .action-file .icon:before, .action-file .icon:after {
    content: '';
    position: absolute;
    left: 5px;
    right: 5px;
    height: 2px;
    background-color: black;
}

.file .icon:before, .action-file .icon:before {
    top: 15px;
}

.file .icon:after, .action-file .icon:after {
    top: 25px;
}

.folder-name, .file-name {
    max-width: 100%;
    margin-top: 5px;
    text-align: center;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 2.5em;
}

/* Pending remove styling - items marked for removal */
.pending-remove {
    opacity: 0.25 !important; /* 25% opacity as requested */
    pointer-events: auto; /* Still allow interaction */
    transition: opacity 0.2s ease;
}

.pending-remove:hover {
    opacity: 0.4 !important; /* Slightly more visible on hover */
}

.icon-mode .folder.selected .folder-name, 
.icon-mode .file.selected .file-name {
    -webkit-line-clamp: unset;
    height: auto;
    z-index: 2;
}

.folder-mode .folder.selected .folder-name, 
.folder-mode .file.selected .file-name {
    -webkit-line-clamp: unset;
    z-index: 2;
}

.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #f0f0f0;
    border-bottom: 1px solid #ddd;
}

.main-menu {
    display: flex;
    gap: 10px;
    align-items: center;
}

button {
    background-color: #c0c0c0;
    color: #000;
    border: 1px solid #000;
    border-width: 1px;
    padding: 2px 6px;
    border-radius: 0;
    font-family: "MS Sans Serif", Geneva, sans-serif;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 1px 1px 0 #ffffff inset, -1px -1px 0 #808080 inset;
}

button:hover {
    background-color: #d0d0d0;
}

button:active {
    box-shadow: -1px -1px 0 #ffffff inset, 1px 1px 0 #808080 inset;
    background-color: #b0b0b0;
}

button:disabled {
    background-color: #c0c0c0;
    color: #808080;
    box-shadow: 1px 1px 0 #ffffff inset, -1px -1px 0 #808080 inset;
    cursor: not-allowed;
}


.mode-selection {
    text-align: right;
}

.mode-label {
    cursor: pointer;
    color: blue;
    margin-left: 5px;
    margin-right: 5px;
    text-decoration: underline;
}

.selected-mode {
    text-decoration: none;
    color: black;
}

/* Icon Mode */
.icon-mode .folder, 
.icon-mode .file {
    width: 120px;
    padding: 5px;
    border-radius: 3px;
    text-align: center;
    display: inline-block;
    vertical-align: top;
    cursor: default;
    overflow: hidden;
    word-wrap: break-word;
}

/* Folder Mode */
.folder-mode .folder, 
.folder-mode .file {
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    padding-left: 5px;
}

.folder-mode .icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.folder-mode .folder-name, 
.folder-mode .file-name {
    flex-grow: 1;
    text-align: left;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-pane {
    position: fixed;
    width: 25%;
    height: 300px;
    background-color: #fff;
    border: 2px outset #fff;
    z-index: 100;
    overflow-y: auto;
    resize: both;
    min-width: 200px;
    min-height: 200px;
    font-size: small;
    user-select: none; /* Prevent text selection while dragging */
}

.side-pane-header {
    background-color: #000080;
    color: #fff;
    padding: 5px;
    cursor: grab;
    user-select: none; /* Prevent text selection while dragging */
    touch-action: none; /* Prevent scrolling on touch devices */
}

.side-pane-header:active {
    cursor: grabbing;
}

/* Ensure content doesn't interfere with dragging */
.side-pane-content {
    pointer-events: auto;
    user-select: text; /* Allow text selection in content */
    padding: 10px;
    height: calc(100% - 30px); /* Account for header height */
    overflow-y: auto;
}

.info-content {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: auto;
    font-size: 14px;
    font-family: inherit;
}

.info-row {
    display: flex;
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

.info-label {
    width: 100px;
    padding-right: 12px;
    font-weight: normal;
    font-family: inherit;
}

.info-value {
    flex: 1;
    font-family: inherit;
}

.info-row:nth-child(odd) {
    background-color: #e9e9e9;
}

.info-row:nth-child(even) {
    background-color: #f9f9f9;
}

/* Style the messages panel */
#actions-log {
    width: 300px;
    height: 400px;
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    background-color: #fff;
    border: 2px outset #fff;
}

#actions-log .window-content {
    padding: 10px;
    height: calc(100% - 50px);  /* Increased from 41px to 50px to account for larger header */
    overflow-y: auto;
}

#message-list {
    font-size: 14px;
    font-family: inherit;
}

.action-item {
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

.action-item:last-child {
    border-bottom: none;
}

.action-text {
    word-break: break-word;
    line-height: 1.4;
}

/* Remove old actions-log styles */
.actions-log,
.actions-log-header,
.actions-log-content {
    display: none;
}

/* Loading Spinner */
.loading {
    position: fixed;
    z-index: 999;
    height: 2em;
    width: 2em;
    overflow: show;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    visibility: hidden;
}

/* High priority spinner for displaying above modals */
.loading.high-priority {
    z-index: 10001;
}

.loading:before {
    content: '';
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
}

.loading:not(:required) {
    font: 0/0 a;
    color: transparent;
    text-shadow: none;
    background-color: transparent;
    border: 0;
}

.loading:not(:required):after {
    content: '';
    display: block;
    font-size: 10px;
    width: 1em;
    height: 1em;
    margin-top: -0.5em;
    animation: spinner 1500ms infinite linear;
    border-radius: 0.5em;
    box-shadow: rgba(0, 0, 0, 0.75) 1.5em 0 0 0,
                rgba(0, 0, 0, 0.75) 1.1em 1.1em 0 0,
                rgba(0, 0, 0, 0.75) 0 1.5em 0 0,
                rgba(0, 0, 0, 0.75) -1.1em 1.1em 0 0,
                rgba(0, 0, 0, 0.75) -1.5em 0 0 0,
                rgba(0, 0, 0, 0.75) -1.1em -1.1em 0 0,
                rgba(0, 0, 0, 0.75) 0 -1.5em 0 0,
                rgba(0, 0, 0, 0.75) 1.1em -1.1em 0 0;
}

@keyframes spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.modal-content {
    background-color: #c0c0c0;
    padding: 10px;
    border: 1px solid #000;
    box-shadow: 1px 1px 0 #ffffff inset, -1px -1px 0 #808080 inset;
    min-width: 300px;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    font-family: "MS Sans Serif", Geneva, sans-serif;
    font-size: 12px;
}

.modal h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #000;
    font-size: 14px;
    font-weight: bold;
    font-family: "MS Sans Serif", Geneva, sans-serif;
    border-bottom: 1px solid #808080;
    padding-bottom: 4px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
    color: #000;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 2px 4px;
    font-family: "MS Sans Serif", Geneva, sans-serif;
    font-size: 12px;
    border: 1px solid #000;
    box-shadow: -1px -1px 0 #ffffff inset, 1px 1px 0 #808080 inset;
    background-color: #fff;
    box-sizing: border-box;
}

.form-group input[type="file"] {
    display: block;
    width: 100%;
    padding: 6px 0;
    font-family: inherit;
    font-size: 14px;
    background-color: #fff;
    border: 1px inset #c0c0c0;
    box-sizing: border-box;
    cursor: pointer;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #808080;
}

/* Hide system spans */
span#chain_spec_hash,
span#channel_id {
    display: none;
}

#context-panel {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#context-panel .loading {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 10px;
}

#context-panel .error {
    color: #ff4444;
    text-align: center;
    padding: 10px;
    background: #fff0f0;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
}

#context-panel .thumbnail {
    text-align: center;
    padding: 10px;
    border-top: 1px solid #ddd;
    margin-top: 10px;
}

#context-panel .thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Draggable Panel Styles */
.draggable-window {
    position: fixed;
    background: #c0c0c0;
    border: 2px outset #fff;
    box-shadow: 1px 1px 0 #ffffff inset, -1px -1px 0 #808080 inset;
    min-width: 300px;
    min-height: 200px;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1000;
    resize: both;
    overflow: hidden;
    font-family: "MS Sans Serif", Geneva, sans-serif;
    font-size: 12px;
    display: block; /* Ensure draggable windows are visible by default */
}

.draggable-window.media-viewer {
    min-width: 400px;
    min-height: 300px;
}

.window-header {
    background-color: #000080;
    color: #fff;
    padding: 2px 4px;
    font-weight: bold;
    font-size: 12px;
    border: 1px solid #000080;
    height: 18px;
    line-height: 18px;
    cursor: default;
    user-select: none;
}

.window-header:active {
    cursor: grabbing;
}

.window-content {
    padding: 8px;
    height: calc(100% - 22px); /* Header height (18px) + padding (4px) */
    overflow: auto;
    background: #c0c0c0;
}

/* Media Container Styles */
#mediaContainer, [id^="mediaContainer-"] {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f5f5f5;
}

#mediaContainer img, [id^="mediaContainer-"] img,
#mediaContainer video, [id^="mediaContainer-"] video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: auto;
    height: auto;
}

#mediaContainer audio, [id^="mediaContainer-"] audio {
    width: 100%;
    margin: 20px 0;
}

/* Active Panel Styles */
.draggable-window.active {
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Ensure panels don't get too small */
@media (max-width: 500px) {
    .draggable-window {
        min-width: 250px;
    }
    
    .draggable-window.media-viewer {
        min-width: 300px;
    }
}

/* Auth styles */
.auth-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: 1rem;
}

#auth-address {
    font-size: 0.9rem;
    color: #666;
}

.account-button {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.account-button:hover {
    background: #f5f5f5;
    border-color: #999;
}

.accounts-list {
    margin: 1rem 0;
    max-height: 300px;
    overflow-y: auto;
}

#extension-status {
    margin: 1rem 0;
    padding: 0.75rem;
    border-radius: 4px;
    background: #f5f5f5;
    color: #666;
}

#challenge-details {
    margin: 1rem 0;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 4px;
    font-family: monospace;
}

#challenge-message {
    word-break: break-all;
    white-space: pre-wrap;
}

#challenge-status {
    margin: 1rem 0;
    color: #666;
}

/* Update modal styles for auth */
.modal-content {
    max-width: 500px;
    width: 90%;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.form-actions button[type="button"] {
    background: #f5f5f5;
    color: #333;
}

.form-actions button[type="button"]:hover {
    background: #e5e5e5;
}

.form-actions button[type="submit"],
.form-actions button:not([type="button"]) {
    background: #1a73e8;
    color: white;
}

.form-actions button[type="submit"]:hover,
.form-actions button:not([type="button"]):hover {
    background: #1557b0;
}

/* Store Process Styles */
.store-process-status {
    padding: 10px;
    background: #c0c0c0;
    border: 2px outset #fff;
    margin-bottom: 10px;
    font-family: "MS Sans Serif", Geneva, sans-serif;
    font-size: 12px;
}

.process-step {
    margin-bottom: 8px;
    padding: 6px;
    background-color: #c0c0c0;
    border: 2px outset #fff;
}

.process-step h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 14px;
    color: #000080;
    font-weight: bold;
    font-family: "MS Sans Serif", Geneva, sans-serif;
}

.step-content {
    margin-top: 6px;
    padding: 4px;
    background-color: #fff;
    border: 1px inset #c0c0c0;
}

.store-summary,
#store-summary {
    font-family: "MS Sans Serif", Geneva, sans-serif;
    max-height: 200px;
    overflow: auto;
    padding: 4px;
    background-color: #fff;
    border: 1px inset #c0c0c0;
    font-size: 12px;
    white-space: pre-wrap;
    word-break: break-all;
}

#prepare-status,
#sign-status,
#store-status {
    display: inline-block;
    padding: 2px 4px;
    font-family: "MS Sans Serif", Geneva, sans-serif;
    font-size: 12px;
    border: 1px inset #c0c0c0;
    background-color: #fff;
}

.status-not-started {
    background-color: #c0c0c0;
    color: #000;
}

.status-in-progress {
    background-color: #fff;
    color: #000;
}

.status-completed {
    background-color: #c0c0c0;
    color: #000;
    font-weight: bold;
}

.status-error {
    background-color: #c0c0c0;
    color: #800000;
    font-weight: bold;
}

#signature-details,
#store-details {
    margin-top: 8px;
    font-family: "MS Sans Serif", Geneva, sans-serif;
    font-size: 12px;
    word-break: break-all;
    padding: 4px;
    background-color: #fff;
    border: 1px inset #c0c0c0;
}

/* Store Process Modal */
#storeProcessModal .modal-content {
    background-color: #c0c0c0;
    border: 2px outset #fff;
    padding: 10px;
    font-family: "MS Sans Serif", Geneva, sans-serif;
    font-size: 12px;
}

#storeProcessModal h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #000080;
    font-size: 14px;
    font-weight: bold;
    font-family: "MS Sans Serif", Geneva, sans-serif;
    border-bottom: 1px solid #808080;
    padding-bottom: 4px;
}

/* Store Process Buttons */
#startPrepareBtn,
#startSignBtn,
#startStoreBtn {
    background-color: #c0c0c0;
    color: #000;
    border: 2px outset #fff;
    padding: 2px 6px;
    font-family: "MS Sans Serif", Geneva, sans-serif;
    font-size: 12px;
    cursor: pointer;
}

#startPrepareBtn:hover,
#startSignBtn:hover,
#startStoreBtn:hover {
    background-color: #d0d0d0;
}

#startPrepareBtn:active,
#startSignBtn:active,
#startStoreBtn:active {
    border-style: inset;
    background-color: #b0b0b0;
}

#startPrepareBtn:disabled,
#startSignBtn:disabled,
#startStoreBtn:disabled {
    background-color: #c0c0c0;
    color: #808080;
    border: 2px outset #fff;
    cursor: not-allowed;
}

/* Challenge Modal Styles */
#challengeModal .modal-content {
    background-color: #c0c0c0;
    border: 2px outset #fff;
    padding: 10px;
    font-family: "MS Sans Serif", Geneva, sans-serif;
    font-size: 12px;
}

#challenge-message {
    font-family: "MS Sans Serif", Geneva, sans-serif;
    font-size: 12px;
    word-break: break-all;
    white-space: pre-wrap;
    padding: 4px;
    background-color: #fff;
    border: 1px inset #c0c0c0;
    margin: 8px 0;
}

#challenge-status {
    margin: 8px 0;
    padding: 4px;
    background-color: #fff;
    border: 1px inset #c0c0c0;
    font-family: "MS Sans Serif", Geneva, sans-serif;
    font-size: 12px;
}

/* Add styles for file validation messages */
.validation-error {
    color: #F44336;
    font-size: 14px;
    margin-top: 5px;
}

.validation-info {
    color: #2196F3;
    font-size: 14px;
    margin-top: 5px;
}

/* Add styles for file size indicator */
.file-size-indicator {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.file-size-warning {
    color: #FFA000;
}

.file-size-error {
    color: #F44336;
}

.breadcrumbs {
    padding: 8px 16px;
    background-color: #000080;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    overflow-x: auto;
    white-space: nowrap;
    font-family: inherit;
}

.breadcrumb-item {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 4px;
    border-radius: 2px;
    transition: background-color 0.2s;
}

.breadcrumb-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.breadcrumb-item.active {
    color: #fff;
    font-weight: normal;
    pointer-events: none;
}

.breadcrumb-separator {
    color: #fff;
    opacity: 0.7;
    font-size: 14px;
    line-height: 1;
    user-select: none;
}

.breadcrumb-text {
    line-height: 1;
}

/* Material Icons */
.material-icons {
    font-size: 18px;
    line-height: 1;
    margin-right: 2px;
}

/* Consistent Font for All Panels */
.draggable-window,
.actions-log,
.side-pane,
.modal-content,
.pending-actions-table,
.info-content,
.form-group label,
.form-group input,
.form-group select,
button {
    font-family: inherit;
}

/* Consistent Panel Headers */
.window-header,
.actions-log-header {
    background-color: #000080;
    color: #fff;
    padding: 8px 12px;
    font-size: 14px;
    font-family: inherit;
    min-height: 34px;  /* Ensure consistent header height */
    box-sizing: border-box;
}

/* Consistent Table Styles */
.pending-actions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.pending-actions-table th {
    background: #000080;
    color: #fff;
    padding: 4px 8px;
    text-align: left;
    font-weight: bold;
}

.pending-actions-table td {
    padding: 4px 8px;
    border: 1px inset #c0c0c0;
    background: #fff;
}

/* Consistent Info Panel Styles */
.info-content {
    font-size: 14px;
    font-family: inherit;
}

.info-row {
    display: flex;
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

.info-label {
    width: 100px;
    padding-right: 12px;
    font-weight: normal;
    font-family: inherit;
}

.info-value {
    flex: 1;
    font-family: inherit;
}

/* Consistent Modal Styles */
.modal-content {
    background-color: #c0c0c0;
    padding: 20px;
    border: 2px outset #fff;
    font-family: inherit;
}

.modal h2 {
    margin-top: 0;
    color: #000080;
    font-size: 18px;
    font-family: inherit;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 6px;
    margin-top: 4px;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-family: inherit;
    font-size: 14px;
}

/* Consistent Button Styles */
button {
    font-family: inherit;
    font-size: 14px;
    background-color: #c0c0c0;
    border: 2px outset #fff;
    padding: 4px 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

/* Update breadcrumb folder icon */
.breadcrumb-item .material-icons {
    display: none; /* Hide the material icon */
}

.breadcrumb-item::before {
    content: '';
    width: 16px;
    height: 16px;
    background-color: #68b1d1;
    display: inline-block;
    margin-right: 4px;
    vertical-align: middle;
}
/* Store Process Modal Styling */
#storeProcessModal .modal-content {
    background-color: #c0c0c0;
    border: 2px outset #fff;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 0;
    font-family: inherit;
}

.session-info-panel {
    background-color: #fff;
    border: 2px outset #fff;
    margin-bottom: 10px;
    font-family: "MS Sans Serif", Geneva, sans-serif;
    font-size: 12px;
}

.session-info-header {
    background-color: #000080;
    color: #fff;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    border-bottom: 2px outset #fff;
}

.session-info-header .material-icons {
    font-size: 18px;
}

.session-info-content {
    padding: 8px;
}

.session-info-row {
    display: flex;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid #eee;
}

.session-info-row:last-child {
    border-bottom: none;
}

.session-info-row .info-label {
    width: 80px;
    color: #666;
    font-size: 12px;
}

.session-info-row .info-value {
    flex: 1;
    font-size: 12px;
}

.session-info-row .info-value.active {
    color: #4CAF50;
}

.session-info-row .info-value.locked {
    color: #FFA500;
}

.session-info-row .info-value.signed {
    color: #2196F3;
}

.session-info-row .info-value.committed {
    color: #4CAF50;
}

/* Retro alert box styling for login and challenge modals */
#loginModal .modal-content,
#challengeModal .modal-content {
    background-color: #c0c0c0;
    border: 2px outset #808080;
    border-radius: 0;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    padding: 0;
    max-width: 400px;
    width: 100%;
    font-family: 'MS Sans Serif', Arial, sans-serif;
}

#loginModal .modal-header,
#challengeModal .modal-header {
    background-color: #000080;
    color: white;
    padding: 2px 4px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #808080;
    font-size: 12px;
    height: 18px;
    line-height: 18px;
}

#loginModal .modal-body,
#challengeModal .modal-body {
    padding: 16px;
    background-color: #f0f0f0;
}

#loginModal .account-button,
#challengeModal .challenge-button {
    background-color: #d4d0c8;
    border: 2px outset #808080;
    border-radius: 0;
    padding: 6px 12px;
    margin: 4px 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 12px;
}

#loginModal .account-button:hover,
#challengeModal .challenge-button:hover {
    background-color: #e0e0e0;
}

#loginModal .account-button:active,
#challengeModal .challenge-button:active {
    border-style: inset;
}

#loginModal .modal-footer,
#challengeModal .modal-footer {
    padding: 12px;
    background-color: #f0f0f0;
    border-top: 2px groove #808080;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

#loginModal .modal-footer button,
#challengeModal .modal-footer button {
    background-color: #d4d0c8;
    border: 2px outset #808080;
    border-radius: 0;
    padding: 4px 12px;
    min-width: 75px;
    cursor: pointer;
    font-size: 12px;
    font-family: 'MS Sans Serif', Arial, sans-serif;
}

#loginModal .modal-footer button:hover,
#challengeModal .modal-footer button:hover {
    background-color: #e0e0e0;
}

#loginModal .modal-footer button:active,
#challengeModal .modal-footer button:active {
    border-style: inset;
}

#loginModal .modal-footer button.cancel,
#challengeModal .modal-footer button.cancel {
    background-color: #a0a0a0;
    color: #000000;
}

#extension-status,
#challenge-status {
    margin: 8px 0;
    padding: 8px;
    background-color: #ffffff;
    border: 1px solid #808080;
    font-size: 12px;
}

/* Challenge specific styles */
#challenge-message {
    font-family: 'Courier New', monospace;
    background-color: #ffffff;
    border: 1px solid #808080;
    padding: 8px;
    margin: 8px 0;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
    font-size: 12px;
}

.session-info-window {
    min-width: 300px;
    background-color: #c0c0c0;
    border: 2px outset #fff;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.session-info-window .window-content {
    padding: 15px;
}

.session-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 4px 0;
    border-bottom: 1px solid #808080;
}

.session-info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: bold;
    color: #000000;
}

.info-value {
    color: #666666;
}

.info-value.active {
    color: #4CAF50;
}

.info-value.locked {
    color: #FFA500;
}

.info-value.signed {
    color: #2196F3;
}

/* Add JSON display styles */
.json-display {
    background: #f8f8f9;
    border: 1px inset #c0c0c0;
    margin: 8px 0;
    padding: 8px;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
}

.json-content {
    margin: 0;
    font-family: "Consolas", "Monaco", monospace;
    font-size: 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.session-info-divider {
    height: 1px;
    background-color: #808080;
    margin: 10px 0;
}

.session-info-section h4 {
    margin: 0 0 8px 0;
    font-size: 13px;
    font-weight: bold;
    color: #000080;
    font-family: inherit;
}

.session-info-window .json-display {
    background: #f8f8f9;
    border: 1px inset #c0c0c0;
    margin: 8px 0;
    padding: 8px;
    max-height: calc(100% - 200px);
    overflow-y: auto;
}

.session-info-window .json-content {
    margin: 0;
    font-family: "Consolas", "Monaco", monospace;
    font-size: 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Make session info panel scrollable if content is too long */
.session-info-window .window-content {
    max-height: calc(100% - 20px);
    overflow-y: auto;
}

/* Adjust session info panel size */
.session-info-window {
    min-width: 400px;
    min-height: 300px;
    max-height: 80vh;
}

/* Auth Overlay */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: none;
}

.auth-overlay.show {
    display: block;
}

/* Modal positioning and display */
.modal-centered {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Fallback positioning for auth modals */
.auth-modal.modal-centered {
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
}

.modal-login {
    z-index: 10000;
}

.modal-challenge {
    z-index: 10001;
}

.modal-show {
    display: block !important;
}

.modal-hide {
    display: none !important;
}

/* Panel positioning */
.panel-pending {
    top: 100px;
    left: 20px;
}

.panel-messages {
    top: 100px;
    right: 20px;
}

.panel-context {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 300px;
    max-height: 80vh;
    overflow: auto;
}

/* Draggable element states */
.draggable-element {
    position: fixed;
}

.draggable-header {
    cursor: grab;
}

.draggable-header.grabbing {
    cursor: grabbing;
}

.draggable-element.no-transform {
    transform: none;
}

/* Media viewer styles */
.media-viewer-large {
    width: 80%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: auto;
}

.media-element {
    max-width: 100%;
    max-height: 100%;
}

/* Retro TV YVM Player styles */
.draggable-window.yvm-player {
    min-width: 1150px;
    min-height: 850px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.yvm-player-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: transparent;
    color: white;
    font-family: Arial, sans-serif;
}

.retro-tv-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.tv-bezel {
    background: linear-gradient(145deg, #C0C0C0, #808080);
    border-radius: 25px 25px 15px 15px;
    padding: 30px;
    box-shadow: 
        inset 0 0 0 8px #D3D3D3,
        inset 0 0 0 12px #C0C0C0,
        0 15px 30px rgba(0,0,0,0.5),
        0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    width: 100%;
    max-width: 1100px;
}

.tv-bezel::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(145deg, #D3D3D3, #808080);
    border-radius: 30px 30px 20px 20px;
    z-index: -1;
}

.tv-screen-frame {
    background: #2F2F2F;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 
        inset 0 0 20px rgba(0,0,0,0.8),
        inset 0 0 0 3px #1a1a1a;
    margin-bottom: 15px;
}

.tv-screen {
    background: #000;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    width: 100%;
    height: 500px;
    box-shadow: 
        inset 0 0 30px rgba(0,0,0,0.9),
        0 0 15px rgba(0,100,255,0.1);
}

.tv-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0,255,0,0.03) 2px,
            rgba(0,255,0,0.03) 4px
        );
    pointer-events: none;
    z-index: 10;
}

.tv-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
    z-index: 11;
}

/* TV Info and Controls Area */
.tv-info-controls-area {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: stretch;
}

.tv-info-panel {
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
    border-radius: 8px;
    padding: 15px;
    border: 2px inset #4a4a4a;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    flex: 1;
    height: 160px;
    overflow-y: auto;
}

/* Speaker and controls removed for minimal TV design */

.yvm-info h4 {
    margin: 0 0 5px 0;
    color: #4CAF50;
    font-size: 16px;
}

.yvm-info p {
    margin: 0;
    color: #ccc;
    font-size: 12px;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* YVM Experience Info Items */
.yvm-venue-info,
.yvm-exhibition-info,
.yvm-device-info,
.yvm-duration-info,
.yvm-timestamp-info,
.yvm-related-info {
    margin-top: 8px;
    font-size: 12px;
    color: #ccc;
}

.yvm-timestamp-info {
    font-weight: 500;
    color: #ffa726; /* Orange color for timestamp */
}

.yvm-quality-controls,
.yvm-playback-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.yvm-quality-controls label {
    font-weight: bold;
    color: #ccc;
}

.yvm-quality-select {
    padding: 5px 10px;
    border: 1px solid #555;
    border-radius: 4px;
    background: #444;
    color: white;
    font-size: 12px;
}

.yvm-play-btn,
.yvm-stop-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background: #4CAF50;
    color: white;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

.yvm-play-btn:hover,
.yvm-stop-btn:hover {
    background: #45a049;
}

.yvm-play-btn:disabled,
.yvm-stop-btn:disabled {
    background: #666;
    cursor: not-allowed;
}

.yvm-time {
    color: #ccc;
    font-family: monospace;
    font-size: 12px;
}

.yvm-unity-canvas {
    width: 100%;
    height: 100%;
    max-width: 100%;
    display: block;
    background: #000;
    /* Maintain crisp rendering at high DPI */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    position: relative;
    z-index: 5;
}

.yvm-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.yvm-loading-bar {
    width: 200px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 10px;
}

.yvm-loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #40ff40);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0,255,0,0.5);
}

.yvm-loading-text {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    text-shadow: 0 0 5px rgba(0,255,0,0.5);
}

.yvm-status-container {
    padding: 10px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 8px;
    border: 1px solid #444;
    flex: 1;
    height: 160px;
    overflow-y: auto;
}

.yvm-status-text {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    margin-bottom: 5px;
    text-shadow: 0 0 3px rgba(0,255,0,0.5);
}

.yvm-status-log {
    max-height: 100px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: #ccc;
    line-height: 1.3;
}

.yvm-btc-address {
    margin-top: 8px;
    font-size: 11px;
    color: #aaa;
    background: #1a1a1a;
    padding: 5px;
    border-radius: 3px;
    border: 1px solid #333;
}

.yvm-btc-address code {
    font-family: 'Courier New', monospace;
    color: #FFD700;
    background: none;
    font-size: 10px;
}

.yvm-info h4 {
    margin: 0 0 8px 0;
    color: #4CAF50;
    font-size: 14px;
    text-shadow: 0 0 3px rgba(76, 175, 80, 0.3);
}

.yvm-info p {
    margin: 0;
    color: #ccc;
    font-size: 12px;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* YVM Experience Info Items */
.yvm-venue-info,
.yvm-exhibition-info,
.yvm-device-info,
.yvm-duration-info,
.yvm-timestamp-info,
.yvm-related-info {
    margin-top: 6px;
    font-size: 11px;
    color: #bbb;
    padding: 2px 0;
    border-left: 2px solid #444;
    padding-left: 8px;
    display: flex;
    gap: 8px;
}

.yvm-timestamp-info {
    font-weight: 500;
    color: #ffa726;
    border-left-color: #ffa726;
}

.yvm-related-info {
    color: #4CAF50;
    border-left-color: #4CAF50;
}

.info-label {
    font-weight: bold;
    color: #ccc;
    min-width: 80px;
    flex-shrink: 0;
}

/* Removed simultaneous experiences styles - no longer used in TV design */

/* Old YVM styles removed - replaced with retro TV design above */

/* Streaming Video Player Styles */
.draggable-window.video-stream-player {
    min-width: 800px;
    min-height: 550px;
    background: #000080;
}

.video-player-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #c0c0c0;
    color: #000;
    font-family: 'MS Sans Serif', Geneva, sans-serif;
}

.video-player-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 10px;
    gap: 10px;
}

.video-player-info {
    background: #fff;
    border: 2px solid #000;
    border-top-color: #fff;
    border-left-color: #fff;
    border-right-color: #808080;
    border-bottom-color: #808080;
    padding: 10px;
    box-shadow: inset -1px -1px 0 #000, inset 1px 1px 0 #dfdfdf;
}

.video-player-info h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: bold;
    color: #000080;
}

.video-metadata {
    display: flex;
    gap: 15px;
    font-size: 11px;
    color: #000;
}

.video-size,
.video-type {
    padding: 2px 6px;
    background: #dfdfdf;
    border: 1px solid #808080;
}

.video-player-screen {
    flex: 1;
    background: #000;
    border: 2px solid #000;
    border-top-color: #808080;
    border-left-color: #808080;
    border-right-color: #fff;
    border-bottom-color: #fff;
    box-shadow: inset 1px 1px 0 #000, inset -1px -1px 0 #dfdfdf;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    position: relative;
}

.streaming-video-element {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #000;
}

.video-player-status {
    background: #dfdfdf;
    border: 2px solid #000;
    border-top-color: #fff;
    border-left-color: #fff;
    border-right-color: #808080;
    border-bottom-color: #808080;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: inset -1px -1px 0 #000, inset 1px 1px 0 #fff;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: bold;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #808080;
    box-shadow: inset -1px -1px 2px rgba(0,0,0,0.5), 0 0 3px rgba(0,0,0,0.3);
}

.status-dot.ready {
    background: #00ff00;
    box-shadow: inset -1px -1px 2px rgba(0,0,0,0.3), 0 0 8px rgba(0,255,0,0.6);
    animation: pulse-green 2s ease-in-out infinite;
}

.status-dot.loading {
    background: #ffff00;
    box-shadow: inset -1px -1px 2px rgba(0,0,0,0.3), 0 0 8px rgba(255,255,0,0.6);
    animation: pulse-yellow 1s ease-in-out infinite;
}

.status-dot.playing {
    background: #00ff00;
    box-shadow: inset -1px -1px 2px rgba(0,0,0,0.3), 0 0 8px rgba(0,255,0,0.8);
}

.status-dot.paused {
    background: #ffaa00;
    box-shadow: inset -1px -1px 2px rgba(0,0,0,0.3), 0 0 6px rgba(255,170,0,0.5);
}

.status-dot.error {
    background: #ff0000;
    box-shadow: inset -1px -1px 2px rgba(0,0,0,0.3), 0 0 8px rgba(255,0,0,0.6);
    animation: pulse-red 0.5s ease-in-out infinite;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes pulse-yellow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes pulse-red {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.status-text {
    color: #000;
}

.streaming-info {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: #000080;
}

.streaming-info .material-icons {
    font-size: 14px;
}

/* Video controls styling - enhance native controls appearance */
.streaming-video-element::-webkit-media-controls-panel {
    background: linear-gradient(to bottom, rgba(50,50,50,0.9), rgba(20,20,20,0.9));
}

/* Enhanced YVM Progress Status Overlay */
.yvm-progress-status {
    max-width: 600px !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    font-size: 12px !important;
    background: rgba(0, 0, 0, 0.85) !important;
    padding: 15px !important;
    border-radius: 8px !important;
    margin-top: 15px !important;
    border: 2px solid #333 !important;
}

/* Auto-scroll behavior for progress status */
.yvm-progress-status {
    scroll-behavior: smooth !important;
}

/* Enhanced styling for individual status items */
.yvm-progress-status > div {
    margin: 3px 0 !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-family: 'Courier New', monospace !important;
}

/* Old status styles removed - using new TV-themed versions */

/* Visibility states */
.visible {
    visibility: visible;
}

.hidden {
    visibility: hidden;
}

.show {
    display: block;
}

.hide {
    display: none;
}

.flex-show {
    display: flex !important;
}

/* Thumbnail field toggle */
.thumbnail-field-show {
    display: block;
}

.thumbnail-field-hide {
    display: none;
}

/* Download link hidden */
.download-link-hidden {
    display: none;
}

/* Dynamic panel sizing - these will be set via CSS custom properties */
.panel-dynamic-size {
    height: var(--panel-height, 400px);
    width: var(--panel-width, 300px);
    bottom: var(--panel-bottom, 20px);
    top: auto;
}

.panel-context-dynamic {
    right: var(--side-gap, 20px);
    top: var(--top-offset, 100px);
    left: auto;
    bottom: auto;
    width: var(--context-width, 240px);
    height: auto;
    max-height: var(--max-height, calc(100vh - 140px));
}

.panel-session-dynamic {
    left: var(--session-left, 270px);
    width: var(--session-width, 100px);
}

.panel-pending-dynamic {
    left: var(--pending-left, calc(50% - 150px));
}

.panel-messages-dynamic {
    right: var(--side-gap, 20px);
    left: auto;
}

/* Z-index management */
.z-index-high {
    z-index: var(--z-index, 1001);
}

/* Bring to front animation */
.bring-to-front {
    transition: z-index 0.1s ease;
}

/* Auth modal specific styles */
.draggable-window.auth-modal {
    display: block;
    position: fixed;
}

.draggable-window.auth-modal.modal-show {
    display: block !important;
}

.draggable-window.auth-modal.modal-hide {
    display: none !important;
}

/* Error and info display styles */
.error {
    background: #fff0f0;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    padding: 12px;
    margin: 8px 0;
    color: #d32f2f;
}

.error h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #d32f2f;
}

.error p {
    margin: 4px 0;
    font-size: 12px;
}

.error button {
    margin: 4px 4px 4px 0;
    padding: 4px 8px;
    font-size: 11px;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    cursor: pointer;
}

.error button:hover {
    background-color: #e0e0e0;
}

.info-display {
    background: #f0f8ff;
    border: 1px solid #b3d9ff;
    border-radius: 4px;
    padding: 12px;
    margin: 8px 0;
    color: #1976d2;
}

.info-display h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #1976d2;
}

.info-display p {
    margin: 4px 0;
    font-size: 12px;
}

.info-display em {
    color: #666;
    font-style: italic;
}

/* Session Complete Modal */
.session-complete-modal {
    min-width: 400px;
    max-width: 500px;
    background-color: #c0c0c0;
    border: 2px outset #fff;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.3);
}

.session-complete-modal .window-content {
    padding: 0;
    background: #f0f0f0;
}

.session-complete-modal h3 {
    font-family: inherit;
    font-size: 16px;
    margin: 0;
}

.session-complete-modal p {
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.session-complete-modal button {
    font-family: inherit;
    font-size: 12px;
    transition: all 0.2s;
}

.session-complete-modal button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Read-only mode indicators */
button[title*="read-only"] {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-status .read-only-indicator {
    color: #ff6b6b;
    font-size: 10px;
    margin-left: 8px;
}

/* Upload Progress Panel Styles */
.upload-progress-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: #2a2a2a;
    border: 2px solid #555;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    min-width: 350px;
    max-width: 450px;
}

.upload-progress-content {
    padding: 12px;
}

.upload-progress-content h4 {
    margin: 0 0 12px 0;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: bold;
}

.upload-progress-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.upload-progress-item {
    position: relative;
    background: #333;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 12px;
    color: #e0e0e0;
}

.upload-filename {
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 4px;
    color: #fff;
}

.upload-size {
    font-size: 11px;
    color: #ccc;
    margin-bottom: 8px;
}

.upload-progress-bar {
    width: 100%;
    height: 8px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2196F3, #42A5F5);
    border-radius: 3px;
    transition: width 0.3s ease;
    animation: progress-stripes 1s linear infinite;
    background-size: 20px 20px;
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.1) 75%,
        transparent 75%,
        transparent
    );
}

.upload-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-stripes {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 20px 0;
    }
}

@keyframes progress-shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.upload-status {
    font-size: 11px;
    color: #ccc;
    display: inline-block;
}

.upload-percentage {
    font-size: 11px;
    color: #fff;
    float: right;
    font-weight: bold;
}

.upload-progress-item .upload-status:contains("Error") {
    color: #ff6b6b;
}

.upload-progress-item .upload-status:contains("Completed") {
    color: #4CAF50;
}

.upload-progress-item .upload-status:contains("Processing") {
    color: #FFA726;
}

/* Upload progress panel positioning */
.upload-progress-window {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
    min-width: 300px;
    background: #2a2a2a;
    border: 2px solid #555;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.upload-progress-window.show {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.upload-progress-window.hide {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Upload progress completed state */
.upload-progress-item.upload-completed {
    background-color: #1a3d1a;
    border-left: 4px solid #4CAF50;
}

.upload-progress-item.upload-completed .upload-status {
    color: #4CAF50;
    font-weight: bold;
}

.upload-progress-item.upload-completed .upload-progress-fill {
    background: linear-gradient(90deg, #4CAF50, #66BB6A) !important;
    animation: none !important;
}

/* Remove upload button */
.remove-upload-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #444;
    color: #ccc;
    border: 1px solid #666;
    border-radius: 3px;
    width: 20px;
    height: 20px;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.remove-upload-btn:hover {
    background: #555;
    color: #fff;
    border-color: #777;
}

/* Action details button */
.details-action-btn {
    background: #c0c0c0;
    color: #000;
    border: 1px outset #c0c0c0;
    border-radius: 0;
    padding: 4px 8px;
    margin-right: 4px;
    cursor: pointer;
    font-size: 12px;
    font-family: "MS Sans Serif", Geneva, sans-serif;
}

.details-action-btn:hover {
    background: #e0e0e0;
    color: #000;
}

.details-action-btn:active {
    border: 1px inset #c0c0c0;
}

.details-action-btn .material-icons {
    font-size: 14px;
}

/* Action Details Modal */
.action-details-modal {
    z-index: 10000;
}

.action-details-modal .modal-content {
    background: #c0c0c0;
    color: #000;
    border: 2px outset #fff;
    border-radius: 0;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    font-family: "MS Sans Serif", Geneva, sans-serif;
    font-size: 12px;
}

.action-details-modal .modal-header {
    background-color: #000080;
    color: #fff;
    padding: 8px 12px;
    font-size: 14px;
    font-family: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-details-modal .modal-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

.action-details-modal .modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-details-modal .modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.action-details-modal .modal-body {
    padding: 10px;
    background-color: #fff;
    border: 1px inset #c0c0c0;
    margin: 10px;
}

.action-details-modal .modal-footer {
    padding: 10px;
    text-align: right;
    border-top: 1px solid #808080;
}

.action-details-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background-color: #fff;
}

.action-details-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
}

.action-details-table .detail-label {
    font-weight: bold;
    color: #000;
    width: 150px;
    min-width: 150px;
    background-color: #e9e9e9;
}

.action-details-table .detail-value {
    color: #000;
    word-break: break-all;
    background-color: #fff;
}

.action-details-table .detail-empty {
    color: #666;
    font-style: italic;
}

/* Upload Modal Styles */
.file-help-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    line-height: 1.4;
}

.selected-files-container {
    margin-top: 15px;
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #f9f9f9;
    max-height: 200px;
    overflow-y: auto;
}

.selected-files-container h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333;
}

.selected-files-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.selected-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
}

.selected-file-item.invalid {
    background-color: #ffebee;
    border-color: #e57373;
}

.file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.file-name {
    font-weight: bold;
    font-size: 13px;
    color: #333;
}

.file-details {
    font-size: 11px;
    color: #666;
}

.file-type-badge {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.file-type-image {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.file-type-video {
    background-color: #e3f2fd;
    color: #1565c0;
}

.file-type-audio {
    background-color: #fff3e0;
    color: #ef6c00;
}

.file-type-document {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.file-type-error {
    background-color: #ffebee;
    color: #c62828;
}

.file-remove-btn {
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
    margin-left: 8px;
}

.file-remove-btn:hover {
    background-color: #d32f2f;
}

.upload-error-message {
    color: #c62828;
    font-size: 12px;
    margin-top: 5px;
    padding: 5px;
    background-color: #ffebee;
    border-radius: 3px;
}

.json-expandable {
    background: #f9f9f9;
    border: 1px inset #c0c0c0;
    border-radius: 0;
    padding: 8px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #000;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
    margin: 4px 0;
}

/* Reset Session Button - Warning/Caution Style */
.reset-btn {
    background-color: #ff6b00 !important;
    color: white !important;
    border: 2px outset #ffaa66 !important;
    font-weight: bold;
    margin-left: 8px;
}

.reset-btn:hover {
    background-color: #ff8533 !important;
    border: 2px outset #ffbb77 !important;
}

.reset-btn:active {
    border: 2px inset #ffaa66 !important;
    background-color: #e55a00 !important;
}

/* Make reset button more prominent in the modal */
#storeProcessModal .reset-btn {
    background: linear-gradient(135deg, #ff6b00, #ff8533);
    border: 2px solid #cc5500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    padding: 8px 16px;
    font-size: 12px;
}

/* Store Completion Success Modal */
.store-success-modal {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.store-success-modal .success-icon {
    margin-bottom: 20px;
}

.store-success-modal .success-icon .material-icons {
    font-size: 64px;
    color: #4CAF50;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.store-success-modal h2 {
    color: #4CAF50;
    font-size: 24px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.store-success-modal .success-message {
    margin-bottom: 30px;
    line-height: 1.5;
}

.store-success-modal .success-message p {
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
}

.store-success-modal .form-actions {
    justify-content: center;
}

.store-success-modal .primary-btn {
    background-color: #4CAF50;
    color: white;
    border: 2px outset #4CAF50;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    min-width: 200px;
}

.store-success-modal .primary-btn:hover {
    background-color: #45a049;
    border-color: #45a049;
}

.store-success-modal .primary-btn:active {
    border: 2px inset #4CAF50;
    background-color: #3d8b40;
}

/* Pull Updates Modal - Full Screen Lock */
.pull-updates-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.pull-updates-modal .pull-updates-content {
    background-color: #c0c0c0;
    padding: 30px;
    border: 2px outset #fff;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
    min-width: 400px;
    max-width: 600px;
    text-align: center;
    font-family: "MS Sans Serif", Geneva, sans-serif;
}

.pull-updates-modal h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #000;
    font-size: 18px;
    font-weight: bold;
    font-family: "MS Sans Serif", Geneva, sans-serif;
}

.pull-updates-message {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #fff;
    border: 1px inset #c0c0c0;
}

.pull-updates-message p {
    margin: 0;
    font-size: 14px;
    color: #000;
    line-height: 1.5;
}

.pull-updates-status {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff3cd;
    border: 1px inset #ffc107;
    border-radius: 0;
}

.pull-updates-status p {
    margin: 0;
    font-size: 14px;
    color: #856404;
    font-weight: bold;
    line-height: 1.5;
}

.pull-updates-modal .form-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 0;
}

.pull-updates-modal .primary-btn,
.pull-updates-modal .secondary-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    font-family: "MS Sans Serif", Geneva, sans-serif;
    min-width: 150px;
    border: 2px outset #808080;
}

.pull-updates-modal .primary-btn {
    background-color: #d4d0c8;
    color: #000;
}

.pull-updates-modal .primary-btn:hover:not(:disabled) {
    background-color: #e0e0e0;
}

.pull-updates-modal .primary-btn:active:not(:disabled) {
    border: 2px inset #808080;
    background-color: #c0c0c0;
}

.pull-updates-modal .primary-btn:disabled {
    background-color: #c0c0c0;
    color: #808080;
    box-shadow: 1px 1px 0 #ffffff inset, -1px -1px 0 #808080 inset;
    cursor: not-allowed;
    border: 2px inset #808080;
}

.pull-updates-modal .secondary-btn {
    background-color: #d4d0c8;
    color: #000;
}

.pull-updates-modal .secondary-btn:hover:not(:disabled) {
    background-color: #e0e0e0;
}

.pull-updates-modal .secondary-btn:active:not(:disabled) {
    border: 2px inset #808080;
    background-color: #c0c0c0;
}

.pull-updates-modal .secondary-btn:disabled {
    background-color: #c0c0c0;
    color: #808080;
    box-shadow: 1px 1px 0 #ffffff inset, -1px -1px 0 #808080 inset;
    cursor: not-allowed;
    border: 2px inset #808080;
}
