/* cek-pesanan.css */

.cek-pesanan-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.cek-pesanan-container h1 {
  font-size: 32px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 16px;
}

/* Search Form */
.search-order-form {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group label i {
  color: var(--primary);
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 14px 20px;
  background: rgba(0, 217, 255, 0.05);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 16px;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
}

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

.search-btn {
  background: var(--accent-gradient);
  border: none;
  padding: 16px 30px;
  border-radius: 10px;
  color: #0a1929;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  transition: all 0.3s ease;
}

.search-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 217, 255, 0.3);
}

.help-text {
  margin-top: 15px;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.help-text i {
  color: var(--primary);
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: 40px;
  background: var(--card-bg);
  border-radius: 15px;
  margin-bottom: 30px;
  border: 1px solid var(--card-border);
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(0, 217, 255, 0.1);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}

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

.loading-state p {
  color: var(--text-secondary);
  font-size: 16px;
}

/* Order Result */
.order-result {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

.order-header {
  padding: 25px 30px;
  background: linear-gradient(
    135deg,
    rgba(0, 217, 255, 0.1),
    rgba(0, 255, 136, 0.1)
  );
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-id {
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-id i {
  color: var(--primary);
}

.order-date {
  color: var(--text-secondary);
  font-size: 14px;
}

.order-body {
  padding: 30px;
}

.order-status {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--card-border);
}

.status-badge {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-processing {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.2);
}

.status-completed {
  background: rgba(0, 200, 83, 0.1);
  color: #00c853;
  border: 1px solid rgba(0, 200, 83, 0.2);
}

.status-pending {
  background: rgba(255, 152, 0, 0.1);
  color: #ff9800;
  border: 1px solid rgba(255, 152, 0, 0.2);
}

.status-cancelled {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.2);
}

.status-message {
  color: var(--text-secondary);
  font-size: 14px;
}

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

.detail-item {
  background: rgba(0, 217, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(0, 217, 255, 0.1);
}

.detail-item h4 {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-item h4 i {
  color: var(--primary);
  font-size: 12px;
}

.detail-item p {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}

.order-products {
  margin-top: 30px;
}

.order-products h3 {
  font-size: 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.order-products h3 i {
  color: var(--primary);
}

.product-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: rgba(0, 217, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(0, 217, 255, 0.1);
  margin-bottom: 15px;
}

.product-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    rgba(0, 217, 255, 0.1),
    rgba(0, 255, 136, 0.1)
  );
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
}

.product-info {
  flex: 1;
}

.product-info h4 {
  font-size: 16px;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.product-info p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.product-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
}

.order-actions {
  padding: 30px;
  background: rgba(0, 217, 255, 0.05);
  border-top: 1px solid var(--card-border);
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.action-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.btn-invoice {
  background: var(--accent-gradient);
  border: none;
  color: #0a1929;
}

.btn-invoice:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 217, 255, 0.3);
}

.btn-support {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-support:hover {
  background: rgba(0, 217, 255, 0.1);
  transform: translateY(-3px);
}

.btn-track {
  background: transparent;
  border: 1px solid var(--secondary);
  color: var(--secondary);
}

.btn-track:hover {
  background: rgba(0, 255, 136, 0.1);
  transform: translateY(-3px);
}

/* No Order Found */
.no-order-found {
  text-align: center;
  padding: 60px 30px;
  background: var(--card-bg);
  border-radius: 15px;
  margin-bottom: 40px;
  border: 1px solid var(--card-border);
}

.no-order-found i {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.no-order-found h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.no-order-found p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 25px;
  line-height: 1.6;
}

.support-btn {
  background: var(--accent-gradient);
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  color: #0a1929;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.support-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 217, 255, 0.3);
}

/* Recent Orders */
.recent-orders {
  margin: 50px 0;
}

.recent-orders h2 {
  font-size: 24px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.recent-orders h2 i {
  color: var(--primary);
}

.orders-list {
  display: grid;
  gap: 20px;
}

.order-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.order-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 217, 255, 0.3);
  box-shadow: var(--shadow);
}

.order-card-info h4 {
  font-size: 16px;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.order-card-info p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-card-actions {
  display: flex;
  gap: 10px;
}

.card-action-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.btn-view {
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.2);
  color: var(--primary);
}

.btn-view:hover {
  background: rgba(0, 217, 255, 0.2);
}

.btn-download {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.2);
  color: var(--secondary);
}

.btn-download:hover {
  background: rgba(0, 255, 136, 0.2);
}

/* FAQ Section */
.faq-section {
  margin-top: 60px;
}

.faq-section h2 {
  font-size: 24px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.faq-section h2 i {
  color: var(--primary);
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(0, 217, 255, 0.3);
  transform: translateY(-3px);
}

.faq-question {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.faq-question i {
  color: var(--primary);
  font-size: 14px;
}

.faq-answer {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .cek-pesanan-container h1 {
    font-size: 24px;
  }

  .search-order-form {
    padding: 20px;
  }

  .order-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .order-details {
    grid-template-columns: 1fr;
  }

  .product-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .product-price {
    align-self: flex-end;
  }

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

  .action-btn {
    justify-content: center;
  }

  .order-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .order-card-actions {
    align-self: stretch;
    justify-content: space-between;
  }
}
/* cek-pesanan.css - Lanjutan */

.order-status-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0;
  padding: 20px;
  background: rgba(0, 217, 255, 0.03);
  border-radius: 12px;
}

.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  position: relative;
}

.status-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -50%;
  top: 15px;
  width: 80%;
  height: 2px;
  background: rgba(0, 217, 255, 0.2);
}

