:root {
  --brand-primary: #f97316;   /* orange */
  --brand-primary-soft: #ffedd5;
  --brand-secondary: #22c55e; /* green */
  --brand-accent: #facc15;    /* gold */
  --brand-bg: #fff7ed;        /* warm light */
  --brand-surface: #ffffff;
  --brand-text-main: #1f2937; /* dark gray, not pure black */
  --brand-text-soft: #6b7280;
  --brand-border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top left, #fffbeb 0, #fff7ed 40%, #f3f4ff 100%);
  color: var(--brand-text-main);
}

header {
  background: linear-gradient(120deg, #f97316, #fb7185);
  color: #f9fafb;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;

}


header h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.03em;
  display:flex;
  align-items:center;
  gap:8px;
}

/* Simple text-based logo badge */
header h1::before {
  content: 'GMR';
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:26px;
  height:26px;
  border-radius:999px;
  background:#f9fafb;
  color:#f97316;
  font-size:12px;
  font-weight:700;
}

nav a {
  color: #fefce8;
  margin-left: 10px;
  text-decoration: none;
  font-size: 14px;
  padding: 4px 8px;
  border-radius:999px;
}

nav a:hover {
  background: rgba(255,255,255,0.16);
}

main {
  padding: 20px;
  max-width: 1100px;
  margin: 16px auto 24px auto;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(15,23,42,0.08);
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
  background: var(--brand-surface);
  border-radius: 12px;
  overflow: hidden;
}

th, td {
  border: 1px solid var(--brand-border);
  padding: 8px 10px;
  text-align: left;
  font-size: 14px;
}

th {
  background: var(--brand-primary-soft);
  color: var(--brand-text-main);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-primary);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s ease;
  box-shadow: 0 6px 14px rgba(249,115,22,0.35);
}

.btn:hover {
  background: #ea580c;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(249,115,22,0.4);
}

.btn-secondary {
  background: #0ea5e9;
  box-shadow: 0 6px 14px rgba(14,165,233,0.35);
}

.btn-secondary:hover {
  background: #0284c7;
  box-shadow: 0 10px 20px rgba(14,165,233,0.4);
}

.btn-danger {
  background: #ef4444;
  box-shadow: 0 6px 14px rgba(239,68,68,0.35);
}

.btn-danger:hover {
  background: #dc2626;
  box-shadow: 0 10px 20px rgba(239,68,68,0.4);
}

.btn2 {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-primary);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s ease;
  box-shadow: 0 6px 14px rgba(249,115,22,0.35);
}

.btn2:hover {
  background: #ea580c;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(249,115,22,0.4);
}

.btn2-secondary {
  background: #0ea5e9;
  box-shadow: 0 6px 14px rgba(14,165,233,0.35);
}

.btn2-secondary:hover {
  background: #0284c7;
  box-shadow: 0 10px 20px rgba(14,165,233,0.4);
}

.btn2-danger {
  background: #ef4444;
  box-shadow: 0 6px 14px rgba(239,68,68,0.35);
}

.btn2-danger:hover {
  background: #dc2626;
  box-shadow: 0 10px 20px rgba(239,68,68,0.4);
}

.alert {
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
}

form.inline {
  display: inline;
}

/* Inputs */
input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=date],
select,
textarea {
  width: 100%;
  max-width: 360px;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  font-family: inherit;
  background: #f9fafb;
}

label {
  font-size: 14px;
  color: var(--brand-text-soft);
}

/* Headings */
h2 {
  margin-top: 0;
  color: var(--brand-text-main);
}

ul {
  padding-left: 20px;
}


/* === GMR Admin Header (Design A) === */
.gmr-topbar{
  position: sticky; top: 0; z-index: 1000;
  background: linear-gradient(90deg, #f97316, #fb7185);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.gmr-topbar__inner{
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 18px;
  padding: 14px 18px;
}
.gmr-brand{ display:flex; align-items:center; gap:10px; text-decoration:none; color:#fff; }
.gmr-brand__logo{
  width:34px; height:34px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  font-weight:800; letter-spacing:.5px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
}
.gmr-brand__name{ font-weight:700; font-size:16px; opacity:.98; }

.gmr-nav{ display:flex; align-items:center; gap: 6px; margin-left: 10px; flex:1; flex-wrap:wrap; }
.gmr-link{
  color: rgba(255,255,255,.92);
  text-decoration:none;
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}
.gmr-link:hover{ background: rgba(255,255,255,.14); }
.gmr-link.is-active{
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.25);
}

.gmr-topbar__right{ display:flex; align-items:center; gap: 10px; }
.gmr-logout{
  text-decoration:none;
  color:#fff;
  font-weight:700;
  font-size:13px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.15);
  border: 1px solid rgba(255,255,255,.18);
  white-space: nowrap;
}
.gmr-logout:hover{ background: rgba(0,0,0,.22); }

.gmr-more{ position: relative; }
.gmr-more__btn{
  border: 0; cursor:pointer;
  background: transparent;
  color: rgba(255,255,255,.92);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 999px;
}
.gmr-more__btn:hover{ background: rgba(255,255,255,.14); }
.gmr-more__menu{
  position:absolute; right:0; top: 44px;
  min-width: 190px;
  background:#fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
  padding: 8px;
  display:none;
}
.gmr-more.is-open .gmr-more__menu{ display:block; }
.gmr-menu__item{
  display:block;
  padding: 10px 10px;
  border-radius: 10px;
  color:#111827;
  text-decoration:none;
  font-weight: 600;
  font-size: 13px;
}
.gmr-menu__item:hover{ background:#f3f4f6; }

@media (max-width: 860px){
  .gmr-topbar__inner{ flex-wrap: wrap; }
  .gmr-nav{ margin-left: 0; }
}
