/* OS-2045 Wave C-2 — Screenshot + Screen Recorder App.
 *
 * Layout: Toolbar (mode-tabs + capture/stop + server-toggle) on top,
 * preview-area filling the remaining space, optional bottom-bar with
 * save/copy/discard once a capture exists. All scoped under
 * [data-theme-mode="os2045"] so other themes stay untouched.
 */

[data-theme-mode="os2045"] {

    .ss-shell {
        display: flex;
        flex-direction: column;
        height: 100%;
        background: #0a0a0a;
        color: var(--theme-color);
        font-family: 'JetBrains Mono', 'Courier New', monospace;
        font-size: 12px;
    }

    .ss-toolbar {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 10px;
        border-bottom: 1px solid var(--theme-color-dark);
        background: rgba(0, 0, 0, 0.6);
        flex: 0 0 auto;
        flex-wrap: wrap;
    }

    .ss-mode-tabs {
        display: inline-flex;
        gap: 4px;
        padding: 2px;
        border: 1px solid var(--theme-color-dark);
        border-radius: 4px;
    }

    .ss-tab {
        background: transparent;
        color: var(--theme-color-dim, #888);
        border: none;
        padding: 5px 10px;
        font: inherit;
        cursor: pointer;
        border-radius: 3px;
        transition: background 120ms ease, color 120ms ease;
    }
    .ss-tab:hover:not(:disabled) {
        color: var(--theme-color);
        background: rgba(255, 255, 255, 0.05);
    }
    .ss-tab.active {
        background: var(--theme-color);
        color: #000;
    }
    .ss-tab:disabled { opacity: 0.4; cursor: not-allowed; }

    .ss-actions {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .ss-btn {
        background: transparent;
        color: var(--theme-color);
        border: 1px solid var(--theme-color-dark);
        padding: 5px 12px;
        font: inherit;
        cursor: pointer;
        border-radius: 3px;
        transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
    }
    .ss-btn:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.05);
        border-color: var(--theme-color);
    }
    .ss-btn.primary {
        background: var(--theme-color);
        color: #000;
        border-color: var(--theme-color);
    }
    .ss-btn.primary:hover:not(:disabled) {
        filter: brightness(1.15);
    }
    .ss-btn.danger {
        border-color: #d33;
        color: #f99;
    }
    .ss-btn.danger:hover:not(:disabled) {
        background: #d33;
        color: #000;
    }
    .ss-btn:disabled { opacity: 0.4; cursor: not-allowed; }

    .ss-timer {
        font-family: 'JetBrains Mono', monospace;
        font-size: 12px;
        color: #f88;
        padding: 4px 8px;
        border: 1px solid #d33;
        border-radius: 3px;
        background: rgba(221, 51, 51, 0.08);
        min-width: 56px;
        text-align: center;
        animation: ss-pulse 1.6s ease-in-out infinite;
    }
    @keyframes ss-pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.55; }
    }

    .ss-spacer { flex: 1 1 auto; }

    .ss-server-toggle {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 11px;
        color: var(--theme-color-dim, #888);
        cursor: pointer;
        user-select: none;
    }
    .ss-server-toggle input { cursor: pointer; }

    .ss-preview {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background:
            repeating-conic-gradient(
                rgba(255, 255, 255, 0.025) 0% 25%,
                rgba(255, 255, 255, 0.05) 0% 50%
            ) center / 24px 24px;
        overflow: hidden;
        padding: 12px;
    }

    .ss-preview-img,
    .ss-preview-video {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        background: #000;
        border: 1px solid var(--theme-color-dark);
        box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
    }

    .ss-empty {
        text-align: center;
        max-width: 420px;
        padding: 24px;
        color: var(--theme-color-dim, #888);
    }
    .ss-empty-title {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 8px;
        color: var(--theme-color);
    }
    .ss-empty-sub {
        font-size: 12px;
        line-height: 1.55;
    }
    .ss-empty code {
        background: rgba(255, 255, 255, 0.05);
        padding: 1px 4px;
        border-radius: 2px;
        font-size: 11px;
    }

    .ss-bottombar {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px 12px;
        border-top: 1px solid var(--theme-color-dark);
        background: rgba(0, 0, 0, 0.6);
        flex: 0 0 auto;
    }
    .ss-meta {
        font-size: 11px;
        color: var(--theme-color-dim, #888);
        flex: 1 1 auto;
    }
    .ss-bottom-actions {
        display: inline-flex;
        gap: 6px;
    }
}
