/* CSS 변수 정의 */
:root {
    --primary-color: #ff6b9d;
    --secondary-color: #ffc93c;
    --accent-color: #a8e6cf;
    --success-color: #4ecdc4;
    --warning-color: #ffb347;
    --error-color: #ff6b6b;
    --text-primary: #2c3e50;
    --text-secondary: #34495e;
    --background: #e3f2fd;
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f4;
    --gray-200: #e8eaed;
    --gray-300: #dadce0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 25px;
    --border-radius-sm: 15px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 기본 스타일 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Jua', 'Cute Font', cursive;
    background: #87ceeb;
    background-image: 
        radial-gradient(circle, white 2px, transparent 2px),
        radial-gradient(circle, rgba(255, 255, 255, 0.8) 1px, transparent 1px);
    background-size: 40px 40px, 20px 20px;
    background-position: 0 0, 10px 10px;
    color: var(--text-primary);
    line-height: 1.8;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    font-weight: 400;
    font-size: 1.1rem;
}

/* 눈송이 애니메이션 */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.snowflake {
    position: absolute;
    top: -10px;
    animation: snowfall linear infinite;
    user-select: none;
    font-size: clamp(1rem, 3vw, 2rem);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.snowflake:nth-child(1) { left: 10%; animation-duration: 15s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 18s; animation-delay: 2s; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 12s; animation-delay: 1s; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 20s; animation-delay: 3s; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 16s; animation-delay: 0.5s; }
.snowflake:nth-child(6) { left: 60%; animation-duration: 14s; animation-delay: 2.5s; }
.snowflake:nth-child(7) { left: 70%; animation-duration: 17s; animation-delay: 1.5s; }
.snowflake:nth-child(8) { left: 80%; animation-duration: 13s; animation-delay: 3.5s; }
.snowflake:nth-child(9) { left: 90%; animation-duration: 19s; animation-delay: 0.8s; }
.snowflake:nth-child(10) { left: 95%; animation-duration: 21s; animation-delay: 2.8s; }

@keyframes snowfall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* 컨테이너 */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* 헤더 */
.header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 3px solid rgba(255, 192, 203, 0.3);
    transform: perspective(1000px) rotateX(2deg);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.graduation-cap {
    font-size: 3rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.logo h1 {
    font-family: 'Cute Font', cursive;
    font-size: clamp(2.5rem, 8vw, 4rem);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    font-weight: 700;
    font-family: 'Gamja Flower', cursive;
    margin-top: 0.5rem;
}

.winter-decoration {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

.winter-decoration span {
    animation: twinkle 2s ease-in-out infinite;
}

.winter-decoration span:nth-child(2) {
    animation-delay: 0.7s;
}

.winter-decoration span:nth-child(3) {
    animation-delay: 1.4s;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

/* 메인 콘텐츠 */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 카드 공통 스타일 */
.info-card, .upload-card, .loading-card, .result-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 3px solid rgba(255, 192, 203, 0.3);
    overflow: hidden;
    transition: var(--transition);
    transform: perspective(1000px) rotateX(1deg);
}

.info-card:hover, .upload-card:hover {
    transform: translateY(-5px) perspective(1000px) rotateX(1deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* 카드 헤더 */
.card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1.5rem 1rem;
}

.card-header h2, .card-header h3 {
    font-family: 'Cute Font', cursive;
    color: var(--text-primary);
    margin: 0;
    font-weight: 900;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.card-header h2 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-header h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.upload-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Gamja Flower', cursive;
}

/* 정보 섹션 */
.info-section {
    margin-bottom: 2rem;
}

.info-card {
    padding: 0;
    position: relative;
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounce 3s ease-in-out infinite;
}

/* 교복 검사 기준 흰색 배경 박스 */
.uniform-requirements {
    padding: 2rem;
    margin: 1.5rem;
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(255, 192, 203, 0.2);
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 0;
    border-bottom: 2px solid rgba(255, 192, 203, 0.2);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Gamja Flower', cursive;
}

.requirement-item:last-child {
    border-bottom: none;
}

.check-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem;
    border: 3px solid var(--warning-color);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-md);
}

.warning-icon {
    font-size: 2rem;
    flex-shrink: 0;
    animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.warning p {
    margin: 0;
    font-size: 1.2rem;
    color: #b8860b;
    font-weight: 700;
    line-height: 1.6;
    font-family: 'Gamja Flower', cursive;
}

/* 업로드 섹션 */
.upload-card {
    padding: 0;
    position: relative;
    z-index: 5;
}

.upload-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1.5rem 1.5rem;
    position: relative;
    z-index: 10;
}

.upload-file-wrapper {
    position: relative;
    z-index: 10;
}

#fileInput {
    display: none;
}

.upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: 'Gamja Flower', cursive;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    min-height: 70px;
    box-shadow: var(--shadow-md);
    transform: perspective(1000px) rotateX(2deg);
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.upload-btn:active {
    transform: translateY(2px) perspective(1000px) rotateX(2deg) scale(0.98);
}

.camera-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.camera-btn:hover {
    transform: translateY(-5px) perspective(1000px) rotateX(2deg) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.file-btn {
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
    color: var(--white);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.file-btn:hover {
    transform: translateY(-5px) perspective(1000px) rotateX(2deg) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.btn-icon {
    font-size: 1.8rem;
}

/* 카메라 영역 */
.camera-container {
    padding: 1.5rem;
}

.camera-wrapper {
    position: relative;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background: var(--gray-100);
    margin-bottom: 1rem;
}

#video {
    width: 100%;
    height: auto;
    display: block;
}

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 20%,
        rgba(0, 0, 0, 0.1) 50%,
        transparent 80%
    );
    pointer-events: none;
}

.camera-guide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    text-align: center;
}

