/* order-display.css - Open Order and Close Order styling inspired by Macrium design */

:root {
  /* Macrium-inspired color palette */
  --macrium-primary-blue: #0066cc;
  --macrium-secondary-blue: #004499;
  --macrium-light-blue: #e6f2ff;
  --macrium-accent-blue: #3399ff;
  --macrium-dark-blue: #003366;
  --macrium-success-green: #28a745;
  --macrium-warning-orange: #fd7e14;
  --macrium-danger-red: #dc3545;
  --macrium-light-gray: #f8f9fa;
  --macrium-medium-gray: #6c757d;
  --macrium-dark-gray: #343a40;
  --macrium-white: #ffffff;
  --macrium-border: #dee2e6;
  --macrium-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
  --macrium-shadow-hover: 0 6px 20px rgba(0, 102, 204, 0.25);
}

/* Order Container Base Styles */
.order-display {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--macrium-light-blue) 0%, var(--macrium-white) 100%);
  min-height: 100vh;
  padding: 20px;
}

/* Card Container Styling */
.order-display .card-container {
  background: var(--macrium-white);
  border: 2px solid var(--macrium-primary-blue);
  border-radius: 16px;
  box-shadow: var(--macrium-shadow);
  margin: 16px auto;
  max-width: 800px;
  padding: 16px 18px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.order-display .card-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--macrium-primary-blue) 0%, var(--macrium-accent-blue) 100%);
}

.order-display .card-container:hover {
  transform: translateY(-4px);
  box-shadow: var(--macrium-shadow-hover);
  border-color: var(--macrium-accent-blue);
}

/* Order Type Headers */
.order-display .card-container .order-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 16px 0;
  text-align: center;
  color: var(--macrium-primary-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.order-display .card-container .order-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--macrium-primary-blue) 0%, var(--macrium-accent-blue) 100%);
  border-radius: 2px;
}

/* Open Order Specific Styling */
.order-display .card-container.open-order {
  background: var(--clay-secondary);
}

.order-display .card-container.open-order::before {
  background: linear-gradient(90deg, var(--clay-accent) 0%, var(--clay-deep) 100%);
}

.order-display .card-container.open-order .order-title {
  color: var(--clay-text-primary);
}

.order-display .card-container.open-order .order-title::after {
  background: linear-gradient(90deg, var(--clay-accent) 0%, var(--clay-deep) 100%);
}

.order-display .card-container.open-order:hover {
  background: var(--clay-tertiary);
}

/* Close Order Specific Styling */
.order-display .card-container.close-order {
  border-color: var(--macrium-primary-blue);
  background: var(--clay-secondary);
}

.order-display .card-container.close-order::before {
  background: linear-gradient(90deg, var(--clay-accent) 0%, var(--clay-deep) 100%);
}

.order-display .card-container.close-order .order-title {
  color: var(--clay-text-primary);
}

.order-display .card-container.close-order .order-title::after {
  background: linear-gradient(90deg, var(--clay-accent) 0%, var(--clay-deep) 100%);
}

.order-display .card-container.close-order:hover {
  border-color: #ff8c42;
}

/* Form Elements Styling - Clay Morphism */
.order-display .form-group {
  margin-bottom: 12px;
}

.order-display .form-label {
  display: block;
  font-weight: 600;
  color: var(--clay-text-primary);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.order-display .form-control,
.order-display input[type="text"],
.order-display input[type="number"],
.order-display input[type="email"],
.order-display textarea,
.order-display select {
  background: var(--clay-primary);
  border: none;
  border-radius: 16px;
  color: var(--clay-text-primary);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 14px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
  box-sizing: border-box;
  box-shadow: var(--clay-concave-shadow);
}

.order-display .form-control:focus,
.order-display input[type="text"]:focus,
.order-display input[type="number"]:focus,
.order-display input[type="email"]:focus,
.order-display textarea:focus,
.order-display select:focus {
  box-shadow: var(--clay-concave-shadow), 0 0 0 4px rgba(195, 155, 123, 0.2);
  outline: none;
  transform: scale(1.02);
}

/* Button Styling - Clay Morphism */
.order-display .btn,
.order-display button,
.order-display .button,
.order-display input[type="submit"],
.order-display input[type="button"] {
  background: var(--clay-primary);
  border: none;
  border-radius: 20px;
  color: var(--clay-text-primary);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 32px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--clay-convex-shadow);
  position: relative;
  overflow: hidden;
}

