/* ===== 미세안 제품공급 관리 시스템 메인 스타일 ===== */

/* 기본 설정 */
:root {
    --primary-color: #2c5aa0;
    --secondary-color: #4a90e2;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --sidebar-width: 280px;
    --topnav-height: 60px;
    --border-radius: 6px;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--gray-800);
    background-color: var(--gray-100);
    overflow-x: hidden;
}

/* ===== 로딩 화면 ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: white;
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.loading-screen p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== 로그인 화면 ===== */
.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--box-shadow-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.login-header h1 {
    color: var(--primary-color);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 1rem 0 0.5rem;
}

.login-header p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.logo {
    height: 60px;
    margin-bottom: 1rem;
}

.logo-placeholder {
    height: 60px;
    width: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: var(--border-radius);
    margin: 0 auto 1rem auto;
    box-shadow: var(--box-shadow);
}

.nav-logo-text {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 1rem;
}

.user-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 0.5rem;
}

.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-group label i {
    margin-right: 0.5rem;
    color: var(--primary-color);
    width: 16px;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: white;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125rem rgba(44, 90, 160, 0.25);
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 2.2rem;
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    font-size: 0.9rem;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    cursor: pointer;
}

.remember-me input {
    margin-right: 0.5rem;
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0.875rem 1rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: none;
}

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

.login-btn i {
    margin-right: 0.5rem;
}

.login-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.login-footer p {
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.login-footer small {
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    display: inline-block;
}

/* ===== 메인 애플리케이션 ===== */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* ===== 상단 네비게이션 ===== */
.top-nav {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--topnav-height);
    background: white;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    height: 32px;
}

.nav-brand h1 {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
}

.nav-center {
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
}

.search-box {
    position: relative;
    display: flex;
}

.search-box input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    margin-left: -1px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--gray-600);
    font-size: 1.1rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-btn:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
}

.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.user-btn:hover {
    background: var(--gray-100);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    min-width: 180px;
    display: none;
    z-index: 1001;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: var(--transition);
}

.user-dropdown a:hover {
    background: var(--gray-100);
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 0.5rem 0;
}

/* ===== 사이드바 ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--dark-color);
    color: white;
    display: flex;
    flex-direction: column;
    z-index: 1001;
}

.sidebar-menu {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.menu-section {
    margin-bottom: 2rem;
}

.menu-section h3 {
    color: var(--gray-400);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    padding: 0 1.5rem 0.75rem;
    border-bottom: 1px solid var(--gray-700);
    margin-bottom: 0.75rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--gray-300);
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: var(--gray-800);
    color: white;
}

.menu-item.active {
    background: var(--gray-800);
    color: white;
    border-left-color: var(--secondary-color);
}

.menu-item i {
    width: 20px;
    font-size: 1rem;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-700);
}

.system-info p {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-bottom: 0.25rem;
}

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

.system-info small {
    color: var(--gray-500);
    font-size: 0.7rem;
}

/* ===== 메인 콘텐츠 ===== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    margin-top: var(--topnav-height);
    min-height: calc(100vh - var(--topnav-height));
}

.content-container {
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== 페이지 헤더 ===== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.page-header h1 {
    color: var(--gray-800);
    font-size: 1.75rem;
    font-weight: 600;
}

.page-header .breadcrumb {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

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

/* ===== 버튼 스타일 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #1e4080;
}

.btn-secondary {
    background: var(--gray-600);
    color: white;
}

.btn-secondary:hover {
    background: var(--gray-700);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #1e7e34;
}

.btn-warning {
    background: var(--warning-color);
    color: var(--gray-800);
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-outline {
    background: transparent;
    border-color: currentColor;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

/* ===== 카드 스타일 ===== */
.card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    color: var(--gray-800);
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

/* ===== 테이블 스타일 ===== */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.table th,
.table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.table tbody tr:hover {
    background: var(--gray-50);
}

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

/* ===== 폼 스타일 ===== */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-col {
    flex: 1;
    min-width: 250px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125rem rgba(44, 90, 160, 0.25);
}

.form-control:disabled {
    background: var(--gray-100);
    cursor: not-allowed;
}

/* ===== 알림 패널 ===== */
.notification-panel {
    position: fixed;
    top: var(--topnav-height);
    right: -400px;
    width: 400px;
    height: calc(100vh - var(--topnav-height));
    background: white;
    border-left: 1px solid var(--gray-200);
    box-shadow: var(--box-shadow-lg);
    transition: var(--transition);
    z-index: 1002;
}

.notification-panel.show {
    right: 0;
}

