
:root {
  --background: #ffffff;
  --foreground: #171717;
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --font-sans: var(--font-geist-sans);
  --font-mono: var(--font-geist-mono);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #ededed;
  }
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
}

/* globals.css (chắc chắn load sau bootstrap) */
:global(.badge-bubble) {
    box-shadow: 0 6px 14px rgba(0,0,0,0.35) !important;
    z-index: 9999 !important;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
  }
  
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
  }
  
  
/* Order Detail Page Styles */
.order-detail-page {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

.order-title {
  color: #2c3e50;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.order-status-badge .badge {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  animation: statusPulse 2s infinite;
}

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

.custom-breadcrumb {
  background: rgba(255,255,255,0.9);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.breadcrumb-link {
  color: #3498db;
  text-decoration: none;
  transition: all 0.3s ease;
}

.breadcrumb-link:hover {
  color: #2980b9;
  transform: translateY(-1px);
}

/* Info Card Styles */
.info-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  border: none;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.info-card-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  border: none;
}

.info-card-title {
  margin: 0;
  font-weight: 600;
  font-size: 1.1rem;
}

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

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

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

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

/* Summary Card Styles */
.summary-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  border: none;
}

.summary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.summary-card-header {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 1.5rem;
  border: none;
}

.summary-card-title {
  margin: 0;
  font-weight: 600;
  font-size: 1.1rem;
}

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

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
  transition: all 0.3s ease;
}

.summary-row:hover {
  background: #f8f9fa;
  padding-left: 1rem;
  border-radius: 8px;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-value {
  font-weight: 600;
  color: #2c3e50;
}

.summary-divider {
  margin: 1rem 0;
  border-color: #dee2e6;
}

.total-row {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  margin: 0 -1.5rem;
  padding: 1rem 1.5rem;
  border-radius: 0;
}

.total-value {
  font-size: 1.2rem;
  color: #e74c3c;
}

/* Products Section */
.products-section {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  margin-top: 2rem;
}

.section-title {
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #3498db;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 50px;
  height: 3px;
  background: #e74c3c;
}

/* Product Card Styles */
.product-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border: none;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.product-image-container {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.product-card:hover .product-image {
  transform: scale(1.1);
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
}

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

.product-title {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.product-details {
  space-y: 0.5rem;
}

.product-detail-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0;
  transition: all 0.3s ease;
}

.product-detail-item:hover {
  background: #f8f9fa;
  padding-left: 0.5rem;
  border-radius: 5px;
}

.total-item {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  padding: 0.5rem;
  border-radius: 8px;
  margin-top: 0.5rem;
}

/* Loading Animation */
.spinner-border {
  width: 3rem;
  height: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .order-title {
    font-size: 1.5rem;
  }
  
  .info-card, .summary-card, .products-section {
    margin-bottom: 1rem;
  }
  
  .product-card {
    margin-bottom: 1rem;
  }
}

/* Animation for page load */
.order-detail-page {
  animation: fadeInUp 0.6s ease-out;
}

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

/* Icon styles */
.bi {
  font-size: 1.1em;
}

/* Loading Spinner Styles */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.loading-content {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  animation: fadeInUp 0.6s ease-out;
}

.loading-message {
  margin-top: 1rem;
  color: #2c3e50;
  font-weight: 600;
  font-size: 1.1rem;
}

.loading-dots {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 0.5rem;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3498db;
  animation: loadingDots 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes loadingDots {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

.spinner-border-lg {
  width: 4rem;
  height: 4rem;
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}
