@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --brand-primary: #84cc16;
    --brand-dark: #0f172a;
    --card-bg: #1e293b;
    --card-border: #334155;
    --bg-main: #0b0f19;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: #f8fafc;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Color Card & Swatches */
.swatch-card {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.swatch-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(132, 204, 22, 0.35);
}

/* Lighting Simulation Effects */
.light-day {
    filter: brightness(1) contrast(1) sepia(0);
}

.light-warm {
    filter: brightness(0.96) contrast(1.05) sepia(0.28) saturate(1.15) hue-rotate(-10deg);
}

.light-cool {
    filter: brightness(1.04) contrast(0.98) sepia(0.12) saturate(0.9) hue-rotate(15deg);
}

/* Room Wall Simulation */
.room-scene {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: 0.875rem;
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.45);
    background-color: #000;
}

.room-wall {
    position: absolute;
    inset: 0;
    transition: background-color 0.35s ease, filter 0.3s ease;
}

.room-shadow-ambient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.2) 0%, rgba(0, 0, 0, 0.5) 80%);
    pointer-events: none;
}

.room-floor {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(to top, #2b1d14, #4a3525);
    border-top: 5px solid #cbd5e1;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5);
}

.room-furniture-sofa {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 60px;
    background: #1e293b;
    border-radius: 12px 12px 4px 4px;
    border-top: 4px solid #334155;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

.room-furniture-sofa::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 10px;
    right: 10px;
    height: 28px;
    background: #0f172a;
    border-radius: 6px;
}

.room-lamp {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 30px;
    background: #f8fafc;
    border-radius: 50% 50% 10% 10%;
    box-shadow: 0 0 45px 15px rgba(255, 255, 230, 0.5);
}

.room-frame {
    position: absolute;
    top: 55px;
    right: 40px;
    width: 55px;
    height: 75px;
    border: 4px solid #f8fafc;
    background: #334155;
    border-radius: 4px;
    box-shadow: 4px 6px 12px rgba(0, 0, 0, 0.35);
}

/* Animations */
@keyframes pop-in {
    0% { transform: scale(0.96); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.animate-pop-in {
    animation: pop-in 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Toast notifications */
.toast-notice {
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.25s ease-out;
}
.toast-notice.show {
    transform: translateY(0);
    opacity: 1;
}

/* Alba-style Hue Swatch Buttons */
.alba-hue-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.5rem;
    border-radius: 0.875rem;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    min-width: 60px;
}

.alba-hue-btn:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.alba-hue-circle {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.alba-hue-btn:hover .alba-hue-circle {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    transform: scale(1.08);
}

.alba-hue-btn.is-active {
    background: rgba(132, 204, 22, 0.08);
    border-color: rgba(132, 204, 22, 0.4);
}

.alba-hue-btn.is-active .alba-hue-circle {
    border-color: #84cc16;
    box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.3), 0 4px 12px rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

.alba-hue-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.alba-hue-btn:hover .alba-hue-label,
.alba-hue-btn.is-active .alba-hue-label {
    color: #f8fafc;
}

.alba-hue-btn.is-active .alba-hue-label {
    color: #a3e635;
    font-weight: 700;
}
