* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #1a1a1a;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

.container {
    max-width: fit-content;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    justify-content: center;
    align-items: start;
    padding: 80px 24px;
    box-sizing: border-box;
}


/* Rive Canvas Container */
.rive-container {
    width: 420px;
    height: 600px;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    background: transparent;
    flex-shrink: 0;
    box-sizing: border-box;
}

#riveCanvas {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 40px;
    position: absolute;
    top: 0;
    left: 0;
    background: #4A90E2;
    object-fit: cover;
}

/* Controls Panel */
.controls-panel {
    overflow-y: auto;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

.control-section {
    margin-bottom: 32px;
    background: #2a2a2a;
    border-radius: 40px;
    padding: 24px;

}

.control-section h3 {
    color: #e0e0e0;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 400;
}

/* Limitless Toggle */
.limitless-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #1a1a1a;
    border-radius: 32px;
    margin-bottom: 20px;
}

.limitless-label {
    color: #e0e0e0;
    font-size: 16px;
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background: #4A90E2;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* Technique Buttons */
.technique-buttons {
    display: flex;
    gap: 12px;
}

.technique-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    background: #1a1a1a;
    border: 2px solid transparent;
    border-radius: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 100px;
}

.technique-btn:hover {
    border-color: #4A90E2;
    transform: translateY(-2px);
}

.technique-btn.active {
    border-color: #4A90E2;
    background: #1f2a3a;
}

.technique-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    overflow: visible;
}


.technique-text {
    text-align: center;
}

.technique-name {
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.technique-subtitle {
    color: #999;
    font-size: 12px;
}

/* Weather Section */
.weather-chips {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.weather-chip {
    flex: 1;
    padding: 12px 16px;
    background: #1a1a1a;
    border: none;
    border-radius: 20px;
    color: #999;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.weather-chip:hover {
    background: #000;
}

.weather-chip.active {
    background: white;
    color: #1a1a1a;
}

/* Slider Controls */
.slider-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.slider-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slider-label {
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
}

.slider-wrapper {
    position: relative;
    background: #1a1a1a;
    border-radius: 3px;
    height: 6px;
}

.weather-slider {
    width: 100%;
    height: 18px;
    border-radius: 3px;
    background: transparent;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0;
    margin-top: -6px;
    margin-bottom: -6px;
}

.weather-slider::-webkit-slider-runnable-track {
    height: 6px;
    background: transparent;
    border-radius: 3px;
}

.weather-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    margin-top: -6px;
    position: relative;
}

.weather-slider::-moz-range-track {
    height: 6px;
    background: transparent;
    border-radius: 3px;
}

.weather-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
}

.weather-slider::-webkit-slider-runnable-track {
    height: 6px;
    background: transparent;
    border-radius: 3px;
}

.weather-slider::-moz-range-track {
    height: 6px;
    background: transparent;
    border-radius: 3px;
}

/* Progress fill using pseudo-element */
.slider-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 6px;
    width: var(--slider-progress, 0%);
    background: #4A90E2;
    border-radius: 3px;
    z-index: 1;
    pointer-events: none;
}

/* Scrollbar styling */
.controls-panel::-webkit-scrollbar {
    width: 8px;
}

.controls-panel::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.controls-panel::-webkit-scrollbar-thumb {
    background: #4A90E2;
    border-radius: 4px;
}

.controls-panel::-webkit-scrollbar-thumb:hover {
    background: #357ABD;
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        padding: 20px 16px;
        gap: 20px;
    }

    .rive-container {
        width: 100%;
        max-width: 320px;
        height: 457px; /* 320 * (600/420) = 457.14px - scaled proportionally */
        margin: 0 auto;
        aspect-ratio: 420 / 600;
    }

    .controls-panel {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }

    .control-section {
        padding: 20px;
    }
}