/* AURA (아우라 AI) - Premium Aurora-Glow Glassmorphism Design System */
/* Typography and layout revamped for a luxury beauty-tech experience */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

:root {
    --bg-light: #faf9f6;
    --bg-surface: rgba(255, 255, 255, 0.55);
    --bg-surface-solid: #ffffff;
    --border-color: rgba(15, 23, 42, 0.05);
    
    /* Brand Accent Colors */
    --primary: #6366f1; /* Gentle Indigo */
    --primary-glow: rgba(99, 102, 241, 0.15);
    
    /* Aceternity Background Gradient Animation vars */
    --gradient-background-start: rgb(245, 244, 240);
    --gradient-background-end: rgb(235, 233, 225);
    --first-color: 245, 235, 224;
    --second-color: 227, 231, 235;
    --third-color: 240, 235, 244;
    --fourth-color: 235, 238, 232;
    --fifth-color: 248, 240, 230;
    --pointer-color: 210, 215, 225;
    --size: 80%;
    --blending-value: hard-light;
    
    /* Spring Warm Colors */
    --spring-primary: #ff8a5c;
    --spring-glow: rgba(255, 138, 92, 0.2);
    
    /* Summer Cool Colors */
    --summer-primary: #38bdf8;
    --summer-glow: rgba(56, 189, 248, 0.2);
    
    /* Autumn Warm Colors */
    --autumn-primary: #c2410c;
    --autumn-glow: rgba(194, 65, 12, 0.2);
    
    /* Winter Cool Colors */
    --winter-primary: #db2777;
    --winter-glow: rgba(219, 39, 119, 0.2);
    
    --text-main: #0f172a;      /* Obsidian Black */
    --text-muted: #475569;     /* Slate Gray */
    --text-dim: #94a3b8;       /* Silver Gray */
    
    --card-shadow: 0 30px 60px rgba(15, 23, 42, 0.02), 0 1px 2px rgba(15, 23, 42, 0.005);
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); /* Ultra-smooth ease-out */
    
    /* Status Badges */
    --neon-green: #10b981;
    --neon-yellow: #f59e0b;
    --magenta: #ec4899;
}

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

body {
    background-color: transparent; /* Allowed by aura-bg-container showing behind */
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', 'Noto Sans KR', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.1);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 23, 42, 0.25);
}

/* Aceternity Background Gradient Animation container */
.hidden-svg-filter {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

.aura-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(40deg, var(--gradient-background-start), var(--gradient-background-end));
    transition: background 2.5s ease;
}

.gradients-container {
    width: 100%;
    height: 100%;
    filter: url(#blurMe) blur(40px);
}

.g-blob {
    position: absolute;
    width: var(--size);
    height: var(--size);
    top: calc(50% - var(--size) / 2);
    left: calc(50% - var(--size) / 2);
    mix-blend-mode: var(--blending-value);
    opacity: 0.35;
    pointer-events: none;
    transition: background 2.5s ease;
}

.animate-first {
    background: radial-gradient(circle at center, rgba(var(--first-color), 0.75) 0, rgba(var(--first-color), 0) 50%) no-repeat;
    transform-origin: center center;
    animation: moveVertical 30s ease infinite;
}

.animate-second {
    background: radial-gradient(circle at center, rgba(var(--second-color), 0.75) 0, rgba(var(--second-color), 0) 50%) no-repeat;
    transform-origin: calc(50% - 400px);
    animation: moveInCircle 20s linear infinite;
}

.animate-third {
    background: radial-gradient(circle at center, rgba(var(--third-color), 0.75) 0, rgba(var(--third-color), 0) 50%) no-repeat;
    transform-origin: calc(50% + 400px);
    animation: moveInCircle 40s linear infinite;
}

.animate-fourth {
    background: radial-gradient(circle at center, rgba(var(--fourth-color), 0.7) 0, rgba(var(--fourth-color), 0) 50%) no-repeat;
    transform-origin: calc(50% - 200px);
    animation: moveHorizontal 40s ease infinite;
    opacity: 0.25;
}

.animate-fifth {
    background: radial-gradient(circle at center, rgba(var(--fifth-color), 0.75) 0, rgba(var(--fifth-color), 0) 50%) no-repeat;
    transform-origin: calc(50% - 800px) calc(50% + 800px);
    animation: moveInCircle 20s ease infinite;
}

.interactive {
    background: radial-gradient(circle at center, rgba(var(--pointer-color), 0.75) 0, rgba(var(--pointer-color), 0) 50%) no-repeat;
    width: 60vw;
    height: 60vw;
    top: -30vw;
    left: -30vw;
    opacity: 0.35;
    mix-blend-mode: var(--blending-value);
    transition: background 2.5s ease;
}

@keyframes moveHorizontal {
    0% { transform: translateX(0px) translateY(0px); }
    50% { transform: translateX(25%) translateY(-10%); }
    100% { transform: translateX(0px) translateY(0px); }
}

@keyframes moveVertical {
    0% { transform: translateY(0px); }
    50% { transform: translateY(50%); }
    100% { transform: translateY(0px); }
}

@keyframes moveInCircle {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
    100% { transform: rotate(360deg); }
}


/* App Container */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-icon {
    font-size: 1.75rem;
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.2));
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.85rem;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #0f172a 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding-right: 6px;
}

