@charset "utf-8";

.device-mockup-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  perspective: 1500px;
}

.device-mockup {
  position: relative;
  width: 320px;
  height: 650px;
  background: #1f2937;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0.5rem 25px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.phone-mockup::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 5px;
  background: #374151;
  border-radius: 10px;
  z-index: 10;
}

.device-screen {
  width: 100%;
  height: 100%;
  background: #f8fafc;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #5bb5ed 0%, #9d7cbe 100%);
  color: #fff;
  font-size: 0.75rem;
  position: relative;
  z-index: 2;
}

.status-center {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.notch {
  width: 120px;
  height: 28px;
  background: #1f2937;
  border-radius: 0 0 20px 20px;
}

.status-left {
  display: flex;
  align-items: center;
  font-weight: bold;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-interface {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.app-top-bar {
  padding: 0.5rem;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.app-logo {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(135deg, #5bb5ed 0%, #9d7cbe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.category-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  padding: 0.5rem 1rem;
  background: #f3f4f6;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: bold;
  color: #6b7280;
  white-space: nowrap;
}

.tab.active {
  background: linear-gradient(135deg, #5bb5ed 0%, #9d7cbe 100%);
  color: #fff;
}

.menu-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: #f9fafb;
}

.menu-card {
  display: flex;
  gap: 0.75rem;
  background: #fff;
  border-radius: 12px;
  padding: 0.5rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.menu-image {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #eff6ff 0%, #f3e8ff 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-image .bi {
  font-size: 1.75rem;
  color: #5bb5ed;
}

.menu-details {
  flex: 1;
}

.menu-desc {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0 0 0.5rem 0;
}

.menu-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price {
  font-weight: bold;
  color: #5bb5ed;
}

.original-price {
  font-size: 0.8125rem;
  color: #9ca3af;
  text-decoration: line-through;
}

.add-btn {
  color: #5bb5ed;
  font-size: 1.5rem;
}

.bottom-action {
  padding: 1rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.order-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(135deg, #5bb5ed 0%, #9d7cbe 100%);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(91, 181, 237, 0.4);
}

.btn-info {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: #fff;
  border-radius: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  font-size: 0.8125rem;
  font-weight: bold;
  animation: floatBadge 3s ease-in-out infinite;
}

.float-badge .bi {
  font-size: 1rem;
  color: #5bb5ed;
}

.time-badge {
  top: 15%;
  right: -35%;
  animation-delay: 0s;
}

.payment-badge {
  bottom: 45%;
  left: -35%;
  animation-delay: 0.5s;
}

.notify-badge {
  bottom: 15%;
  right: -35%;
  animation-delay: 1s;
}

@keyframes floatBadge {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.05);
  }
}

.dashboard-mockup-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  perspective: 2000px;
}

.dashboard-mockup {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  background: #2c3e50;
  border-radius: 32px;
  padding: 1rem;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25), 0 15px 50px rgba(0, 0, 0, 0.15),
    inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dashboard-mockup::before {
  content: "";
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  background: #1a252f;
  border-radius: 3px;
  z-index: 10;
}

.dashboard-mockup > * {
  background: transparent;
  border-radius: 20px;
  position: relative;
  z-index: 1;
}

.dashboard-mockup > .dashboard-header:first-child {
  border-radius: 20px 20px 0 0;
}

.dashboard-mockup > .dashboard-content:last-child {
  border-radius: 0 0 20px 20px;
}

.dashboard-mockup::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  width: 4px;
  height: 60px;
  background: #1a252f;
  border-radius: 2px;
  z-index: 10;
}

.dashboard-header {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

.dashboard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: bold;
}

.dashboard-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dashboard-user .bi {
  font-size: 1.75rem;
  color: #cbd5e1;
}

.dashboard-tabs {
  display: flex;
  padding: 0 1.5rem;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.dashboard-tabs::-webkit-scrollbar {
  height: 3px;
}

.dashboard-tabs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.tab-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: bold;
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.tab-item.active {
  color: #fff;
  border-bottom-color: #5bb5ed;
  background: rgba(91, 181, 237, 0.1);
}

.tab-item .bi {
  font-size: 1rem;
}

.dashboard-content {
  padding: 1.5rem;
  background: #f8fafc;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.dashboard-content::-webkit-scrollbar {
  width: 6px;
}

.dashboard-content::-webkit-scrollbar-track {
  background: #e5e7eb;
  border-radius: 3px;
}

.dashboard-content::-webkit-scrollbar-thumb {
  background: #9ca3af;
  border-radius: 3px;
}

.dashboard-content::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.02);
  display: flex;
  gap: 0.875rem;
  align-items: center;
}

.metric-card.primary {
  background: linear-gradient(135deg, #5bb5ed 0%, #9d7cbe 100%);
  box-shadow: 0 4px 20px rgba(91, 181, 237, 0.3),
    0 0 0 1px rgba(91, 181, 237, 0.1);
}

.metric-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 181, 237, 0.1);
  border-radius: 10px;
  flex-shrink: 0;
}

.metric-card.primary .metric-icon {
  background: rgba(255, 255, 255, 0.2);
}

.metric-icon .bi {
  font-size: 1.5rem;
  color: #5bb5ed;
}

.metric-card.primary .metric-icon .bi {
  color: #fff;
}

.metric-value {
  font-size: 1.625rem;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 0.375rem;
}

.metric-card.primary .metric-value {
  color: #fff;
}

.metric-label {
  font-size: 0.8125rem;
  color: #6b7280;
  font-weight: bold;
  margin-bottom: 0.375rem;
}

.metric-card.primary .metric-label {
  color: rgba(255, 255, 255, 0.9);
}

.metric-trend {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: bold;
  color: #10b981;
}

.metric-card.primary .metric-trend {
  color: rgba(255, 255, 255, 0.95);
}

.metric-trend .bi {
  font-size: 0.875rem;
}

.metric-trend.positive {
  color: #10b981;
}

.metric-trend.negative {
  color: #ef4444;
}

.sales-ratio-section {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.sales-ratio-section h4 {
  font-size: 1.125rem;
  margin: 0 0 1rem 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.category-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.category-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eff6ff 0%, #f3e8ff 100%);
  border-radius: 0.5rem;
}

.category-icon .bi {
  font-size: 1.375rem;
  color: #5bb5ed;
}

.category-title {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-name {
  font-weight: bold;
}

.category-percentage {
  font-size: 1.125rem;
  font-weight: bold;
  color: #5bb5ed;
}

.sales-amount {
  font-size: 1.375rem;
  font-weight: bold;
  margin-bottom: 0.375rem;
}

.order-info {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.625rem;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.875rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #5bb5ed 0%, #9d7cbe 100%);
  border-radius: 10px;
}

.top-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.top-items .item {
  font-size: 0.75rem;
  color: #4b5563;
  padding: 0.375rem 0.625rem;
  background: #fff;
  border-radius: 5px;
  border: 1px solid #e5e7eb;
}

@media (max-width: 1200px) {
  .dashboard-mockup {
    max-width: 95%;
  }

  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.875rem;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
  }
}

@media (max-width: 768px) {
  .device-mockup-container,
  .dashboard-mockup-container {
    padding: 1rem;
  }

  .device-mockup {
    width: 280px;
    height: 570px;
    border-radius: 35px;
    padding: 10px;
  }

  .phone-mockup::before {
    width: 50px;
    height: 4px;
  }

  .device-screen {
    border-radius: 26px;
  }

  .float-badge {
    display: none;
  }

  .dashboard-mockup {
    max-width: 100%;
    border-radius: 24px;
    padding: 12px;
  }

  .dashboard-mockup::before {
    width: 60px;
    height: 5px;
    bottom: 10px;
  }

  .dashboard-mockup::after {
    width: 3px;
    height: 50px;
    right: 6px;
  }

  .dashboard-content {
    padding: 1rem;
    height: calc(100% - 130px);
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .metric-card {
    padding: 1rem;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .dashboard-nav {
    padding: 0.875rem;
  }

  .dashboard-tabs {
    padding: 0 1rem;
  }

  .tab-item {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 480px) {
  .device-mockup {
    width: 260px;
    height: 530px;
    border-radius: 30px;
    padding: 0.5rem;
  }

  .device-screen {
    border-radius: 23px;
  }

  .status-bar {
    padding: 0.625rem 0.875rem;
    font-size: 0.6875rem;
  }

  .app-logo {
    font-size: 1.25rem;
  }

  .tab {
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
  }

  .menu-card {
    padding: 0.625rem;
  }

  .menu-image {
    width: 50px;
    height: 50px;
  }

  .menu-details h4 {
    font-size: 0.875rem;
  }

  .menu-desc {
    font-size: 0.6875rem;
  }

  .dashboard-mockup {
    padding: 10px;
  }

  .dashboard-mockup::before {
    width: 50px;
    height: 4px;
    bottom: 0.5rem;
  }

  .dashboard-mockup::after {
    width: 3px;
    height: 40px;
    right: 5px;
  }

  .dashboard-nav {
    padding: 0.875rem;
  }

  .dashboard-logo {
    font-size: 1rem;
  }

  .dashboard-content {
    padding: 0.875rem;
    height: calc(100% - 120px);
  }

  .metric-card {
    padding: 0.5rem;
  }

  .metric-icon {
    width: 44px;
    height: 44px;
  }

  .metric-icon .bi {
    font-size: 1.25rem;
  }

  .metric-value {
    font-size: 1.375rem;
  }

  .metric-label {
    font-size: 0.75rem;
  }

  .sales-ratio-section {
    padding: 0.875rem;
  }

  .sales-ratio-section h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .category-card {
    padding: 0.875rem;
  }

  .category-icon {
    width: 38px;
    height: 38px;
  }

  .category-icon .bi {
    font-size: 1.25rem;
  }

  .category-name {
    font-size: 0.875rem;
  }

  .category-percentage {
    font-size: 1rem;
  }

  .sales-amount {
    font-size: 1.125rem;
  }

  .order-info {
    font-size: 0.6875rem;
  }

  .top-items .item {
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .device-mockup,
  .dashboard-mockup,
  .float-badge {
    animation: none !important;
  }
}