.order-display .btn:hover,
.order-display button:hover,
.order-display .button:hover,
.order-display input[type="submit"]:hover,
.order-display input[type="button"]:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--clay-shadow-heavy), inset 0 2px 4px rgba(250, 243, 233, 0.9);
}

.order-display .btn:active,
.order-display button:active,
.order-display .button:active,
.order-display input[type="submit"]:active,
.order-display input[type="button"]:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: var(--clay-concave-shadow);
}

.order-display .btn-primary,
.order-display .button--primary {
  background: var(--clay-accent);
  color: var(--clay-warm-white);
  box-shadow: var(--clay-convex-shadow), 0 2px 8px rgba(195, 155, 123, 0.3);
}

.order-display .btn-primary:hover,
.order-display .button--primary:hover {
  background: var(--clay-deep);
  box-shadow: var(--clay-shadow-heavy), inset 0 2px 4px rgba(250, 243, 233, 0.9);
  color: var(--clay-warm-white);
}

.order-display .btn-success {
  background: var(--clay-accent);
  color: var(--clay-warm-white);
}

.order-display .btn-success:hover {
  background: var(--clay-deep);
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--clay-shadow-heavy), inset 0 2px 4px rgba(250, 243, 233, 0.9);
}

.order-display .btn-warning {
  background: var(--clay-secondary);
  color: var(--clay-text-primary);
}

.order-display .btn-warning:hover {
  background: var(--clay-tertiary);
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--clay-shadow-heavy);
}

/* Secondary Button Variant */
.order-display .button--secondary {
  background: var(--clay-secondary);
  color: var(--clay-text-primary);
  box-shadow: var(--clay-concave-shadow);
}

.order-display .button--secondary:hover {
  background: var(--clay-tertiary);
  box-shadow: var(--clay-convex-shadow);
  transform: translateY(-1px);
}

/* Status Indicators - Clay Style */
.order-display .status-indicator {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--clay-concave-shadow);
  background: var(--clay-primary);
}

.order-display .status-indicator.active {
  background: var(--clay-accent);
  color: var(--clay-warm-white);
  box-shadow: var(--clay-convex-shadow);
}

.order-display .status-indicator.pending {
  background: var(--clay-secondary);
  color: var(--clay-text-primary);
  box-shadow: var(--clay-concave-shadow);
}

.order-display .status-indicator.cancelled {
  background: var(--clay-deep);
  color: var(--clay-warm-white);
  box-shadow: var(--clay-convex-shadow);
}

/* Responsive Design - Clay Adaptation */
@media (max-width: 768px) {
  .order-display {
    padding: 16px;
  }
  
  .order-display .card-container {
    margin: 20px auto;
    padding: 32px;
    border-radius: 20px;
  }
  
  .order-display .card-container .order-title {
    font-size: 1.8rem;
    margin-bottom: 28px;
    letter-spacing: 1.5px;
  }
  
  .order-display .form-group {
    margin-bottom: 20px;
  }
  
  .order-display .btn,
  .order-display button,
  .order-display .button {
    width: 100%;
    margin-bottom: 16px;
    padding: 18px 24px;
  }
}

@media (max-width: 480px) {
  .order-display .card-container {
    padding: 24px;
    margin: 12px;
  }
  
  .order-display .card-container .order-title {
    font-size: 1.6rem;
    letter-spacing: 1px;
  }
  
  .order-display .form-control,
  .order-display input[type="text"],
  .order-display input[type="number"],
  .order-display input[type="email"],
  .order-display textarea,
  .order-display select {
    font-size: 16px;
    padding: 14px 18px;
  }
  
  .order-display .btn,
  .order-display button,
  .order-display .button {
    padding: 16px 20px;
    font-size: 15px;
  }
}

/* Clay Animation Effects */
@keyframes clayFadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    box-shadow: var(--clay-concave-shadow);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: var(--clay-convex-shadow);
  }
}

.order-display .card-container {
  animation: clayFadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Clay Loading Animation */
@keyframes clayPulse {
  0%, 100% {
    box-shadow: var(--clay-convex-shadow);
    transform: scale(1);
  }
  50% {
    box-shadow: var(--clay-concave-shadow);
    transform: scale(0.98);
  }
}

.order-display .loading {
  animation: clayPulse 2s ease-in-out infinite;
}

/* Clay Ripple Effect */
@keyframes clayRipple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

.order-display .button::after,
.order-display .btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(250, 243, 233, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.order-display .button:focus:not(:active)::after,
.order-display .btn:focus:not(:active)::after {
  animation: clayRipple 0.6s ease-out;
}

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