/* ==========================================================================
   Kamos AlgoRhythm - Stylesheet
   Color Harmony Wheel, Neon Geometric Synesthesia & Glassmorphism
   ========================================================================== */

:root {
    --bg-dark: #070B16;
    --panel-bg: rgba(15, 23, 42, 0.88);
    --panel-border: rgba(51, 65, 85, 0.7);
    --primary-sky: #38BDF8;
    --primary-indigo: #818CF8;
    --primary-rose: #F43F5E;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
}

body {
    font-family: 'Noto Sans JP', 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Glass Panels */
.dark-glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--panel-border);
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
}

/* Main Studio Grid */
.algorhythm-studio-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1rem;
    min-height: 580px;
}

@media (max-width: 1050px) {
    .algorhythm-studio-grid {
        grid-template-columns: 1fr;
    }
}

/* Wheel Canvas Viewport */
.wheel-canvas-stage {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 480px;
    background: radial-gradient(circle at 50% 50%, #0F172A 0%, #060913 100%);
    border-radius: 1rem;
    overflow: hidden;
    touch-action: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

#harmony-wheel-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
}

/* Harmony Rule Pills */
.harmony-rule-btn {
    padding: 0.45rem 0.85rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(51, 65, 85, 0.8);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.harmony-rule-btn:hover {
    color: #ffffff;
    border-color: var(--primary-sky);
    transform: translateY(-1px);
}

.harmony-rule-btn.active {
    color: #ffffff;
    background: #0284C7;
    border-color: #38BDF8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

/* Instrument & Mode Segmented Buttons */
.segmented-btn {
    flex: 1;
    padding: 0.4rem 0.6rem;
    border-radius: 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.segmented-btn:hover {
    color: #ffffff;
}

.segmented-btn.active {
    background: #38BDF8;
    color: #0A0F1D;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.4);
}

/* Sliders */
.type-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    background: #1E293B;
    border-radius: 5px;
    outline: none;
    transition: background 0.2s;
}

.type-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #38BDF8;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.7);
    border: 2px solid #ffffff;
    transition: transform 0.1s;
}

.type-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Swatches */
.color-swatch-card {
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Scrollbars */
.custom-scroll::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
.custom-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scroll::-webkit-scrollbar-thumb {
    background: rgba(51, 65, 85, 0.8);
    border-radius: 4px;
}