.status-pill {
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.04);
    color: var(--text-muted);
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.06em;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 2.2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px var(--primary); }
    100% { transform: scale(0.95); opacity: 0.6; }
}

/* Main Layout Grid */
.main-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Frosted Glassmorphism Panel */
.panel {
    background: var(--bg-surface);
    backdrop-filter: blur(35px) saturate(170%);
    -webkit-backdrop-filter: blur(35px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 16px;
    padding: 2.25rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.panel:hover {
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 40px 90px rgba(15, 23, 42, 0.035);
}

.panel-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-left: 3px solid var(--primary);
    padding-left: 0.75rem;
    letter-spacing: -0.01em;
}

/* Left Panel: Scanner/Uploader */
.scanner-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.upload-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px dashed rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.35);
    transition: var(--transition);
}

.upload-container:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.02);
}

.upload-icon {
    font-size: 2.5rem;
    margin-bottom: 0.85rem;
    animation: floatIcon 3s ease-in-out infinite alternate;
}

@keyframes floatIcon {
    to { transform: translateY(-6px); }
}

.upload-text {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
}

.upload-subtext {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Image Viewer & Canvas Overlays */
.viewer-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.4);
    display: none;
    aspect-ratio: 4 / 3;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.teeth-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.analysis-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: all;
    cursor: grab;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.analysis-canvas:active {
    cursor: grabbing;
}

/* Laser Scan Line Overlay */
.scan-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    box-shadow: 0 0 12px var(--primary);
    z-index: 5;
    pointer-events: none;
    display: none;
}

@keyframes scan {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

.scanning .scan-line {
    display: block;
    animation: scan 2.5s ease-in-out infinite;
}

.scanning-overlay-text {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    display: none;
}

.spinner {
    width: 45px;
    height: 45px;
    border: 3px solid rgba(15, 23, 42, 0.02);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.scanning-log {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    height: 1.5rem;
    font-weight: 600;
}

/* Action Buttons (Premium Frosted Pill Styles) */
#file-input {
    display: none;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

.btn {
    flex: 1;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    border: none;
    outline: none;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
}

.btn-primary:hover {
    background: #1e293b;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(15, 23, 42, 0.04);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}

/* Adjustments Panel (Draping Toolbar) */
.adjustments-panel {
    display: none;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.04);
    padding-top: 1.25rem;
}

.drape-bar {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.btn-drape {
    flex: 1;
    min-width: 80px;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid rgba(15, 23, 42, 0.03);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.45);
    color: var(--text-muted);
}

.btn-drape-spring:hover, .btn-drape-spring.active {
    background: var(--spring-primary);
    color: #ffffff;
    box-shadow: 0 8px 16px var(--spring-glow);
    border-color: transparent;
}
.btn-drape-summer:hover, .btn-drape-summer.active {
    background: var(--summer-primary);
    color: #ffffff;
    box-shadow: 0 8px 16px var(--summer-glow);
    border-color: transparent;
}
.btn-drape-autumn:hover, .btn-drape-autumn.active {
    background: var(--autumn-primary);
    color: #ffffff;
    box-shadow: 0 8px 16px var(--autumn-glow);
    border-color: transparent;
}
.btn-drape-winter:hover, .btn-drape-winter.active {
    background: var(--winter-primary);
    color: #ffffff;
    box-shadow: 0 8px 16px var(--winter-glow);
    border-color: transparent;
}


/* Right Panel: Results Dashboard Styles */
.results-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.results-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem;
    color: var(--text-muted);
    text-align: center;
}

.results-placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    opacity: 0.25;
    animation: float 4s ease-in-out infinite alternate;
}

@keyframes float {
    to { transform: translateY(-8px); }
}

.results-content {
    display: none;
    flex-direction: column;
    gap: 1.75rem;
}

/* Dashboard Score HUD */
.score-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--card-shadow);
}

