/* ==========================================================================
   AURA Weather-based Curation Web App - Premium Design System (Vanilla CSS)
   ========================================================================== */

/* --- Fonts & Base Reset --- */
:root {
    --font-primary: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    --font-numeric: 'Outfit', sans-serif;

    /* Theme Color Tokens (Dark Mode by Default for Premium Neon Aesthetics) */
    --bg-base: #0b0b14;
    --card-bg: rgba(20, 20, 35, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-glow: rgba(255, 255, 255, 0.15);
    
    --text-primary: #f1f1f6;
    --text-secondary: #a0a0ba;
    --text-muted: #6f6f87;

    /* Neon Accent Lights */
    --accent-blue: #00d2ff;
    --accent-blue-rgb: 0, 210, 255;
    --accent-purple: #9d4edd;
    --accent-purple-rgb: 157, 78, 221;
    --accent-mint: #06d6a0;
    --accent-mint-rgb: 6, 214, 160;
    --accent-orange: #ff9f1c;
    --accent-orange-rgb: 255, 159, 28;
    --accent-red: #ff5e62;
    --accent-red-rgb: 255, 94, 98;
    
    --glow-strength: 20px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 40px;
}

/* --- Dynamic Weather Themes (Background Gradients/Orbs Adjustments) --- */
/* Clear Day */
body.weather-clear {
    --glow-color-1: rgba(var(--accent-orange-rgb), 0.2);
    --glow-color-2: rgba(var(--accent-blue-rgb), 0.25);
    --glow-color-3: rgba(var(--accent-purple-rgb), 0.1);
}
/* Rain / Cold Weather */
body.weather-rain {
    --glow-color-1: rgba(43, 87, 151, 0.25);
    --glow-color-2: rgba(var(--accent-purple-rgb), 0.15);
    --glow-color-3: rgba(var(--accent-blue-rgb), 0.2);
}
/* Fine Dust */
body.weather-dust {
    --glow-color-1: rgba(184, 134, 11, 0.2);
    --glow-color-2: rgba(100, 100, 100, 0.25);
    --glow-color-3: rgba(var(--accent-orange-rgb), 0.1);
}
/* Cold Wave Alert */
body.weather-cold {
    --glow-color-1: rgba(var(--accent-blue-rgb), 0.3);
    --glow-color-2: rgba(255, 255, 255, 0.15);
    --glow-color-3: rgba(15, 32, 67, 0.4);
}

/* --- Ambient Glowing Orbs Background --- */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--glow-color-1, rgba(0, 210, 255, 0.2));
    top: -100px;
    left: -100px;
    animation: floatOrb 15s ease-in-out infinite alternate;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: var(--glow-color-2, rgba(157, 78, 221, 0.2));
    bottom: -150px;
    right: -100px;
    animation: floatOrb 20s ease-in-out infinite alternate-reverse;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--glow-color-3, rgba(6, 214, 160, 0.15));
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatOrb 25s ease-in-out infinite alternate;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 80px) scale(1.1); }
}

/* --- Glassmorphism Base Card --- */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--card-border-glow);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

/* --- App Container Grid --- */
.app-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-height: 100vh;
}

/* --- Premium Header --- */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: var(--border-radius-md);
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.logo-text {
    font-family: var(--font-numeric);
    font-weight: 800;
    font-size: 26px;
    letter-spacing: 2px;
    background: linear-gradient(to right, #ffffff, #dcdcf0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-sub {
    font-family: var(--font-numeric);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
    border-left: 1px solid var(--text-muted);
    padding-left: 12px;
    margin-left: 5px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* --- Core Buttons UI --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    box-shadow: 0 4px 15px rgba(157, 78, 221, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 78, 221, 0.45);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-mint), var(--accent-blue));
    color: #0b0b14;
    box-shadow: 0 4px 15px rgba(6, 214, 160, 0.3);
    font-weight: 700;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 214, 160, 0.5);
    filter: brightness(1.05);
}

.btn-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.btn-block {
    width: 100%;
}

/* --- Segmented Controls --- */
.btn-group-segmented {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-segment {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.btn-segment.active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* --- Forms Elements --- */
.form-input, .form-select {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    padding: 12px 18px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition-smooth);
    outline: none;
}

.form-input:focus, .form-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.25);
}

.form-range {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: rgba(255,255,255,0.1);
    outline: none;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.5);
    transition: 0.15s;
}

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

/* --- Layout Grid --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 30px;
}

.dashboard-left-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.dashboard-right-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* --- Weather Status Card & Animations --- */
.weather-status-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.weather-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.weather-temp-block {
    display: flex;
    flex-direction: column;
}

