/**
 * WP BlackScreen Studio Styling (Dark Obsidian Luxury Theme)
 * Version: 2.0.0
 * Author: WP Developer
 * License: GPL-2.0+
 */

.wp-bs-app-root {
    width: 100%;
    margin: 24px 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #090a0f;
    color: #e2e8f0;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    line-height: 1.5;
}

.wp-bs-app-root * {
    box-sizing: border-box;
}

/* Navbar */
.wp-bs-navbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 12px;
}

.wp-bs-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wp-bs-brand-indicator {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.wp-bs-brand-name {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.wp-bs-nav-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #020617;
    padding: 4px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.wp-bs-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: #94a3b8;
    border: none;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wp-bs-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.wp-bs-tab-btn.active {
    background: #1e293b;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.wp-bs-btn-fs-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.wp-bs-btn-fs-top:hover {
    background: #1d4ed8;
}

.wp-bs-kbd {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 2px 5px;
    font-family: monospace;
    font-size: 10px;
}

/* Tab Contents */
.wp-bs-tab-content {
    display: none;
    padding: 20px;
}

.wp-bs-tab-content.active {
    display: block;
}

/* Hero Stage */
.wp-bs-hero-stage {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    transition: background-color 0.25s ease;
    cursor: pointer;
    overflow: hidden;
}

.wp-bs-stage-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 22px 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: center;
}

.wp-bs-stage-hex-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wp-bs-stage-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.wp-bs-stage-hex {
    font-family: monospace;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

.wp-bs-btn-stage-fs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    transition: transform 0.15s ease, background 0.15s ease;
}

.wp-bs-btn-stage-fs:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.wp-bs-stage-subtext {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.wp-bs-stage-res-badge {
    position: absolute;
    bottom: 12px;
    right: 14px;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 11px;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sub Bar */
.wp-bs-sub-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding: 14px 18px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    gap: 12px;
}

.wp-bs-sub-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.wp-bs-sub-desc {
    margin: 2px 0 0;
    font-size: 12px;
    color: #94a3b8;
}

.wp-bs-sub-picker {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wp-bs-btn-eyedropper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
}

.wp-bs-picker-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #090e1a;
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.wp-bs-native-color {
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    cursor: pointer;
}

.wp-bs-hex-input {
    width: 80px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: monospace;
    font-size: 12px;
    font-weight: 600;
    outline: none;
    text-transform: uppercase;
}

/* Presets Sections */
.wp-bs-presets-section {
    margin-top: 24px;
}

.wp-bs-section-title {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wp-bs-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.wp-bs-color-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wp-bs-color-card:hover {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.2);
}

.wp-bs-color-card.active {
    background: #1e293b;
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6;
}

.wp-bs-card-swatch {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.wp-bs-card-meta {
    display: flex;
    flex-direction: column;
}

.wp-bs-card-name {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
}

.wp-bs-card-hex {
    font-family: monospace;
    font-size: 11px;
    color: #94a3b8;
}

/* Tool Panel / Wallpaper */
.wp-bs-tool-panel {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 16px 20px;
}

.wp-bs-panel-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.wp-bs-panel-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wp-bs-panel-desc {
    margin: 4px 0 0;
    font-size: 12px;
    color: #94a3b8;
}

.wp-bs-wallpaper-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wp-bs-btn-download-wp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1e293b;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.wp-bs-btn-download-wp:hover {
    background: #2563eb;
    border-color: #2563eb;
}

/* Diagnostics Grid */
.wp-bs-diag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.wp-bs-diag-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wp-bs-diag-tag {
    font-size: 10px;
    font-family: monospace;
    font-weight: 700;
    color: #3b82f6;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.wp-bs-diag-title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.wp-bs-diag-desc {
    margin: 0 0 16px;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.6;
}

.wp-bs-btn-diag-run {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #1e293b;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wp-bs-btn-diag-run:hover {
    background: #2563eb;
    border-color: #2563eb;
}

/* Tools Grid */
.wp-bs-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.wp-bs-tool-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wp-bs-box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.wp-bs-box-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wp-bs-box-desc {
    margin: 0 0 16px;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
}

.wp-bs-btn-box-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #1e293b;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 9px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.wp-bs-btn-box-action:hover {
    background: #334155;
}

/* Toggle Switch */
.wp-bs-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}
.wp-bs-switch input { opacity: 0; width: 0; height: 0; }
.wp-bs-slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #334155; transition: .2s; border-radius: 20px;
}
.wp-bs-slider:before {
    position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px;
    background-color: white; transition: .2s; border-radius: 50%;
}
input:checked + .wp-bs-slider { background-color: #2563eb; }
input:checked + .wp-bs-slider:before { transform: translateX(16px); }

/* Sounds Buttons */
.wp-bs-sound-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wp-bs-btn-sound {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
}

.wp-bs-btn-sound.active {
    background: #d97706;
    color: #ffffff;
    border-color: #f59e0b;
}

.wp-bs-sound-stop {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.wp-bs-badge-offline {
    font-size: 10px;
    font-family: monospace;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
}

.wp-bs-text-input {
    width: 100%;
    background: #090e1a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 8px;
    outline: none;
}

/* ==========================================================================
   FULLSCREEN MODAL & HUD
   ========================================================================== */
.wp-bs-fullscreen-modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 999999999;
    overflow: hidden;
    user-select: none;
    transition: background-color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-bs-hud {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 18px;
    border-radius: 9999px;
    color: #ffffff;
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.wp-bs-hud.hidden {
    opacity: 0;
    transform: translate(-50%, -20px);
    pointer-events: none;
}

.wp-bs-hud-left, .wp-bs-hud-center, .wp-bs-hud-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wp-bs-hud-dot {
    width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.4);
}

.wp-bs-hud-hex {
    font-family: monospace; font-size: 13px; font-weight: 700;
}

.wp-bs-hud-input {
    width: 22px; height: 22px; border: none; background: none; cursor: pointer;
}

.wp-bs-hud-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wp-bs-hud-btn:hover { background: rgba(255, 255, 255, 0.22); }
.wp-bs-hud-btn.active { background: #2563eb; border-color: #3b82f6; }

.wp-bs-hud-tip { font-size: 11px; color: rgba(255, 255, 255, 0.6); }

.wp-bs-hud-close {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; cursor: pointer;
}
.wp-bs-hud-close:hover { background: #ef4444; color: #fff; }

/* Overlays inside fullscreen */
.wp-bs-clean-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(to right, rgba(0,0,0,0.06) 1px, transparent 1px), linear-gradient(to bottom, rgba(0,0,0,0.06) 1px, transparent 1px);
    background-size: 40px 40px;
}

.wp-bs-backlight-marks {
    position: absolute; inset: 0; pointer-events: none;
    font-family: monospace; font-size: 12px; color: rgba(255,255,255,0.4);
}
.wp-bs-corner-tl { position: absolute; top: 20px; left: 20px; }
.wp-bs-corner-tr { position: absolute; top: 20px; right: 20px; }
.wp-bs-corner-bl { position: absolute; bottom: 20px; left: 20px; }
.wp-bs-corner-br { position: absolute; bottom: 20px; right: 20px; }
.wp-bs-center-target { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 24px; color: rgba(255,255,255,0.3); }

.wp-bs-gradient-ramps {
    position: absolute; inset: 0; pointer-events: none;
    flex-direction: column; width: 100%; height: 100%;
}
.wp-bs-ramp { flex: 1; width: 100%; }

.wp-bs-modal-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    transition: transform 1s ease;
}

.wp-bs-center-msg {
    font-size: 6vw;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.wp-bs-center-clock {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.wp-bs-clock-digits {
    font-size: 12vw;
    font-family: monospace;
    font-weight: 200;
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.wp-bs-clock-sub {
    font-size: 2vw;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
    text-transform: capitalize;
}

.wp-bs-center-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,0.5);
    padding: 16px 28px;
    border-radius: 16px;
    margin-top: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}
.wp-bs-timer-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #10b981; }
.wp-bs-timer-digits { font-size: 48px; font-family: monospace; font-weight: 700; color: #ffffff; }

/* Inline bar & button shortcodes */
.wp-blackscreen-inline-bar {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 14px; background: #1e293b; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1); color: #fff;
}
.wp-bs-inline-color { width: 30px; height: 30px; border: none; background: none; cursor: pointer; }
.wp-bs-btn-launch { background: #2563eb; color: #fff; border: none; padding: 7px 14px; border-radius: 6px; font-weight: 600; cursor: pointer; }
.wp-bs-standalone-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #0f172a; color: #fff; border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 20px; border-radius: 8px; font-weight: 600; cursor: pointer;
}