.score-gauge-container {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

.score-svg {
    transform: rotate(-90deg);
}

.gauge-bg {
    fill: none;
    stroke: rgba(15, 23, 42, 0.02);
    stroke-width: 8;
}

.gauge-progress {
    fill: none;
    stroke: var(--primary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 282.7;
    stroke-dashoffset: 282.7;
    transition: stroke-dashoffset 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.score-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.score-number {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1;
}

.score-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    margin-top: 0.15rem;
}

.score-info {
    flex: 1;
}

.score-grade {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    background: linear-gradient(135deg, #0f172a, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.score-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 12px;
    padding: 1.1rem;
    transition: var(--transition);
}

.metric-card:hover {
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.metric-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.metric-badge {
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.badge-good {
    background: rgba(16, 185, 129, 0.05);
    color: var(--neon-green);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.badge-caution {
    background: rgba(245, 158, 11, 0.05);
    color: var(--neon-yellow);
    border: 1px solid rgba(245, 158, 11, 0.1);
}

.metric-value {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.15rem;
    color: var(--text-main);
}

.contrast-color-preview {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.25rem;
    background: rgba(15, 23, 42, 0.02);
    padding: 0.2rem 0.4rem;
    border-radius: 8px;
    width: fit-content;
}

.color-chip-container {
    display: flex;
    align-items: center;
    gap: 3px;
}

.color-chip {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.color-chip-label {
    font-size: 0.6rem;
    color: var(--text-muted);
}

.metric-desc {
    font-size: 0.7rem;
    color: var(--text-dim);
}

/* 4-Quadrant Color Wheel SVG Map */
.chart-section {
    border-top: 1px solid rgba(15, 23, 42, 0.04);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chart-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.color-wheel-container {
    width: 100%;
    margin: 0.75rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 1.25rem;
}

.color-quadrant {
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.color-quadrant-bg {
    stroke: #ffffff;
    stroke-width: 3.5px;
    transition: all 0.4s ease;
}

.color-quadrant:hover {
    transform: scale(1.04);
}

.color-quadrant.active {
    transform: scale(1.06);
    filter: drop-shadow(0 15px 25px rgba(99, 102, 241, 0.12));
}

.color-quadrant.active .color-quadrant-bg {
    stroke: var(--text-main);
    stroke-width: 4px;
}

.wheel-text {
    font-size: 11px;
    font-weight: 800;
    fill: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    text-anchor: middle;
}

.wheel-subtext {
    font-size: 8px;
    font-weight: 600;
    fill: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    text-anchor: middle;
}

/* Seasonal Result Display Swatches Card */
.season-detail-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 0.5rem;
    display: none;
    box-shadow: var(--card-shadow);
    animation: fadeIn 0.5s ease;
}

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

.tooth-detail-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    margin-bottom: 0.6rem;
}

.tooth-detail-num {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tooth-detail-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.tooth-detail-status {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.season-color-palette {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.palette-swatch {
    flex: 1;
    min-width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    cursor: pointer;
}

.palette-swatch:hover {
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
}

/* AI Recommendations Card Section */
.recommendations-section {
    border-top: 1px solid rgba(15, 23, 42, 0.04);
    padding-top: 1.5rem;
}

.tips-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tip-item {
    display: flex;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.55);
    padding: 1.1rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.005);
    transition: var(--transition);
}

.tip-item:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.tip-icon {
    font-size: 1.25rem;
}

.tip-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--text-main);
}

.tip-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.55;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* Camera Stream & Capture Modal */
.camera-modal {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
    padding: 1rem;
}

.camera-container {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 1.75rem;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
}

.video-preview {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    object-fit: cover;
    background-color: #000;
    transform: scaleX(-1);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.camera-actions {
    display: flex;
    gap: 0.75rem;
}

/* Report Action Toolbar */
.report-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(15, 23, 42, 0.04);
    padding-top: 1.25rem;
}

/* Desktop Styles Override */
@media (min-width: 768px) {
    .app-container {
        padding: 3.5rem 2.5rem;
    }
    
    header {
        margin-bottom: 3.5rem;
    }
    
    .main-grid {
        display: grid;
        grid-template-columns: 1fr 1.15fr;
        gap: 3rem;
        align-items: start;
    }
}

/* Mobile Optimization Override (under 480px) */
@media (max-width: 480px) {
    .app-container {
        padding: 1rem 0.75rem;
    }
    
    header {
        margin-bottom: 1.5rem;
        padding-bottom: 0.85rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo-text {
        font-size: 1.45rem;
    }
    
    .status-pill {
        padding: 0.35rem 0.75rem;
        font-size: 0.6rem;
    }
    
    .panel {
        padding: 1.25rem;
        border-radius: 16px;
    }
    
    .panel-title {
        font-size: 1.15rem;
        margin-bottom: 1.25rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn {
        padding: 0.8rem 1.1rem;
        font-size: 0.8rem;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .metric-card {
        padding: 0.85rem;
        border-radius: 12px;
    }
    
    .metric-value {
        font-size: 1.1rem;
    }
    
    .score-section {
        padding: 1.5rem 1.15rem;
        gap: 1.25rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .score-gauge-container {
        width: 75px;
        height: 75px;
    }
    
    .score-grade {
        font-size: 1.15rem;
    }
}

/* Chroma-Calibration Console Glassmorphic Styles */
.calibration-console {
    margin-top: 1.25rem;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.015);
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.calibration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.calibration-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.calibration-tag {
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.08em;
}

.calibration-feature-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
}

.calibration-meta-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.calibration-color-chip {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    display: inline-block;
    transition: background-color 0.2s ease;
}

.btn-reset-cal {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 6px;
    padding: 0.25rem 0.55rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-reset-cal:hover {
    background: rgba(15, 23, 42, 0.08);
    color: var(--text-main);
}

.cal-body {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.cal-field-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cal-field-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: -0.01em;
}

.cal-hex-input-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    padding: 0.35rem 0.65rem;
    width: 110px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.cal-hex-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.cal-hex-prefix {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-dim);
    margin-right: 2px;
}

#cal-hex-input {
    border: none;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 800;
    width: 100%;
    outline: none;
    color: var(--text-main);
    text-transform: uppercase;
}

.cal-sliders-group {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    margin-bottom: 1.25rem;
}

.cal-slider-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cal-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cal-slider-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
}

.cal-slider-val {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-main);
}

/* Custom Sliders for Calibration Console */
.cal-slider-item input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 99px;
    outline: none;
    margin: 0;
    padding: 0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

/* Chrome/Safari Thumbs */
.cal-slider-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--text-main);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.cal-slider-item input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.18);
    border-color: var(--primary);
}

.cal-slider-item input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.08);
}

/* Firefox Thumbs */
.cal-slider-item input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--text-main);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.cal-slider-item input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.18);
    border-color: var(--primary);
}