.weather-temp {
    font-family: var(--font-numeric);
    font-weight: 800;
    font-size: 64px;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff, #c2c2d6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.weather-apparent {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.weather-icon-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.weather-icon {
    font-size: 48px;
    color: var(--accent-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 10px rgba(255, 159, 28, 0.4));
}

.weather-icon svg {
    width: 50px;
    height: 50px;
}

.icon-spin {
    animation: rotateSun 25s linear infinite;
}

@keyframes rotateSun {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.weather-region {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.08), rgba(255,255,255,0));
}

.weather-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.weather-detail-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-md);
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-label {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-label svg {
    width: 14px;
    height: 14px;
}

.detail-value {
    font-family: var(--font-numeric);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    width: fit-content;
}

.badge-green {
    background: rgba(6, 214, 160, 0.15);
    color: var(--accent-mint);
    border: 1px solid rgba(6, 214, 160, 0.3);
}

.badge-yellow {
    background: rgba(255, 159, 28, 0.15);
    color: var(--accent-orange);
    border: 1px solid rgba(255, 159, 28, 0.3);
}

.badge-red {
    background: rgba(255, 94, 98, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(255, 94, 98, 0.3);
}

.cold-wave-banner {
    background: linear-gradient(90deg, rgba(0, 210, 255, 0.2), rgba(157, 78, 221, 0.2));
    border: 1px solid rgba(0, 210, 255, 0.4);
    border-radius: var(--border-radius-md);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 13px;
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px rgba(0, 210, 255, 0.2); }
    100% { box-shadow: 0 0 15px rgba(0, 210, 255, 0.5); }
}

/* --- Curation AI Tip Card --- */
.curation-tip-card {
    padding: 25px;
}

.curation-tip-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.curation-tip-card h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.curation-tip-card h2 svg {
    color: var(--accent-blue);
    width: 20px;
    height: 20px;
}

.curation-stage-tag {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.1), rgba(157, 78, 221, 0.1));
    border: 1px solid rgba(157, 78, 221, 0.3);
    color: #d8b4fe;
    font-family: var(--font-numeric);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.curation-tips-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.curation-tips-text strong {
    color: var(--text-primary);
}

