/**
 * Big-Stock AI 재고관리 시스템 - 메인 스타일시트
 * 기획서 6.3 색상 팔레트 및 반응형 디자인 기반
 */

/* ==================== 다크모드 색상 변수 정의 ==================== */
:root {
    /* Dark Mode Colors */
    --bg-primary: #0F0F1A;        /* 메인 배경 (매우 어두운 네이비) */
    --bg-secondary: #1A1B2E;      /* 카드/패널 배경 */
    --bg-tertiary: #252741;       /* 호버/강조 배경 */

    --text-primary: #E4E4E7;      /* 주요 텍스트 */
    --text-secondary: #A1A1AA;    /* 보조 텍스트 */
    --text-tertiary: #71717A;     /* 비활성 텍스트 */

    /* Accent Colors */
    --primary: #6366F1;           /* 인디고 (밝게) */
    --primary-hover: #4F46E5;
    --primary-glow: rgba(99, 102, 241, 0.3);

    --secondary: #10B981;         /* 그린 */
    --secondary-glow: rgba(16, 185, 129, 0.2);

    --danger: #EF4444;            /* 레드 */
    --warning: #F59E0B;           /* 오렌지 */

    /* Gradient Accents */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);

    /* Borders */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(99, 102, 241, 0.4);

    /* Typography */
    --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px var(--primary-glow);
}

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

html {
    height: 100%;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    word-break: keep-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 채팅 페이지에만 overflow hidden 적용 */
body.chat-page {
    height: 100vh;
    overflow: hidden;
}

/* ==================== 헤더 ==================== */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-md) var(--spacing-lg);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.logo {
    height: 40px;
    width: auto;
}

.title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.btn-dashboard {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.btn-dashboard:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--primary-glow);
}

/* ==================== 메인 컨테이너 ==================== */
.main-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding-top: 72px; /* 헤더 높이 */
    max-width: 1200px;
    margin: 0 auto;
}

/* ==================== 채팅 영역 ==================== */
.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
    background: var(--bg-primary);
    position: relative;
}

/* 로고 워터마크 배경 */
.chat-container::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background-image: url('../assets/img/logo-no_background.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.message {
    display: flex;
    margin-bottom: var(--spacing-lg);
    gap: var(--spacing-md);
    animation: fadeInUp 0.3s ease;
    position: relative;
    z-index: 1;
}

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

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-glow);
}

.message.user .message-avatar {
    background: var(--secondary);
    box-shadow: 0 0 20px var(--secondary-glow);
}

.message-bubble {
    max-width: 70%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.message.user .message-bubble {
    background: var(--gradient-secondary);
    color: white;
    border: none;
    box-shadow: var(--shadow-glow);
}

.message.assistant .message-bubble {
    border-bottom-left-radius: 4px;
}

.message.user .message-bubble {
    border-bottom-right-radius: 4px;
}

.welcome-message .message-bubble {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.message-text {
    line-height: 1.6;
}

.feature-highlight {
    font-weight: 700;
    display: inline-block;
    margin-top: var(--spacing-sm);
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: var(--spacing-sm);
}

/* ==================== 입력 영역 ==================== */
.input-container {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-md) var(--spacing-lg);
    backdrop-filter: blur(10px);
}

.quick-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    overflow-x: auto;
    padding-bottom: var(--spacing-sm);
}

.quick-actions::-webkit-scrollbar {
    height: 4px;
}

.quick-actions::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.quick-actions::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 2px;
}