/* Slider Track Gradients */
.cal-range-hue {
    background: linear-gradient(to right, 
        rgb(255,0,0) 0%, 
        rgb(255,255,0) 17%, 
        rgb(0,255,0) 33%, 
        rgb(0,255,255) 50%, 
        rgb(0,0,255) 67%, 
        rgb(255,0,255) 83%, 
        rgb(255,0,0) 100%
    );
}

/* Dynamic fallback tracks (JS overrides background images with dynamic HSL) */
.cal-range-sat {
    background: linear-gradient(to right, #808080, #ff0000);
}

.cal-range-light {
    background: linear-gradient(to right, #000000, #ff0000, #ffffff);
}

/* Preset Styling Simulator Section */
.cal-presets-section {
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.cal-presets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.cal-preset-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.25rem;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.04);
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: var(--transition);
}

.cal-preset-item:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.02);
}

.cal-preset-item.active {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.cal-preset-color {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.cal-preset-label {
    font-size: 0.62rem;
    font-weight: 800;
    color: var(--text-muted);
    text-align: center;
    word-break: keep-all;
    line-height: 1.2;
}

/* Mobile specific styling overrides for Calibration Console */
@media (max-width: 480px) {
    .calibration-console {
        padding: 1rem;
    }
    .cal-presets-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }
    .cal-preset-item {
        flex-direction: row;
        padding: 0.45rem;
        justify-content: flex-start;
        gap: 0.5rem;
    }
    .cal-preset-label {
        text-align: left;
    }
}

/* AURA Landing Info & Privacy Box */
.landing-info-box {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(15, 23, 42, 0.04);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 0.25rem;
}

.info-item-tips, .info-item-privacy {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.info-item-privacy {
    border-top: 1px solid rgba(15, 23, 42, 0.04);
    padding-top: 0.65rem;
}

.info-icon {
    font-size: 0.85rem;
    line-height: 1.4;
    flex-shrink: 0;
}

.info-text {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.45;
    word-break: keep-all;
}

/* Secondary Season & Confidence Badges */
.confidence-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.18rem 0.5rem;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.06);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.15);
    letter-spacing: 0.02em;
    display: inline-block;
}

.score-secondary-grade {
    animation: fadeIn 0.4s ease;
}

/* Footer Disclaimer Styles */
footer {
    margin-top: 3.5rem;
    border-top: 1px solid rgba(15, 23, 42, 0.04);
    padding-top: 1.75rem;
    padding-bottom: 2rem;
}

.footer-disclaimer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.disclaimer-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: -0.01em;
}

.disclaimer-text {
    font-size: 0.68rem;
    color: var(--text-dim);
    line-height: 1.55;
    word-break: keep-all;
}

.disclaimer-copyright {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-dim);
    margin-top: 0.75rem;
    letter-spacing: 0.02em;
}

/* Skeleton loader effect for pending data */
.skeleton-pulse {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.03) 25%, rgba(15, 23, 42, 0.08) 50%, rgba(15, 23, 42, 0.03) 75%);
    background-size: 200% 100%;
    animation: skeletonGlow 1.5s infinite;
    border-radius: 4px;
    color: transparent !important;
}

@keyframes skeletonGlow {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