.status-step.active .step-icon {
  background: var(--accent-gradient);
  color: #0a1929;
  border: none;
}

.status-step.completed .step-icon {
  background: rgba(0, 255, 136, 0.2);
  color: #00c853;
  border-color: #00c853;
}

.step-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 217, 255, 0.1);
  border: 2px solid rgba(0, 217, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 10px;
  z-index: 1;
}

.status-step span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.status-step small {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 5px;
}

/* Delivery Info */
.delivery-info {
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.05), rgba(0, 255, 136, 0.05));
  border-radius: 12px;
  padding: 25px;
  margin-top: 30px;
}

.delivery-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.delivery-header i {
  font-size: 28px;
  color: var(--primary);
}

.delivery-header h4 {
  font-size: 18px;
  color: var(--text-primary);
  margin: 0;
}

.delivery-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.delivery-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.delivery-item i {
  color: var(--primary);
  font-size: 16px;
  margin-top: 3px;
}

.delivery-item p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.delivery-item strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 5px;
}

/* Digital Product Access */
.digital-access {
  background: rgba(0, 217, 255, 0.05);
  border: 1px dashed var(--primary);
  border-radius: 12px;
  padding: 25px;
  margin-top: 30px;
}

.access-credentials {
  background: #0a1929;
  border-radius: 8px;
  padding: 20px;
  margin: 15px 0;
  font-family: monospace;
  color: var(--primary);
  word-break: break-all;
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background: rgba(0, 217, 255, 0.1);
  transform: translateY(-2px);
}

/* Invoice Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
  padding: 25px 30px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(0, 255, 136, 0.1));
  border-radius: 20px 20px 0 0;
}

.modal-header h3 {
  font-size: 22px;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  transition: all 0.3s ease;
}

.modal-close:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

.modal-body {
  padding: 30px;
}

.invoice-details {
  margin-bottom: 30px;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.invoice-table th {
  text-align: left;
  padding: 12px;
  background: rgba(0, 217, 255, 0.1);
  color: var(--text-primary);
  font-weight: 600;
}

.invoice-table td {
  padding: 12px;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-secondary);
}

.invoice-total {
  text-align: right;
  padding: 20px;
  background: rgba(0, 217, 255, 0.05);
  border-radius: 10px;
  margin-top: 20px;
}

.invoice-total p {
  margin: 5px 0;
  color: var(--text-primary);
}

.invoice-total .grand-total {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 2px dashed var(--card-border);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--card-bg);
  border-radius: 15px;
  border: 1px solid var(--card-border);
}

.empty-state i {
  font-size: 48px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 25px;
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.quick-action-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.quick-action-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.1);
}

.quick-action-card i {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 15px;
}

.quick-action-card h4 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.quick-action-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* Notification */
.notification {
  position: fixed;
  top: 100px;
  right: 30px;
  background: var(--card-bg);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 16px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 999;
  animation: slideIn 0.3s ease;
  max-width: 400px;
}

.notification i {
  color: var(--primary);
  font-size: 20px;
}

.notification p {
  color: var(--text-primary);
  margin: 0;
  flex: 1;
}

.notification-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 5px;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive Improvements */
@media (max-width: 768px) {
  .order-status-progress {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
  }

  .status-step {
    width: 100%;
    flex-direction: row;
    gap: 20px;
  }

  .status-step:not(:last-child)::after {
    display: none;
  }

  .step-icon {
    margin-bottom: 0;
  }

  .delivery-details {
    grid-template-columns: 1fr;
  }

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

  .modal-content {
    margin: 20px;
  }

  .notification {
    top: auto;
    bottom: 20px;
    right: 20px;
    left: 20px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .order-header {
    padding: 20px;
  }

  .order-body {
    padding: 20px;
  }

  .order-actions {
    padding: 20px;
  }

  .action-btn {
    width: 100%;
  }

  .modal-header {
    padding: 20px;
  }

  .modal-body {
    padding: 20px;
  }

  .invoice-table {
    font-size: 14px;
  }

  .invoice-table th,
  .invoice-table td {
    padding: 8px;
  }
}

/* Print Styles */
@media print {
  .main-header,
  .main-footer,
  .search-order-form,
  .recent-orders,
  .faq-section,
  .order-actions,
  .quick-actions,
  .modal-close {
    display: none !important;
  }

  .order-result {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .order-header {
    background: none;
    color: #000;
  }

  .status-badge {
    border: 1px solid #000;
    color: #000;
  }

  body {
    background: white;
  }

  * {
    color: black !important;
    background: white !important;
  }
}