.camera-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.capture-btn {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.capture-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.stop-camera-btn {
    background: linear-gradient(135deg, var(--error-color), #dc2626);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.stop-camera-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* 미리보기 영역 */
.preview-container {
    padding: 1.5rem;
    text-align: center;
}

.preview-container h4 {
    font-family: 'Cute Font', cursive;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 900;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preview-wrapper {
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background: var(--gray-100);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

#previewImage {
    width: 100%;
    height: auto;
    display: block;
}

.analyze-btn {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 로딩 섹션 */
.loading-card {
    padding: 3rem 2rem;
    text-align: center;
}

.loading-spinner {
    margin-bottom: 1.5rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

.loading-card h3 {
    font-family: 'Cute Font', cursive;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 900;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.loading-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    font-family: 'Gamja Flower', cursive;
}

.loading-progress {
    max-width: 400px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    width: 0%;
    animation: loading-progress 3s ease-in-out infinite;
}

@keyframes loading-progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.loading-steps {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.step {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.step.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

/* 결과 섹션 */
.result-card {
    padding: 2rem;
}

.overall-result {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: var(--border-radius-sm);
    border: 2px solid #22c55e;
}

.result-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.result-icon {
    font-size: 3rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.result-status h3 {
    font-family: 'Cute Font', cursive;
    margin-bottom: 0.5rem;
    color: #059669;
    font-size: 2.2rem;
    font-weight: 900;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.result-status p {
    color: #047857;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Gamja Flower', cursive;
}

.confidence-score {
    margin-top: 1rem;
    width: 100%;
    max-width: 300px;
}

.confidence-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.confidence-bar {
    position: relative;
    background: var(--gray-200);
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--success-color), #059669);
    border-radius: 5px;
    transition: width 1s ease-in-out;
}

.confidence-text {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 600;
}

.detailed-results {
    margin-bottom: 2rem;
}

.detailed-results h4 {
    font-family: 'Cute Font', cursive;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 900;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--success-color);
}

.result-item.warning {
    border-left-color: var(--warning-color);
    background: #fef3c7;
}

.result-item.error {
    border-left-color: var(--error-color);
    background: #fee2e2;
}

.item-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.item-status {
    font-weight: 500;
    color: var(--success-color);
}

.item-status.warning {
    color: var(--warning-color);
}

.item-status.error {
    color: var(--error-color);
}

.suggestions {
    margin-bottom: 2rem;
}

.suggestions h4 {
    font-family: 'Cute Font', cursive;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 900;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.suggestion-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--warning-color);
}

.suggestion-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.suggestion-text {
    font-size: 1rem;
    color: #78350f;
    font-weight: 500;
    line-height: 1.5;
}

.ai-analysis {
    margin-bottom: 2rem;
}

.ai-analysis h4 {
    font-family: 'Cute Font', cursive;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 900;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.analysis-content {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--gray-200);
}

.analysis-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 400;
}

.analysis-content p:last-child {
    margin-bottom: 0;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.retest-btn, .save-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.retest-btn {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
}

.retest-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.save-btn {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: var(--white);
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 푸터 */
.footer {
    margin-top: 3rem;
    padding: 2.5rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 3px solid rgba(255, 192, 203, 0.3);
    transform: perspective(1000px) rotateX(1deg);
}

.footer-content p {
    margin: 0.5rem 0;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.2rem;
    font-family: 'Gamja Flower', cursive;
}

.footer-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-family: 'Gamja Flower', cursive;
}

.footer-decoration {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 1.2rem;
}

/* 반응형 디자인 */
@media (min-width: 640px) {
    .container {
        padding: 40px 20px;
    }
    
    .header {
        padding: 3rem 2rem;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .upload-buttons {
        flex-direction: row;
    }
    
    .camera-controls {
        gap: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: row;
    }
    
    .result-badge {
        flex-direction: row;
        text-align: left;
    }
    
    .result-badge .result-icon {
        font-size: 4rem;
    }
}

@media (min-width: 768px) {
    .loading-steps {
        justify-content: center;
        gap: 2rem;
    }
    
    .step {
        flex: none;
        padding: 0.75rem 1.5rem;
    }
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .snowflake {
        animation: none;
    }
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --background: #111827;
        --gray-50: #374151;
        --gray-100: #4b5563;
        --gray-200: #6b7280;
        --gray-300: #9ca3af;
    }
    
    body {
        background: linear-gradient(135deg, #1e1b4b 0%, #581c87 100%);
    }
    
    .info-card, .upload-card, .loading-card, .result-card, .header, .footer {
        background: rgba(31, 41, 55, 0.95);
        border: 1px solid rgba(75, 85, 99, 0.3);
    }
    
    .overall-result {
        background: linear-gradient(135deg, #064e3b, #065f46);
        border: 1px solid #059669;
    }
    
    .warning {
        background: linear-gradient(135deg, #451a03, #92400e);
    }
    
    .suggestion-item {
        background: linear-gradient(135deg, #451a03, #92400e);
    }
    
    .analysis-content {
        background: var(--gray-100);
        border: 1px solid var(--gray-200);
    }
}

/* 포커스 스타일 */
button:focus,
input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 호버 효과 비활성화 (터치 디바이스) */
@media (hover: none) {
    .upload-btn:hover,
    .capture-btn:hover,
    .stop-camera-btn:hover,
    .analyze-btn:hover,
    .retest-btn:hover,
    .save-btn:hover,
    .info-card:hover,
    .upload-card:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
}