/* --- Feedback Widget --- */
.feedback-card {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feedback-card h3 {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-card h3 svg {
    color: var(--accent-purple);
    width: 20px;
    height: 20px;
}

.feedback-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.feedback-actions {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.btn-feedback {
    flex: 1;
    font-size: 12px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.btn-feedback:hover {
    transform: translateY(-2px);
    color: white;
}

.btn-feedback.cold:hover {
    background: rgba(0, 210, 255, 0.15);
    border-color: var(--accent-blue);
    box-shadow: 0 4px 12px rgba(0, 210, 255, 0.2);
}

.btn-feedback.normal:hover {
    background: rgba(6, 214, 160, 0.15);
    border-color: var(--accent-mint);
    box-shadow: 0 4px 12px rgba(6, 214, 160, 0.2);
}

.btn-feedback.hot:hover {
    background: rgba(255, 94, 98, 0.15);
    border-color: var(--accent-red);
    box-shadow: 0 4px 12px rgba(255, 94, 98, 0.2);
}

/* --- Outfit recommendations area --- */
.outfit-recommendations-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-title-row h2 {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-title-row h2 svg {
    color: var(--accent-blue);
    width: 24px;
    height: 24px;
}

.badge-style {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: var(--border-radius-md);
}

/* Clothes Grid & Premium Clothing Cards */
.clothes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.clothes-card {
    height: 320px;
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    perspective: 1000px;
}

.clothes-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.clothes-card:hover .clothes-card-inner {
    transform: rotateY(180deg);
}

.clothes-card-front, .clothes-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--card-border);
}

.clothes-card-front {
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
}

.clothes-image-area {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
}

.clothes-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.clothes-card:hover .clothes-image {
    transform: scale(1.08);
}

.clothes-category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(11, 11, 20, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.clothes-info-area {
    padding: 18px;
    background: rgba(20, 20, 30, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.clothes-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clothes-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clothes-style {
    font-size: 12px;
    color: var(--text-secondary);
}

.clothes-stage-indicator {
    font-family: var(--font-numeric);
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-blue);
}

.clothes-card-back {
    background: linear-gradient(135deg, rgba(20, 20, 35, 0.95), rgba(10, 10, 15, 0.98));
    transform: rotateY(180deg);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.clothes-detail-icon {
    font-size: 32px;
    color: var(--accent-purple);
    margin-bottom: 5px;
}

.clothes-detail-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.clothes-detail-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Skeleton loader for cards */
.clothes-card-skeleton {
    height: 320px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
}

.clothes-card-skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    animation: loadingShimmer 1.5s infinite;
}

@keyframes loadingShimmer {
    100% { left: 100%; }
}

/* --- Checklist Widget --- */
.checklist-card {
    padding: 25px;
}

.checklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checklist-header h2 {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checklist-header h2 svg {
    color: var(--accent-mint);
    width: 20px;
    height: 20px;
}

.checklist-count {
    font-family: var(--font-numeric);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-mint);
    background: rgba(6, 214, 160, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.checklist-add-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.checklist-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checklist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-md);
    padding: 12px 18px;
    transition: var(--transition-smooth);
}

.checklist-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    flex: 1;
}

/* Custom Checkbox Design */
.checkbox-container {
    display: inline-flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: var(--text-secondary);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    transition: 0.2s;
    display: inline-block;
    margin-right: 12px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: rgba(255, 255, 255, 0.15);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--accent-mint);
    border-color: var(--accent-mint);
    box-shadow: 0 0 10px rgba(6, 214, 160, 0.4);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid #0b0b14;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checklist-text {
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.checklist-item.checked {
    opacity: 0.55;
}

.checklist-item.checked .checklist-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.btn-delete-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 4px;
}

.btn-delete-item:hover {
    color: var(--accent-red);
    transform: scale(1.1);
}

/* --- Drawers (Simulator & History) --- */
.simulator-drawer, .history-drawer {
    position: fixed;
    top: 30px;
    bottom: 30px;
    width: 480px;
    z-index: 100;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.simulator-drawer {
    left: 30px;
    transform: translateX(0);
}

.simulator-drawer.hidden {
    transform: translateX(-520px);
    pointer-events: none;
}

.history-drawer {
    right: 30px;
    transform: translateX(0);
}

.history-drawer.hidden {
    transform: translateX(520px);
    pointer-events: none;
}

.drawer-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h3 {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-header h3 svg {
    color: var(--accent-blue);
}

.drawer-body {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Custom Scrollbar for Drawers */
.drawer-body::-webkit-scrollbar {
    width: 6px;
}

.drawer-body::-webkit-scrollbar-track {
    background: transparent;
}

.drawer-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.sim-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sim-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sim-control label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.sim-checkbox {
    flex-direction: row;
    align-items: center;
    padding: 5px 0;
}

/* --- Dialog Modals --- */
.dialog-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    border: 1px solid var(--card-border-glow);
    padding: 0;
    z-index: 1000;
    color: var(--text-primary);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.dialog-modal[open] {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

/* Back drop overlay for modal */
.dialog-modal::backdrop {
    background: rgba(6, 6, 12, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: 0.3s;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-header h2 svg {
    color: var(--accent-purple);
}

.modal-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-help {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.4;
}

.radio-group {
    display: flex;
    gap: 10px;
}

.radio-label {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.radio-label input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-label span {
    display: block;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px;
    border-radius: var(--border-radius-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.radio-label input:checked ~ span {
    background: rgba(157, 78, 221, 0.15);
    border-color: var(--accent-purple);
    color: white;
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.3);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

/* --- Timeline History List --- */
.history-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.history-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-date {
    font-family: var(--font-numeric);
    font-size: 12px;
    color: var(--text-muted);
}

.history-weather {
    font-size: 12px;
    color: var(--accent-blue);
    font-weight: 600;
}

.history-clothes-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.history-clothes-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    font-size: 11px;
    color: var(--text-secondary);
}

.history-feedback-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.history-feedback-badge.cold { background: rgba(0, 210, 255, 0.1); color: var(--accent-blue); }
.history-feedback-badge.normal { background: rgba(6, 214, 160, 0.1); color: var(--accent-mint); }
.history-feedback-badge.hot { background: rgba(255, 94, 98, 0.1); color: var(--accent-red); }

.empty-message {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    padding: 40px 0;
}

/* --- Toast Notifications --- */
.toast-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(15, 15, 25, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border-glow);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.success { border-left: 4px solid var(--accent-mint); }
.toast.info { border-left: 4px solid var(--accent-blue); }
.toast.warning { border-left: 4px solid var(--accent-orange); }

@keyframes toastSlideIn {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* --- App Footer --- */
.app-footer {
    text-align: center;
    margin-top: 40px;
    font-size: 12px;
    color: var(--text-muted);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .simulator-drawer, .history-drawer {
        width: 100%;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        height: 70vh;
        border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    }
    
    .simulator-drawer.hidden {
        transform: translateY(100%);
    }
    
    .history-drawer.hidden {
        transform: translateY(100%);
    }
}
