/* sellersdashboard.css */

/* Container styling */
.dashboard-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #021317;
  border: 2px solid #21b5ef;
  border-radius: 8px;
  color: #fff;
}

/* Page title */
.dashboard-container h1 {
  text-align: center;
  color: #21b5ef;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

/* ── Post Item button container ─────────────────────────────────────────────── */
.dashboard-actions {
  text-align: right;
  margin-bottom: 2rem;    /* give space below the button */
}

.dashboard-actions .btn {
  padding: 0.6rem 1.2rem;
  background: #21b5ef;
  color: #021317;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s ease;
}

.dashboard-actions .btn:hover {
  background: #49c2f2;
}

/* ── Shop Settings Panel ───────────────────────────────────────────────────── */
.shop-settings {
  background: rgba(33,181,239,0.1);
  border: 1px solid #49c2f2;
  padding: 1rem;
  margin-bottom: 2rem;
  border-radius: 6px;
}

.shop-settings h2 {
  margin-top: 0;
  color: #21b5ef;
}

.shop-settings .field,
.shop-settings .field-group {
  margin-bottom: 1rem;
}

.shop-settings .field {
  display: flex;
  flex-direction: column;
}

.shop-settings .field-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.shop-settings label {
  margin-bottom: 0.25rem;
  color: #49c2f2;
}

.shop-settings input {
  padding: 0.5rem;
  border: 1px solid #49c2f2;
  border-radius: 4px;
  background: #021317;
  color: #fff;
}

.shop-settings button {
  padding: 0.6rem 1.2rem;
  background: #21b5ef;
  color: #021317;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.shop-settings button:hover {
  background: #49c2f2;
}

.feedback {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* ── Orders table ──────────────────────────────────────────────────────────── */
#orders-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

#orders-table th,
#orders-table td {
  padding: 0.6rem;
  border: 1px solid #49c2f2;
  vertical-align: top;
}

#orders-table th {
  background-color: #021317;
  color: #49c2f2;
  text-align: left;
}

#orders-table tbody tr:nth-child(even) {
  background: rgba(73,194,242,0.1);
}

/* Label & shipped buttons */
.print-label,
.mark-shipped {
  padding: 0.4rem 0.8rem;
  background: #21b5ef;
  color: #021317;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.print-label:hover,
.mark-shipped:hover {
  background: #49c2f2;
}

.mark-shipped:disabled {
  background: rgba(33,181,239,0.6);
  cursor: default;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .dashboard-actions {
    text-align: center;
  }

  #orders-table th,
  #orders-table td {
    font-size: 0.85rem;
    padding: 0.4rem;
  }

  .dashboard-container {
    padding: 1rem;
  }

  .shop-settings .field-group {
    flex-direction: column;
  }
}
/* Add this to sellersdashboard.css */
.helper-link {
  font-size: 0.9rem;
  color: #49c2f2;
  cursor: pointer;
  margin-top: -10px;
}

.modal.hidden {
  display: none;
}

.modal {
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background: #ffffff;
  color: #021317; /* Dark text for contrast */
  margin: 10% auto;
  padding: 20px;
  max-width: 500px;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}


.close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 24px;
  cursor: pointer;
}