.panel-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-content {
    height: calc(100% - 60px);
    overflow-y: auto;
    padding: 1rem;
}

/* ===== 모달 스타일 ===== */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.modal-container.show {
    display: flex;
}

.modal {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
}

.modal-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-body {
    padding: 1.25rem;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* ===== 제품 관리 페이지 ===== */
/* 빠른 통계 카드 */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--gray-100);
    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-color);
    transition: width 0.3s ease;
}

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

.stat-card:hover::before {
    width: 8px;
}

.stat-card-primary::before { background: var(--primary-color); }
.stat-card-success::before { background: var(--success-color); }
.stat-card-warning::before { background: var(--warning-color); }
.stat-card-info::before { background: var(--info-color); }

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    background: var(--primary-color);
}

.stat-card-primary .stat-icon { background: var(--primary-color); }
.stat-card-success .stat-icon { background: var(--success-color); }
.stat-card-warning .stat-icon { background: var(--warning-color); }
.stat-card-info .stat-icon { background: var(--info-color); }

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* 필터 패널 */
.filter-panel {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

.filter-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-header h3 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-content {
    padding: 1.5rem;
}

.basic-filters {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-group {
    flex: 1;
}

.search-box {
    position: relative;
    max-width: 500px;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: var(--primary-dark);
}

.filter-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    min-width: 150px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.advanced-filters {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-item label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.range-inputs input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
}

.range-inputs span {
    color: var(--text-muted);
    font-weight: 500;
}

.filter-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 데이터 패널 */
.data-panel {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

.panel-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.panel-title h3 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-count {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
}

.panel-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.view-toggle {
    display: flex;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    padding: 0.25rem;
}

.view-btn {
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active {
    background: var(--primary-color);
    color: white;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-direction {
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    background: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-direction:hover {
    background: var(--gray-50);
}

.panel-content {
    padding: 0;
}

/* 현대적 테이블 스타일 */
.modern-table {
    overflow-x: auto;
}

.products-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.products-table thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.products-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--gray-200);
    position: relative;
}

.products-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
}

.products-table th.sortable:hover {
    background: rgba(0, 123, 255, 0.1);
}

.products-table th.sortable i {
    margin-left: 0.5rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.products-table th.sortable:hover i {
    opacity: 1;
}

.products-table tbody tr {
    transition: all 0.3s ease;
    background: white;
}

.products-table tbody tr:hover {
    background: var(--gray-50);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.products-table td {
    padding: 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: top;
}

.product-code {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(0, 123, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    display: inline-block;
}

.product-info .product-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.product-info .product-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.category-badge {
    background: var(--info-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
}

.supplier-info {
    font-weight: 500;
    color: var(--text-dark);
}

.unit-badge {
    background: var(--gray-100);
    color: var(--text-dark);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

.price-details {
    text-align: right;
}

.sale-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.cost-info {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.profit-info .profit-amount {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: var(--border-radius-sm);
}

.profit-amount.positive {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.profit-amount.negative {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.stock-info {
    text-align: center;
}

.stock-level {
    font-size: 1.125rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    display: inline-block;
    min-width: 60px;
}

.stock-level.stock-normal {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.stock-level.stock-low {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.stock-level.stock-high {
    background: rgba(0, 123, 255, 0.1);
    color: var(--info-color);
}

.stock-indicator {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.status-container {
    text-align: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge.active {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.status-badge.inactive {
    background: rgba(108, 117, 125, 0.1);
    color: var(--gray-600);
}

.date-info {
    text-align: center;
}

.date-info .date {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.date-info .creator {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.view-btn {
    background: rgba(0, 123, 255, 0.1);
    color: var(--info-color);
}

.view-btn:hover {
    background: var(--info-color);
    color: white;
}

.edit-btn {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.edit-btn:hover {
    background: var(--warning-color);
    color: white;
}

.delete-btn {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.delete-btn:hover {
    background: var(--danger-color);
    color: white;
}

/* 로딩 및 빈 데이터 상태 */
.loading-row td {
    text-align: center;
    padding: 3rem;
}

.loading-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-muted);
}

.loading-content i {
    font-size: 1.5rem;
}

.no-data-row td {
    padding: 3rem;
    text-align: center;
}

.no-data-content {
    color: var(--text-muted);
}

.no-data-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-data-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
}

.no-data-content p {
    margin: 0 0 1.5rem 0;
}

/* 카드 뷰 스타일 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.product-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
}

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

.product-card .card-header {
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-card .product-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
}

.product-card .product-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.product-details {
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.detail-row .label {
    font-weight: 500;
    color: var(--text-muted);
}

.detail-row .value {
    font-weight: 600;
    color: var(--text-dark);
}

.price-section {
    text-align: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
}

.price-section .sale-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.price-section .profit {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-pill);
}

.price-section .profit.positive {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.price-section .profit.negative {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.stock-section {
    text-align: center;
    margin-bottom: 1rem;
}

.stock-section .stock-level {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: var(--border-radius);
}

.stock-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.stock-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

.product-card .card-footer {
    padding: 1rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.no-data-card {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.no-data-card i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* 페이지네이션 */
.pagination-container {
    padding: 1.5rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-info {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.page-size-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.page-size-selector label {
    color: var(--text-muted);
}

.page-size-selector select {
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    border: 1px solid var(--gray-300);
    background: white;
    color: var(--text-dark);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.page-btn:hover:not(.disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

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

.page-ellipsis {
    padding: 0 0.5rem;
    color: var(--text-muted);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .panel-header {
        flex-direction: column;
        align-items: stretch;
    }

    .panel-actions {
        justify-content: space-between;
    }

    .filter-group {
        flex-direction: column;
    }

    .form-select {
        min-width: auto;
    }

    .products-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .pagination-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .quick-stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1rem;
    }

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

    .modern-table {
        font-size: 0.875rem;
    }

    .products-table th,
    .products-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* ===== 공급업체 관리 페이지 ===== */
/* 공급업체 카드 */
.suppliers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.supplier-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
}

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

.supplier-card .card-header {
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.supplier-card .supplier-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, var(--primary-color) 0%, #4c84ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.supplier-card .card-body {
    padding: 1.5rem;
}

.supplier-card .supplier-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
}

.supplier-card .supplier-code {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    background: var(--gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    display: inline-block;
}

.supplier-card .supplier-details {
    margin: 1.5rem 0;
}

.supplier-card .detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.supplier-card .detail-row:last-child {
    margin-bottom: 0;
}

.supplier-card .detail-row .label {
    font-weight: 500;
    color: var(--text-muted);
    flex-shrink: 0;
}

.supplier-card .detail-row .value {
    font-weight: 500;
    color: var(--text-dark);
    text-align: right;
    word-break: break-all;
}

.supplier-card .rating-section {
    text-align: center;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.supplier-card .rating-section .stars {
    margin-bottom: 0.5rem;
}

.supplier-card .rating-section .rating-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
}

.supplier-card .card-footer {
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

/* 공급업체 테이블 스타일 */
.suppliers-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.suppliers-table thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.suppliers-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--gray-200);
    position: relative;
}

.suppliers-table tbody tr {
    transition: all 0.3s ease;
    background: white;
}

.suppliers-table tbody tr:hover {
    background: var(--gray-50);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.suppliers-table td {
    padding: 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: top;
}

/* 공급업체 정보 셀 */
.supplier-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.supplier-info .supplier-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--primary-color) 0%, #4c84ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.supplier-info .supplier-details {
    flex: 1;
}

.supplier-info .supplier-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.supplier-info .supplier-code {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    background: var(--gray-100);
    padding: 0.125rem 0.375rem;
    border-radius: var(--border-radius-sm);
}

/* 연락처 정보 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-person {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.contact-person i {
    color: var(--primary-color);
    font-size: 0.875rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.contact-item i {
    color: var(--text-muted);
    font-size: 0.75rem;
    width: 12px;
    text-align: center;
}

/* 평점 컨테이너 */
.rating-container {
    text-align: center;
}

.rating-container .stars {
    color: #ffc107;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.rating-container .stars i {
    margin-right: 0.125rem;
}

.rating-container .rating-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* 별점 스타일 */
.stars {
    display: inline-flex;
    gap: 0.125rem;
}

.stars i {
    color: #ffc107;
}

.stars .far {
    color: var(--gray-300);
}

/* 통계 트렌드 */
.stat-trend {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* 공급업체 상세 모달 스타일 */
.supplier-detail-container {
    max-width: 800px;
    width: 100%;
}

.supplier-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    margin: -1.25rem -1.25rem 2rem -1.25rem;
}

.supplier-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, var(--primary-color) 0%, #4c84ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
}

.supplier-title {
    flex: 1;
}

.supplier-title h2 {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
    font-size: 1.75rem;
}

.supplier-title .supplier-code {
    font-size: 1rem;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-pill);
}

.supplier-status {
    flex-shrink: 0;
}

/* 탭 스타일 */
.detail-tabs {
    margin-top: 2rem;
}

.tab-headers {
    display: flex;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 2rem;
}

.tab-header {
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-header.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-header:hover {
    color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.detail-group {
    background: var(--gray-50);
    padding: 1.25rem;
    border-radius: var(--border-radius);
}

.detail-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.detail-group label i {
    color: var(--primary-color);
}

.detail-value {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
    word-break: break-all;
}

.detail-value a {
    color: var(--primary-color);
    text-decoration: none;
}

.detail-value a:hover {
    text-decoration: underline;
}

/* 성과 카드 */
.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.performance-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.performance-card:hover {
    box-shadow: var(--box-shadow);
    transform: translateY(-2px);
}

.performance-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4c84ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.performance-title {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.performance-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.performance-detail {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .suppliers-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .supplier-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .supplier-avatar-large {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .supplier-title h2 {
        font-size: 1.5rem;
    }

    .tab-headers {
        flex-wrap: wrap;
    }

    .tab-header {
        flex: 1;
        min-width: 120px;
        padding: 0.75rem 1rem;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .performance-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        font-size: 0.875rem;
    }

    .supplier-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .supplier-info .supplier-avatar {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .supplier-card .card-header {
        padding: 1rem;
    }

    .supplier-card .card-body {
        padding: 1rem;
    }

    .supplier-card .supplier-name {
        font-size: 1.125rem;
    }

    .suppliers-table th,
    .suppliers-table td {
        padding: 0.75rem 0.5rem;
    }

    .supplier-info {
        gap: 0.5rem;
    }

    .supplier-info .supplier-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }

    .performance-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

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

/* ===== 토스트 메시지 ===== */
.toast-container {
    position: fixed;
    top: var(--topnav-height);
    right: 1rem;
    z-index: 1100;
}

.toast {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    padding: 1rem;
    margin-bottom: 0.5rem;
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(100%);
    animation: slideIn 0.3s ease forwards;
}

.toast.success {
    border-left: 4px solid var(--success-color);
}

.toast.error {
    border-left: 4px solid var(--danger-color);
}

.toast.warning {
    border-left: 4px solid var(--warning-color);
}

.toast.info {
    border-left: 4px solid var(--info-color);
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

/* ===== 상태 배지 ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 12px;
    text-transform: uppercase;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved {
    background: #d1ecf1;
    color: #0c5460;
}

/* ===== 대시보드 스타일 ===== */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.dashboard-title {
    color: var(--gray-800);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.dashboard-subtitle {
    color: var(--gray-600);
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.dashboard-refresh {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.dashboard-refresh .fa-sync-alt {
    animation: spin 2s linear infinite;
}

.dashboard-refresh.refreshing .fa-sync-alt {
    animation: spin 0.5s linear infinite;
}

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

/* 통계 카드 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
}

.stat-card.sales::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card.orders::before {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card.products::before {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card.suppliers::before {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

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

.stat-title {
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-card.sales .stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card.orders .stat-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card.products .stat-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card.suppliers .stat-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.stat-change.positive {
    color: var(--success-color);
}

.stat-change.negative {
    color: var(--danger-color);
}

.stat-change.neutral {
    color: var(--gray-500);
}

/* 차트 그리드 */
.chart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.chart-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.chart-subtitle {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

.chart-options {
    display: flex;
    gap: 0.5rem;
}

.chart-option {
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 20px;
    font-size: 0.8rem;
    background: white;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
}

.chart-option:hover,
.chart-option.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.chart-container {
    position: relative;
    height: 300px;
}

/* 활동 및 알림 섹션 */
.activity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.activity-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
    height: 400px;
    display: flex;
    flex-direction: column;
}

.activity-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.activity-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.activity-content {
    flex: 1;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

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

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: white;
    flex-shrink: 0;
}

.activity-icon.order {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.activity-icon.product {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.activity-icon.inventory {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.activity-icon.quality {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.activity-text {
    flex: 1;
}

.activity-description {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.activity-time {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* 재고 알림 */
.stock-alerts {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
}

.alerts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.alerts-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-badge {
    background: var(--danger-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--gray-50);
    border-radius: 8px;
    border-left: 4px solid var(--warning-color);
}

.alert-item.critical {
    border-left-color: var(--danger-color);
    background: #fff5f5;
}

.alert-info {
    flex: 1;
}

.alert-product {
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.alert-details {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.alert-action {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.alert-action:hover {
    background: #1e4080;
}

/* 로딩 스피너 */
.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--gray-500);
    flex-direction: column;
    gap: 1rem;
}

.chart-loading .fa-spinner {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .chart-grid {
        grid-template-columns: 1fr;
    }

    .activity-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-nav {
        left: 0;
        padding: 0 1rem;
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: var(--transition);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .search-box {
        display: none;
    }

    .form-row {
        flex-direction: column;
    }

    .form-col {
        min-width: auto;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .dashboard-title {
        font-size: 1.5rem;
    }
}

/* ===== 공급업체 관리 스타일 ===== */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.card-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
}

.card-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-container {
    position: relative;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    min-width: 300px;
}

.search-box i {
    color: var(--gray-500);
    margin-right: 0.5rem;
}

.search-box input {
    border: none;
    outline: none;
    flex: 1;
    background: transparent;
}

.clear-search {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.25rem;
    margin-left: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.clear-search:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

.filter-container {
    display: flex;
    gap: 0.75rem;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    background: white;
    min-width: 140px;
}

/* 공급업체 테이블 스타일 */
.supplier-info-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.supplier-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.supplier-details {
    flex: 1;
}

.supplier-name {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.supplier-code {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-family: monospace;
}

.contact-info {
    max-width: 200px;
}

.contact-person {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.contact-details {
    font-size: 0.85rem;
}

.contact-details div {
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.contact-details i {
    width: 12px;
    font-size: 0.75rem;
}

.rating-cell {
    text-align: center;
}

.stars {
    color: #ffc107;
    margin-bottom: 0.25rem;
}

.rating-number {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge i {
    font-size: 0.6rem;
}

.action-buttons {
    display: flex;
    gap: 0.25rem;
}

.table-footer {
    display: flex;
    align-items: center;
    justify-content: between;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.table-info {
    flex: 1;
}

.pagination-container {
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination button {
    background: white;
    border: 1px solid var(--gray-300);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
}

.pagination button:hover:not(:disabled) {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.pagination button.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 로딩 및 빈 상태 */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem;
    color: var(--gray-500);
}

.loading-spinner i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem;
}

.empty-state i {
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
}

/* 공급업체 상세 모달 */
.supplier-detail-container {
    width: 100%;
    max-width: 800px;
}

.supplier-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin: -1.25rem -1.25rem 0;
}

.supplier-avatar-large {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.supplier-title {
    flex: 1;
}

.supplier-title h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.supplier-code {
    opacity: 0.8;
    font-family: monospace;
    margin: 0;
}

.supplier-status {
    align-self: flex-start;
}

/* 탭 스타일 */
.detail-tabs {
    margin-top: 1.5rem;
}

.tab-headers {
    display: flex;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

.tab-header {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    color: var(--gray-600);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    font-weight: 500;
}

.tab-header:hover {
    color: var(--primary-color);
}

.tab-header.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.detail-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-group label {
    font-weight: 500;
    color: var(--gray-600);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-value {
    font-weight: 600;
    color: var(--gray-800);
}

.detail-value a {
    color: var(--primary-color);
    text-decoration: none;
}

.detail-value a:hover {
    text-decoration: underline;
}

/* 성과 카드 */
.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.performance-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.performance-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.performance-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.performance-info {
    flex: 1;
}

.performance-title {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.performance-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.performance-detail {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .card-header-actions {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .search-box {
        min-width: auto;
    }

    .filter-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .supplier-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .performance-grid {
        grid-template-columns: 1fr;
    }

    .table-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ===== 재고 관리 스타일 ===== */
/* 빠른 액션 그리드 */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.quick-action-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--gray-800);
}

.quick-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.quick-action-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.quick-action-content {
    flex: 1;
}

.quick-action-content h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
}

.quick-action-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.4;
}

.quick-action-arrow {
    color: var(--gray-400);
    font-size: 1rem;
}

/* 재고 테이블 스타일 */
.product-info-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--success-color), #20c997);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.product-details {
    flex: 1;
}

.product-name {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.product-code {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-family: monospace;
}

.location-info {
    max-width: 150px;
}

.location-primary {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.location-detail {
    font-size: 0.8rem;
}

.stock-quantity,
.reserved-quantity {
    text-align: center;
}

.quantity-main {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.quantity-unit {
    font-size: 0.8rem;
}

.available-stock {
    font-size: 0.8rem;
    color: var(--success-color);
}

/* 재고 상태 배지 */
.stock-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-normal {
    background: #d4edda;
    color: #155724;
}

.status-low-stock {
    background: #fff3cd;
    color: #856404;
}

.status-out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

.status-overstock {
    background: #d1ecf1;
    color: #0c5460;
}

.status-alert {
    font-size: 0.7rem;
    color: var(--danger-color);
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 0.25rem;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

/* 재고 상세 모달 */
.inventory-detail-container {
    width: 100%;
    max-width: 900px;
}

.inventory-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--success-color), #20c997);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin: -1.25rem -1.25rem 0;
}

.inventory-avatar-large {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.inventory-title {
    flex: 1;
}

.inventory-title h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.inventory-status {
    align-self: flex-start;
}

/* 재고 카드 그리드 */
.stock-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stock-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.stock-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.stock-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
}

.stock-card-header i {
    font-size: 1rem;
    color: var(--primary-color);
}

.stock-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.stock-card-unit {
    font-size: 0.9rem;
    color: var(--gray-500);
    text-transform: uppercase;
}

/* 재고 수준 바 */
.stock-levels {
    margin-top: 2rem;
}

.level-item {
    margin-bottom: 1.5rem;
}

.level-item label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.level-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
}

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

.level-progress {
    height: 100%;
    background: linear-gradient(135deg, var(--success-color), #20c997);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* 이동 기록 */
.movement-list {
    max-height: 400px;
    overflow-y: auto;
}

.movement-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
}

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

.movement-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.movement-icon.in {
    background: linear-gradient(135deg, var(--success-color), #20c997);
}

.movement-icon.out {
    background: linear-gradient(135deg, var(--danger-color), #fd7e14);
}

.movement-details {
    flex: 1;
}

.movement-description {
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.movement-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--gray-600);
}

.movement-quantity {
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
}

.movement-quantity.positive {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.movement-quantity.negative {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.history-empty,
.history-error,
.history-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
}

.history-empty i,
.history-error i,
.history-placeholder i {
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* 폼 스타일 */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.form-col-full {
    grid-column: 1 / -1;
}

.form-text {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

.selected-product {
    padding: 0.75rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
}

/* 텍스트 유틸리티 */
.text-center { text-align: center; }
.text-muted { color: var(--gray-600) !important; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.mb-3 { margin-bottom: 1rem; }
.me-1 { margin-right: 0.25rem; }

/* 정렬 가능한 테이블 헤더 */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.sortable:hover {
    background: var(--gray-100);
}

.sort-icon {
    margin-left: 0.5rem;
    opacity: 0.5;
    transition: var(--transition);
}

.sortable:hover .sort-icon {
    opacity: 1;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .stock-overview-grid {
        grid-template-columns: 1fr;
    }

    .inventory-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .movement-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 보고서 페이지 스타일 ===== */

/* 보고서 차트 컨테이너 */
.charts-container {
    margin-bottom: 3rem;
}

.chart-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: var(--transition);
}

.chart-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    border-bottom: 1px solid var(--gray-200);
}

.chart-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
}

.chart-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    color: var(--gray-600);
    transition: var(--transition);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--gray-200);
    color: var(--primary-color);
}

.chart-content {
    padding: 2rem;
    height: 300px;
    position: relative;
}

.chart-content canvas {
    max-width: 100%;
    height: auto;
}

/* 보고서 테이블 섹션 */
.reports-tables {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.table-tabs {
    display: flex;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    position: relative;
}

.tab-btn:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    background: white;
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.tab-content {
    display: none;
    padding: 0;
}

.tab-content.active {
    display: block;
}

.table-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.table-actions .search-box {
    position: relative;
    max-width: 300px;
    flex: 1;
}

.table-actions .search-box input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 2.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: var(--transition);
}

.table-actions .search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.table-actions .search-box i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

/* 날짜 범위 선택 */
.form-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    background: white;
    font-size: 0.9rem;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

/* 보고서 배지 스타일 */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-success {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.badge-warning {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.badge-danger {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.badge-secondary {
    background: rgba(108, 117, 125, 0.15);
    color: #6c757d;
}

/* 통계 카드 호버 효과 개선 */
.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-card .stat-icon {
    transition: var(--transition);
}

/* 데이터 테이블 스타일 개선 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.data-table th {
    background: var(--gray-50);
    color: var(--gray-700);
    font-weight: 600;
    text-align: left;
    padding: 1rem;
    border-bottom: 2px solid var(--gray-200);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    font-size: 0.9rem;
}

.data-table tbody tr {
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background: var(--gray-50);
}

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

/* 보고서 페이지 반응형 */
@media (max-width: 1200px) {
    .chart-row {
        grid-template-columns: 1fr;
    }

    .chart-content {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .chart-content {
        height: 200px;
        padding: 1rem;
    }

    .table-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .table-actions .search-box {
        max-width: none;
    }

    .table-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
        min-width: 120px;
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }

    .page-actions {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .page-actions .form-select,
    .page-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* 로딩 스피너 개선 */
.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.chart-loading i {
    margin-right: 0.5rem;
    animation: spin 1s linear infinite;
}

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

/* 보고서 내보내기 버튼 스타일 */
.btn-export {
    background: linear-gradient(135deg, var(--success-color), #20c997);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-export:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(32, 201, 151, 0.3);
}

/* 차트 타이틀 스타일 개선 */
.chart-header h3 {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 통계 변화 지표 애니메이션 */
.stat-change {
    animation: fadeInUp 0.6s ease-out;
}

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

/* ===== 사용자 관리 페이지 스타일 ===== */

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.user-email {
    color: var(--gray-600);
    font-size: 0.85rem;
}

.user-username {
    color: var(--gray-500);
    font-size: 0.8rem;
}

.role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.role-superadmin {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.role-hq_admin {
    background: rgba(13, 110, 253, 0.15);
    color: #0d6efd;
}

.role-regional_admin {
    background: rgba(25, 135, 84, 0.15);
    color: #198754;
}

.role-branch_admin {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.role-partner {
    background: rgba(111, 66, 193, 0.15);
    color: #6f42c1;
}

.role-hospital_user {
    background: rgba(13, 202, 240, 0.15);
    color: #0dcaf0;
}

.role-data_entry {
    background: rgba(108, 117, 125, 0.15);
    color: #6c757d;
}

.role-auditor {
    background: rgba(255, 133, 27, 0.15);
    color: #fd7e14;
}

.status-active {
    background: rgba(25, 135, 84, 0.15);
    color: #198754;
}

.status-inactive {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

/* ===== 시스템 설정 페이지 스타일 ===== */

.settings-tabs {
    display: flex;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    padding: 0.25rem;
    margin-bottom: 2rem;
    overflow-x: auto;
}

.settings-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--gray-200);
}

.settings-section h3 {
    margin: 0 0 1.5rem 0;
    color: var(--gray-800);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-control {
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

/* 배분 설정 */
.distribution-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.distribution-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.distribution-item label {
    font-weight: 500;
    color: var(--gray-700);
}

.input-group {
    display: flex;
    align-items: center;
}

.input-group input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-addon {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-left: none;
    padding: 0.75rem;
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    font-weight: 500;
    color: var(--gray-600);
}

.distribution-total {
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    text-align: center;
}

.distribution-total strong {
    font-size: 1.1rem;
    color: var(--gray-800);
}

/* 체크박스 그룹 */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.checkbox-label:hover {
    background: var(--gray-50);
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-300);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.checkbox-label input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* 알림 설정 */
.notification-settings {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.notification-info {
    flex: 1;
}

.notification-info strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.notification-info p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* 스위치 토글 */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-400);
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* 백업 액션 */
.backup-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* 반응형 */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .distribution-settings {
        grid-template-columns: 1fr;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .notification-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .backup-actions {
        flex-direction: column;
    }

    .settings-tabs {
        flex-wrap: wrap;
    }
}

/* 제품 상세보기 스타일 */
.product-details {
    max-width: 100%;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.detail-section.full-width {
    grid-column: 1 / -1;
}

.detail-section h4 {
    margin: 0 0 1.5rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    min-height: 1.5rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item label {
    font-weight: 600;
    color: var(--gray-700);
    min-width: 100px;
    margin-right: 1rem;
    margin-bottom: 0;
}

.detail-item .value {
    flex: 1;
    color: var(--gray-900);
}

.detail-item .creator-info {
    flex: 1;
}

.detail-item .creator-info strong {
    color: var(--gray-900);
}

.detail-item .creator-info .text-muted {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.description-content {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1rem;
    line-height: 1.6;
    color: var(--gray-800);
    white-space: pre-wrap;
}

/* 반응형 제품 상세보기 */
@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .detail-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-item label {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* 🏥 현대적인 대시보드 스타일 */
.modern-dashboard {
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    position: relative;
}

/* 대시보드 헤더 */
.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 0 0 30px 30px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

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

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.dashboard-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0.5rem 0 0 0;
    font-weight: 300;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.time-widget {
    text-align: right;
}

.current-time {
    font-size: 1.8rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.last-updated {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.refresh-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.refresh-btn i {
    transition: transform 0.3s ease;
}

.refresh-btn:hover i {
    transform: rotate(180deg);
}

/* KPI 그리드 */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 0 2rem 3rem 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.kpi-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.kpi-background {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.1;
    font-size: 2rem;
}

.kpi-card.revenue .kpi-background {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.kpi-card.products .kpi-background {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.kpi-card.suppliers .kpi-background {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.kpi-card.alerts .kpi-background {
    background: linear-gradient(135deg, #ffa726, #fb8c00);
}

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

.kpi-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    margin: 0;
}

.kpi-trend {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.kpi-trend.up {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.kpi-trend.down {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.kpi-trend.stable {
    background: rgba(158, 158, 158, 0.1);
    color: #9e9e9e;
}

.kpi-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 1rem 0 0.5rem 0;
    line-height: 1;
}

.kpi-subtitle {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.kpi-progress {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.kpi-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    transition: width 1s ease;
    position: relative;
}

.kpi-progress .progress-bar.warning {
    background: linear-gradient(90deg, #ffa726, #fb8c00);
}

.kpi-progress .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 대시보드 위젯 그리드 */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 0 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-widget {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.dashboard-widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.widget-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.widget-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.widget-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.period-selector,
.chart-type-btn,
.activity-filter,
.view-toggle {
    padding: 0.4rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: white;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-type-btn.active,
.activity-filter.active,
.view-toggle.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
}

.widget-content {
    padding: 2rem;
}

/* 차트 위젯 */
.chart-widget .widget-content {
    height: 400px;
    position: relative;
}

.chart-widget canvas {
    max-height: 100% !important;
}

/* 활동 위젯 */
.activity-list {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.activity-list::-webkit-scrollbar {
    width: 6px;
}

.activity-list::-webkit-scrollbar-track {
    background: transparent;
}

.activity-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(30px);
}

.activity-item.animate {
    opacity: 1;
    transform: translateX(0);
}

.activity-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-message {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.3rem;
}

.activity-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.activity-user {
    font-weight: 500;
}

.activity-time {
    opacity: 0.7;
}

/* 재고 위젯 */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.inventory-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #ddd;
    transition: all 0.3s ease;
}

.inventory-item.good {
    border-left-color: #4caf50;
}

.inventory-item.low {
    border-left-color: #ff9800;
}

.inventory-item.critical {
    border-left-color: #f44336;
}

.inventory-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.inventory-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #333;
}

.stock-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.current-stock {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.min-stock {
    font-size: 0.85rem;
    color: #666;
}

.inventory-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-indicator.good {
    background: #4caf50;
}

.status-indicator.low {
    background: #ff9800;
}

.status-indicator.critical {
    background: #f44336;
}

.stock-progress {
    flex: 1;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.stock-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    border-radius: 3px;
    transition: width 1s ease;
}

/* 성과 위젯 */
.performance-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    text-align: center;
}

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

.metric-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
}

.metric-progress {
    position: relative;
}

.progress-circle {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-circle span {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    position: absolute;
}

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

.progress-circle circle {
    transition: stroke-dashoffset 1s ease;
}

/* 빠른 액션 위젯 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.quick-action-btn {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.quick-action-btn i {
    font-size: 1.5rem;
}

.quick-action-btn span {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* 로딩 오버레이 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.loading-content {
    text-align: center;
    color: #666;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

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

/* 애니메이션 클래스 */
.animate.slideInUp {
    animation: slideInUp 0.6s ease-out forwards;
}

.animate.fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate.slideInRight {
    animation: slideInRight 0.5s ease-out forwards;
}

.animate.fadeIn {
    animation: fadeIn 0.4s ease-out forwards;
}

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

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

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

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

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }

    .kpi-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .modern-dashboard {
        background: #f8f9fa;
    }

    .dashboard-header {
        padding: 1.5rem;
        border-radius: 0 0 20px 20px;
        margin-bottom: 1.5rem;
    }

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

    .dashboard-title {
        font-size: 2rem;
    }

    .header-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
        margin: 0 1rem 2rem 1rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        margin: 0 1rem;
        gap: 1.5rem;
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .performance-metrics {
        grid-template-columns: repeat(3, 1fr);
    }

    .inventory-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .dashboard-header {
        padding: 1rem;
    }

    .dashboard-title {
        font-size: 1.5rem;
    }

    .kpi-card,
    .dashboard-widget {
        margin: 0 0.5rem;
    }

    .widget-content {
        padding: 1rem;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .performance-metrics {
        grid-template-columns: 1fr;
    }
}