/* PUFF N PURL - Shared Components */

/* Universal Table System */
.table-wrapper {
  overflow-x: auto;
  background: rgba(26, 31, 58, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(0, 243, 255, 0.2);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: transparent;
}

.data-table th,
.data-table td {
  padding: 10px;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid rgba(0, 243, 255, 0.1);
}

.data-table th {
  background: rgba(0, 243, 255, 0.1);
  font-family: 'Orbitron', sans-serif;
  color: var(--cyber-cyan);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.data-table tbody tr:hover {
  background: rgba(0, 243, 255, 0.05);
}

/* Mobile Table Safety */
@media (max-width: 768px) {
  .data-table {
    font-size: 0.85rem;
  }

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

/* Badges */
.service-badge,
.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.status-active {
    background: rgba(0, 255, 65, 0.2);
    color: var(--cyber-green);
    border: 1px solid var(--cyber-green);
}

.status-inactive {
    background: rgba(128, 128, 128, 0.2);
    color: #808080;
    border: 1px solid #808080;
}

/* Real-time Order Status Styles */
.order-status-container {
    min-height: 60px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.order-status {
    font-weight: bold;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
    min-width: 80px;
    text-align: center;
    transition: all 0.3s ease;
}

.status-processing {
    background: var(--cyber-orange);
    color: black;
    animation: pulse 2s infinite;
}

.status-in-progress {
    background: var(--cyber-cyan);
    color: black;
    animation: pulse 1.5s infinite;
}

.status-completed {
    background: var(--cyber-green);
    color: white;
}

.status-partial {
    background: var(--cyber-yellow);
    color: black;
}

.status-failed {
    background: #ff4444;
    color: white;
}

.status-success {
    background: var(--cyber-green);
    color: white;
}

.status-queued {
    background: rgba(128, 128, 128, 0.5);
    color: white;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Notifications */
.notification {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-info {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--cyber-cyan);
    color: var(--cyber-cyan);
}

.notification-success {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--cyber-green);
    color: var(--cyber-green);
}

.notification-warning {
    background: rgba(255, 102, 0, 0.1);
    border: 1px solid var(--cyber-orange);
    color: var(--cyber-orange);
}

.notification-error {
    background: rgba(255, 0, 255, 0.1);
    border: 1px solid var(--cyber-pink);
    color: var(--cyber-pink);
}

.notification-icon {
    font-size: 1.5rem;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.notification-message {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Table responsive */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* START: canonical service/order card style — used across user pages */
body.user .service-card, body.user .order-creation-card {
  background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 50%, #2a0a1a 100%);
  border: 3px solid #ff1493;
  border-radius: 20px;
  padding: 30px;
  color: var(--cyber-text);
  box-shadow:
    0 15px 40px rgba(255, 20, 147, 0.3),
    0 0 60px rgba(255, 105, 180, 0.2),
    inset 0 0 60px rgba(255, 20, 147, 0.1);
  position: relative;
  max-width: none; /* allow page CSS to control width */
  margin: 0 0 1rem 0; /* do not auto-center */
  box-sizing: border-box;
  overflow: hidden;
}

body.user .service-card::before, body.user .order-creation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 20, 147, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* enforce single-column forms inside cards */
body.user .service-card .order-form-grid, body.user .order-creation-card .order-form-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* inputs inside cards */
body.user .service-card .form-input, body.user .order-creation-card .form-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255,0.03);
  border: 2px solid rgba(255,20,147,0.12);
  color: #fff;
}

/* header styles for consistency */
body.user .service-card .service-card-header, body.user .order-creation-card .order-form-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

body.user .service-card .service-name, body.user .order-creation-card .order-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  color: var(--cyber-cyan);
  font-weight: 700;
}

body.user .service-card .service-price, body.user .order-creation-card .order-subtitle {
  font-size: 0.9rem;
  color: var(--cyber-text-dim);
}

body.user .order-creation-card .order-icon {
  font-size: 1.2rem;
  color: var(--cyber-cyan);
  margin-bottom: 0.5rem;
}

/* END: canonical service/order card style */