.btn-quick {
    flex-shrink: 0;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-quick:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.input-wrapper {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-end;
    margin-bottom: var(--spacing-md);
}

.message-input {
    flex: 1;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 1rem;
    resize: none;
    max-height: 120px;
    transition: all 0.3s ease;
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.message-input::placeholder {
    color: var(--text-tertiary);
}

.message-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn-send {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--gradient-secondary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.btn-send:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 30px var(--primary-glow);
}

.btn-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.examples-container {
    display: flex;
    gap: var(--spacing-sm);
    overflow-x: auto;
    padding-bottom: var(--spacing-sm);
}

.btn-example {
    flex-shrink: 0;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-example:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

/* ==================== 모달 ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.btn-close {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

/* ==================== 폼 요소 ==================== */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.radio-group {
    display: flex;
    gap: var(--spacing-md);
}

.radio-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.radio-label:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.radio-label input[type="radio"] {
    margin: 0;
    accent-color: var(--primary);
}

.radio-label input[type="radio"]:checked + span {
    font-weight: 600;
    color: var(--primary);
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

/* ==================== 테이블 ==================== */
.table-container {
    overflow-x: auto;
    margin-bottom: var(--spacing-md);
}

.stock-table {
    width: 100%;
    border-collapse: collapse;
}

.stock-table thead {
    background: var(--bg-tertiary);
    border-bottom: 2px solid var(--border-color);
}

.stock-table th,
.stock-table td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.stock-table th {
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.stock-table td {
    color: var(--text-secondary);
}

.stock-table tbody tr {
    transition: all 0.2s ease;
}

.stock-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

.stock-table input[type="text"],
.stock-table input[type="number"],
.stock-table select {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.stock-table input[type="text"]:focus,
.stock-table input[type="number"]:focus,
.stock-table select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.stock-status {
    font-weight: 600;
}

/* ==================== 버튼 ==================== */
.btn-primary,
.btn-secondary {
    padding: var(--spacing-md) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 30px var(--primary-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ==================== 경고 박스 ==================== */
.warning-box {
    padding: var(--spacing-md);
    background: rgba(251, 191, 36, 0.1);
    border: 2px solid var(--warning);
    border-radius: var(--radius-md);
    color: #FCD34D;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.warning-box::before {
    content: '⚠️';
    font-size: 1.2rem;
}

/* ==================== 로딩 오버레이 ==================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
    box-shadow: 0 0 20px var(--primary-glow);
}

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

.loading-overlay p {
    color: var(--text-primary);
    margin-top: var(--spacing-lg);
    font-size: 1.1rem;
    font-weight: 500;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ==================== 대시보드 스타일 ==================== */
.dashboard-main {
    padding: 90px var(--spacing-lg) var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
}

/* 통계 섹션 */
.stats-section {
    margin-bottom: var(--spacing-xl);
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.stats-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.current-time {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.stat-card:hover::before {
    width: 100%;
    opacity: 0.1;
}

.stat-card-primary::before {
    background: var(--primary);
}

.stat-card-brand::before {
    background: var(--secondary);
}

.stat-card-bose::before {
    background: #8B5CF6;
}

.stat-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-detail {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* 필터 섹션 */
.filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.filter-left {
    display: flex;
    gap: var(--spacing-sm);
}

.filter-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.action-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 테이블 섹션 */
.table-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table-wrapper {
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table thead {
    background: var(--bg-tertiary);
    border-bottom: 2px solid var(--border-color);
}

.dashboard-table th {
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-table td {
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.dashboard-table tbody tr {
    transition: all 0.2s ease;
}

.dashboard-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

.dashboard-table tbody tr:last-child td {
    border-bottom: none;
}

/* 테이블 셀 스타일 */
.category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
}

.category-brand {
    background: rgba(16, 185, 129, 0.15);
    color: var(--secondary);
    border: 1px solid var(--secondary);
}

.category-bose {
    background: rgba(139, 92, 246, 0.15);
    color: #8B5CF6;
    border: 1px solid #8B5CF6;
}

.size-cell {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.quantity-cell {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
}

.status-empty {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.status-low {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.status-medium {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.status-high {
    background: rgba(16, 185, 129, 0.15);
    color: var(--secondary);
    border: 1px solid var(--secondary);
}

.time-cell {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* 로딩/에러/빈 상태 */
.loading-cell,
.empty-cell,
.error-cell {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
}

.table-loading,
.table-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    color: var(--text-secondary);
}

.spinner-small {
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    min-height: 400px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.empty-state p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* ==================== 반응형 디자인 ==================== */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .header {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .title {
        font-size: 1.2rem;
    }

    .main-container {
        padding-top: 64px;
    }

    .chat-container {
        padding: var(--spacing-md);
    }

    .message-bubble {
        max-width: 85%;
    }

    .input-container {
        padding: var(--spacing-md);
    }

    .quick-actions {
        flex-wrap: nowrap;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: var(--spacing-md);
    }

    .btn-primary,
    .btn-secondary {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.95rem;
    }

    /* 대시보드 반응형 */
    .dashboard-main {
        padding: 80px var(--spacing-md) var(--spacing-md);
    }

    .stats-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .stats-header h2 {
        font-size: 1.3rem;
    }

    .current-time {
        font-size: 0.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .stat-card {
        padding: var(--spacing-md);
    }

    .stat-icon {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-detail {
        font-size: 0.75rem;
    }

    .filter-section {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: stretch;
    }

    .filter-left {
        justify-content: center;
    }

    .filter-btn {
        flex: 1;
        font-size: 0.85rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .action-btn {
        width: 100%;
        font-size: 0.85rem;
    }

    .dashboard-table th,
    .dashboard-table td {
        padding: var(--spacing-sm) var(--spacing-sm);
        font-size: 0.8rem;
    }

    .category-badge {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    .size-cell {
        font-size: 0.95rem;
    }

    .quantity-cell {
        font-size: 0.95rem;
    }

    .status-badge {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    .time-cell {
        font-size: 0.75rem;
    }

    .empty-state {
        min-height: 300px;
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .empty-icon {
        font-size: 2.5rem;
    }

    .empty-state h3 {
        font-size: 1.1rem;
    }

    .empty-state p {
        font-size: 0.9rem;
    }
}

@media (min-width: 1024px) {
    body {
        font-size: 14px;
    }
}
