/* Luxury Tech Sleep Observation UI */
.sleep-luxury-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: auto;
    padding: 40px 16px 24px;
    margin-top: 16px;
    background: radial-gradient(circle at center 30%, #1a1b2e 0%, #0d0f1a 100%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 40px rgba(100, 100, 255, 0.03), 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

/* Glow effects */
.sleep-luxury-container::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(147, 112, 219, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.sleep-luxury-center {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: auto;
    width: 100%;
    margin-bottom: 24px;
}

.sleep-luxury-state {
    z-index: 1;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.sleep-luxury-notice {
    z-index: 1;
    font-size: 13px;
    color: #ff8787;
    text-align: center;
    margin-bottom: 16px;
}
.sleep-luxury-notice:empty {
    display: none;
}

/* Big Play Button */
.sleep-luxury-play {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #7a63a5, #4b3e7c);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(122, 99, 165, 0.4), inset 0 2px 0 rgba(255,255,255,0.2);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    position: relative;
}

.sleep-luxury-play::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(122, 99, 165, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sleep-luxury-play:hover {
    transform: scale(1.05);
    box-shadow: 0 16px 40px rgba(122, 99, 165, 0.6), inset 0 2px 0 rgba(255,255,255,0.3);
}

.sleep-luxury-play:hover::after {
    opacity: 1;
    transform: scale(1.1);
}

.sleep-luxury-play:active {
    transform: scale(0.95);
}

.sleep-luxury-play:disabled {
    opacity: 0.6;
    cursor: wait;
    animation: pulse-busy 1.5s infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

.sleep-luxury-play[hidden] {
    display: none !important;
}

/* Live View (Monitoring) */
.sleep-luxury-live {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.live-data-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.sleep-luxury-ripple {
    position: absolute;
    top: 50%; left: 50%;
    width: 200px; height: 200px;
    margin-left: -100px;
    margin-top: -100px;
    pointer-events: none;
    z-index: -1;
    border-radius: 50%;
    border: 2px solid rgba(147, 112, 219, 0.4);
    animation: luxury-ripple 3s linear infinite;
    opacity: 0;
}

.sleep-luxury-ripple.delay {
    animation-delay: 1.5s;
}

@keyframes luxury-ripple {
    0% { transform: scale(0.8); opacity: 1; border-width: 2px; }
    100% { transform: scale(2); opacity: 0; border-width: 0px; }
}

.sleep-luxury-data {
    display: flex;
    justify-content: center;
    gap: 32px;
    background: rgba(0,0,0,0.2);
    padding: 16px 32px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
}

.data-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.data-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.live-time {
    font-size: 20px;
    font-weight: 300;
    color: white;
    font-variant-numeric: tabular-nums;
    font-family: monospace;
}

.sleep-luxury-meter {
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.1);
    overflow: hidden;
    margin-top: 8px;
    border: none;
}

.sleep-luxury-meter::-webkit-meter-bar { background: transparent; }
.sleep-luxury-meter::-webkit-meter-optimum-value { background: linear-gradient(90deg, #7a63a5, #b1abd5); }
.sleep-luxury-meter::-moz-meter-bar { background: linear-gradient(90deg, #7a63a5, #b1abd5); }

.sleep-luxury-stop {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.05);
    color: #ff6b6b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.sleep-luxury-stop:hover {
    background: rgba(255,107,107,0.15);
    color: #ff8787;
    transform: scale(1.05);
}

.sleep-luxury-implicit-consent {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    text-align: center;
    max-width: 280px;
    margin: 16px auto 0;
    line-height: 1.6;
}

/* Bottom Sheet / Prep Settings */
.sleep-luxury-prep {
    width: 100%;
    z-index: 1;
}

.sleep-luxury-settings {
    background: rgba(255,255,255,0.02);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    transition: background 0.3s ease;
}

.sleep-luxury-settings[open] {
    background: rgba(255,255,255,0.04);
}

.sleep-luxury-settings summary {
    padding: 16px 20px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.sleep-luxury-settings summary::-webkit-details-marker { display: none; }

.settings-content {
    padding: 0 20px 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 8px;
    padding-top: 16px;
}

.settings-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin: 16px 0 12px;
}

/* Secondary Actions */
.sleep-luxury-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    z-index: 1;
}

.sleep-btn-alt {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.sleep-btn-alt:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}
.sleep-btn-alt[hidden] {
    display: none !important;
}

/* Original overrides for inside settings content */
.sleep-luxury-prep .obs-field,
.sleep-luxury-prep .obs-context label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.sleep-luxury-prep select {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.sleep-luxury-prep .obs-notice {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    line-height: 1.5;
    margin: 12px 0;
    padding: 12px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
}

.sleep-luxury-prep .obs-consent {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    align-items: flex-start;
    line-height: 1.5;
    margin-top: 16px;
}

.sleep-luxury-prep .obs-consent input {
    margin-top: 2px;
    accent-color: #7a63a5;
}
