@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #2d3436;
  overflow-x: hidden;
}

.app-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background-color: #1a1c23;
  color: white;
  padding: 1.5rem;
  flex-shrink: 0;
}

.sidebar .sidebar-header {
  margin-bottom: 2.5rem;
}

.sidebar .sidebar-header .logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.sidebar .sidebar-header .logo span {
  color: #4361ee;
  font-size: 0.8rem;
  background: rgba(67, 97, 238, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.sidebar .sidebar-nav ul {
  list-style: none;
}

.sidebar .sidebar-nav ul li {
  margin-bottom: 0.5rem;
  position: relative;
}

.sidebar .sidebar-nav ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  border-radius: 8px;
  transition: 0.3s;
}

.sidebar .sidebar-nav ul li a .menu-link-content {
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.sidebar .sidebar-nav ul li a i:first-child {
  margin-right: 0.8rem;
  width: 20px;
  text-align: center;
}

.sidebar .sidebar-nav ul li a .arrow {
  font-size: 0.7rem;
  transition: transform 0.3s;
  margin-left: auto;
}

.sidebar .sidebar-nav ul li.active > a,
.sidebar .sidebar-nav ul li a:hover {
  background-color: rgba(67, 97, 238, 0.15);
  color: white;
  font-weight: 600;
}

.sidebar .sidebar-nav ul li.open .arrow {
  transform: rotate(180deg);
}

.sidebar .sidebar-nav ul li.open .submenu {
  display: block;
  max-height: 500px;
  opacity: 1;
  margin-top: 5px;
}

.sidebar .submenu {
  list-style: none;
  padding-left: 2rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar .submenu li {
  margin-bottom: 2px;
}

.sidebar .submenu li a {
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.sidebar .submenu li a:hover {
  background: none;
  color: #4361ee;
}

.sidebar .submenu li.active a {
  color: #4361ee;
  font-weight: 700;
}

.main-content {
  flex-grow: 1;
  padding: 2rem;
  background-color: #f8f9fa;
}

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

.top-header .search-bar {
  background: white;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  width: 400px;
  display: flex;
  align-items: center;
}

.top-header .search-bar i {
  color: #b2bec3;
  margin-right: 0.5rem;
}

.top-header .search-bar input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.9rem;
}

.top-header .user-profile {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.top-header .user-profile .role {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.top-header .user-profile .role.admin {
  background: #ffeaa7;
  color: #d63031;
}

.top-header .user-profile .name {
  font-weight: 600;
  font-size: 0.9rem;
}

.top-header .user-profile i {
  font-size: 1.5rem;
  color: #636e72;
}

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

.summary-grid .card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.summary-grid .card .card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.summary-grid .card .card-icon.blue {
  background: rgba(67, 97, 238, 0.1);
  color: #4361ee;
}

.summary-grid .card .card-icon.green {
  background: rgba(0, 184, 148, 0.1);
  color: #00b894;
}

.summary-grid .card .card-icon.orange {
  background: rgba(253, 203, 110, 0.1);
  color: #e17055;
}

.summary-grid .card .card-icon.purple {
  background: rgba(108, 92, 231, 0.1);
  color: #6c5ce7;
}

.summary-grid .card .card-info h3 {
  font-size: 0.85rem;
  color: #636e72;
  margin-bottom: 0.4rem;
}

.summary-grid .card .card-info .value {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.summary-grid .card .card-info .trend.up {
  color: #00b894;
  font-weight: 600;
  font-size: 0.75rem;
}

.summary-grid .card .card-info .status {
  font-size: 0.75rem;
  color: #636e72;
}

.summary-grid .card .card-info .status.online {
  color: #00b894;
  font-weight: 600;
}

.mall-status-section {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  margin-bottom: 2.5rem;
}

.mall-status-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.mall-status-section .section-header h2 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #1e293b;
  position: relative;
  padding-left: 12px;
}

.mall-status-section .section-header h2:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: #4361ee;
  border-radius: 2px;
}

.mall-status-section .btn-setup {
  background: linear-gradient(135deg, #00b894, #00d2d3);
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.2);
}

.mall-status-section .btn-setup i {
  margin-right: 8px;
}

.mall-status-section .btn-setup:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 184, 148, 0.3);
  filter: brightness(1.1);
}

.mall-status-section .modern-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.mall-status-section .modern-table th {
  text-align: center;
  padding: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #f1f5f9;
}

.mall-status-section .modern-table tbody tr {
  background: #ffffff;
  transition: all 0.2s;
}

.mall-status-section .modern-table tbody tr td {
  text-align: center;
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  color: #334155;
  border-top: 1px solid #f8fafc;
  border-bottom: 1px solid #f8fafc;
}

.mall-status-section .modern-table tbody tr td:first-child {
  border-left: 1px solid #f8fafc;
  border-radius: 12px 0 0 12px;
  font-weight: 600;
  color: #94a3b8;
}

.mall-status-section .modern-table tbody tr td:last-child {
  border-right: 1px solid #f8fafc;
  border-radius: 0 12px 12px 0;
}

.mall-status-section .modern-table tbody tr td img {
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.mall-status-section .modern-table tbody tr:hover {
  background: #f8fafc;
  transform: scale(1.002);
}

.mall-status-section .modern-table tbody tr:hover td {
  border-color: #e2e8f0;
}

.mall-status-section .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
}

.mall-status-section .status-pill:before {
  content: "";
  width: 5px;
  height: 6px;
  border-radius: 50%;
}

.mall-status-section .status-pill.online {
  background: #ecfdf5;
  color: #059669;
}

.mall-status-section .status-pill.online:before {
  background: #10b981;
}

.mall-status-section .status-pill.offline {
  background: #fef2f2;
  color: #dc2626;
}

.mall-status-section .status-pill.offline:before {
  background: #ef4444;
}

.mall-status-section .auto-sync-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
}

.mall-status-section .auto-sync-badge.on {
  background: #e0f2fe;
  color: #0284c7;
}

.mall-status-section .auto-sync-badge.off {
  background: #f1f5f9;
  color: #64748b;
}

.mall-status-section .btn-icon {
  background: #f1f5f9;
  color: #64748b;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.mall-status-section .btn-icon:hover {
  background: #e2e8f0;
  color: #4361ee;
}

.page-header-container {
  margin-bottom: 2rem;
}

.page-header-container .page-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

.page-header-container .tab-menu {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0px;
}

.page-header-container .tab-menu .tab-btn {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  position: relative;
  transition: 0.3s;
}

.page-header-container .tab-menu .tab-btn:hover {
  color: #4361ee;
}

.page-header-container .tab-menu .tab-btn.active {
  color: #4361ee;
}

.page-header-container .tab-menu .tab-btn.active:after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #4361ee;
}

