:root {
    /* Meritz Fire Color Palette */
    --bg-light: #EBEBEB;
    --gray-mid: #8C8C8C;
    --gray-dark: #404040;
    --primary-dark: #A60000;
    --primary-bright: #E60000;
    --white: #FFFFFF;

    /* Semantic Mappings */
    --bg-color: var(--bg-light);
    --surface-color: var(--white);
    --text-main: var(--gray-dark);
    --text-muted: var(--gray-mid);
    --primary-color: var(--primary-bright);
    --border-color: rgba(0, 0, 0, 0.08);
}

body {
    box-sizing: border-box;
    font-family: 'Outfit', 'Noto Sans KR', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

/* Header & Logo */
.header-logo {
    max-height: 70px;
}

/* Premium Card Design */
.premium-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.premium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(166, 0, 0, 0.08);
    border-color: rgba(166, 0, 0, 0.15);
}

/* Stagger animation */
.stagger-in {
    opacity: 0;
    transform: translateY(20px);
    animation: staggerReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes staggerReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Upload zone */
.upload-zone {
    transition: all 0.3s ease;
    border: 2px dashed rgba(166, 0, 0, 0.2);
    background: var(--white);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary-color);
    background: rgba(230, 0, 0, 0.02);
    transform: scale(1.005);
}

/* Progress bar - Meritz Red Shimmer */
.progress-bar {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-bright), var(--primary-dark));
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}

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

    100% {
        background-position: -100% 0;
    }
}

/* Summary Grid Cards */
.summary-item-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-bottom: 2px solid transparent;
}

.summary-item-card:hover {
    border-bottom-color: var(--primary-color);
}

/* Toast */
.toast {
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-mid);
    border-radius: 3px;
}

/* Detail panel */
.detail-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.detail-panel.open {
    max-height: 1000px;
}

/* Background Gradients (Subtle) */
.bg-subtle-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(230, 0, 0, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(166, 0, 0, 0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

@view-transition {
    navigation: auto;
}