/* HAUGTOLAS — Luxury RMA Interface (refined & responsive) */

:root {
  --bg: #050506;
  --surface: rgba(18,18,23,0.78);
  --border: rgba(255,255,255,0.10);
  --text: #ececf1;
  --text-muted: #9b9ba2;
  --btn-bg: rgba(255,255,255,0.06);
  --btn-border: rgba(255,255,255,0.16);
  --shadow: 0 32px 64px rgba(0,0,0,.65);
  --radius: 18px;

  --status-pending: #3a3a3f;
  --status-approved: #153b25;
  --status-rejected: #4b1f1f;

  font-family: "Lato", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, #181820 0, #050506 55%);
  color: var(--text);
  font-family: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ===================== */
/* Login screen          */
/* ===================== */

.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-box {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 32px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-title {
  font-size: 18px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-muted);
}

.login-error {
  color: #e15959;
  font-size: 14px;
  text-align: center;
}

.login-box form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-box input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 14px;
}

.btn-primary {
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.btn-primary:hover {
  background: rgba(255,255,255,0.12);
}

/* ===================== */
/* Header (logged in)    */
/* ===================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: linear-gradient(to right, rgba(5,5,7,0.96), rgba(12,12,16,0.96));
  border-bottom: 1px solid var(--border);
}

.brand {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.header-links {
  display: flex;
  gap: 14px;
}

.header-action {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}

.header-action.logout {
  color: #e47c7c;
}

/* ===================== */
/* Main page panel       */
/* ===================== */

.page {
  max-width: 1120px;
  margin: 40px auto;
  padding: 32px 32px 34px;
  background: var(--surface);
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.page-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 0 0 26px;
}

.error {
  color: #e15959;
  margin-bottom: 18px;
  font-size: 14px;
}

/* Forms */

.form-card {
  margin-bottom: 30px;
}

.form-card input,
.form-card textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 14px;
  resize: vertical;
}

.btn-secondary {
  width: 100%;
  padding: 12px 15px;
  border-radius: 999px;
  border: 1px solid var(--btn-border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
}

.wide {
  width: 100%;
}

/* ===================== */
/* Table                 */
/* ===================== */

.rma-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.rma-table th {
  text-align: left;
  padding: 18px 10px;
  color: var(--text-muted);
  font-weight: 400;
}

.rma-table td {
  padding: 20px 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  vertical-align: middle;
}

/* Status chips */

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
}

.status.pending { background: var(--status-pending); }
.status.approved { background: var(--status-approved); }
.status.rejected { background: var(--status-rejected); }

/* Copy button */

.copy-btn {
  margin-left: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.55;
}

.copy-btn:hover {
  opacity: 1;
}

/* Actions */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.action-btn {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
}

.action-btn.approved { background: var(--status-approved); }
.action-btn.rejected { background: var(--status-rejected); }
.action-btn.delete { background: #742f2f; }

/* ===================== */
/* Responsive            */
/* ===================== */

@media (max-width: 900px) {
  .header {
    padding: 14px 18px;
  }
  .page {
    margin: 26px 16px;
    padding: 24px 18px 26px;
  }
}

@media (max-width: 720px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .header-links {
    width: 100%;
    justify-content: flex-end;
  }

  .page-title {
    font-size: 20px;
  }

  .rma-table th {
    display: none;
  }
  .rma-table tr {
    display: block;
    margin-bottom: 18px;
    border-radius: 16px;
    background: rgba(0,0,0,0.18);
    overflow: hidden;
  }
  .rma-table td {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .rma-table td.actions {
    justify-content: flex-start;
    gap: 8px;
  }
  .page {
    margin: 22px 12px;
    padding: 22px 16px 20px;
  }
  .login-box {
    padding: 28px 22px 24px;
    border-radius: 18px;
  }
}