.filter-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  margin-bottom: 1.5rem;
}

.filter-card .filter-row {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.filter-card .filter-row .filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-card .filter-row .filter-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
}

.filter-card .filter-row .filter-group select {
  padding: 0.6rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  min-width: 150px;
  font-size: 0.85rem;
  background: #f8fafc;
}

.action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0 0.5rem;
}

.action-bar .count-info {
  font-size: 0.85rem;
  color: #64748b;
}

.action-bar .count-info strong {
  color: #4361ee;
}

.action-bar .action-right {
  display: flex;
  gap: 10px;
}

.btn-outline {
  background: white;
  color: #4361ee;
  border: 1px solid #4361ee;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

.btn-outline:hover {
  background: rgba(67, 97, 238, 0.05);
}

.placeholder-box {
  background: #f8fafc;
  border: 2px dashed #e2e8f0;
  padding: 5rem;
  text-align: center;
  border-radius: 16px;
  color: #94a3b8;
  font-weight: 600;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
}

.modal .modal-content {
  background-color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 2.5rem;
  border-radius: 20px;
  width: 550px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
}

.modal .modal-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1c23;
}

.modal .modal-header .close-btn {
  font-size: 1.5rem;
  cursor: pointer;
  color: #b2bec3;
}

.modal .modal-header .close-btn:hover {
  color: #2d3436;
}

.modal .form-group {
  margin-bottom: 1.2rem;
}

.modal .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #636e72;
}

.modal .form-group input,
.modal .form-group select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #dfe6e9;
  border-radius: 8px;
  font-size: 0.9rem;
}

.modal .form-group input:focus,
.modal .form-group select:focus {
  border-color: #4361ee;
  outline: none;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.modal .btn.full-width {
  width: 100%;
  padding: 1rem;
  margin-top: 1rem;
}

@keyframes zoomIn {
  from {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.recent-orders-section {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.recent-orders-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.recent-orders-section .section-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
}

.recent-orders-section .section-header .btn {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: none;
  background: #4361ee;
  color: white;
  cursor: pointer;
  font-weight: 600;
}

.recent-orders-section .table-container {
  overflow-x: auto;
}

.recent-orders-section .table-container table {
  width: 100%;
  border-collapse: collapse;
}

.recent-orders-section .table-container table thead tr {
  background-color: #f9fafb;
  border-bottom: 1px solid #e9ecef;
}

.recent-orders-section .table-container table thead tr th {
  text-align: left;
  padding: 1rem;
  font-size: 0.85rem;
  color: #636e72;
  font-weight: 600;
}

.recent-orders-section .table-container table tbody tr {
  border-bottom: 1px solid #e9ecef;
}

.recent-orders-section .table-container table tbody tr td {
  padding: 1.2rem 1rem;
  font-size: 0.9rem;
}

.mall-badge {
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.mall-badge.coupang {
  background: #ffeaa7;
  color: #d35400;
}

.mall-badge.smartstore {
  background: #dff9fb;
  color: #00b894;
}

.badge {
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge.pending {
  background: #fab1a0;
  color: #d63031;
}

.badge.accepted {
  background: #55efc4;
  color: #00b894;
}
