:root {
  --brand-gold: #d4a017;
  --brand-gold-soft: #f5e2aa;
  --brand-gold-deep: #b68812;
  --brand-dark: #111827;
  --brand-dark-soft: #1f2933;

  --primary: #d4a017;
  --primary-soft: rgba(212, 160, 23, 0.12);
  --secondary: #6B7280;
  --danger: #DC2626;

  --bg-page: #0b0f16;
  --bg-elevated: #111827;
  --bg-card: #161f2b;
  --bg-input: #0f172a;

  --border-subtle: #1f2937;
  --border-strong: #374151;

  --text-main: #F9FAFB;
  --text-muted: #9CA3AF;
  --text-soft: #6B7280;

  --radius-card: 16px;
  --radius-pill: 999px;

  --shadow-soft: 0 10px 30px rgba(0,0,0,.45);
  --shadow-subtle: 0 4px 12px rgba(0,0,0,.35);

  --transition-fast: 150ms ease-out;
}

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

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
  color:#d4a017;
}

/* Links */
a {
  color: var(--brand-gold);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Layout container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 32px;
}

/* Cards */
.card {
  background: radial-gradient(circle at top left,
    rgba(212, 160, 23, 0.14) 0,
    var(--bg-card) 40%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  padding: 20px 18px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

/* Headings */
h1, h2, h3, h4 {
  margin: 0 0 10px;
  font-weight: 600;
}
h2 {
  font-size: 20px;
  letter-spacing: 0.03em;
}

/* Top navigation */
.topnav {
  background: linear-gradient(
    90deg,
    rgba(10, 10, 10, 0.95),
    rgba(17, 24, 39, 0.98)
  );
  border-bottom: 1px solid rgba(212, 160, 23, 0.3);
  box-shadow: 0 10px 25px rgba(0,0,0,.6);
}

.topnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topnav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topnav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: radial-gradient(circle at top, rgba(212, 160, 23, 0.6), transparent 70%);
  padding: 6px 8px;
}

.topnav-logo img {
  display: block;
  height: 32px;
  width: auto;
}

.topnav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.topnav-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topnav-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

/* Menu */
.topnav-toggle-checkbox {
  display: none;
}

.topnav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.topnav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 999px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.topnav-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.topnav-menu a {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
}
.topnav-menu a:hover {
  border-color: rgba(212, 160, 23, 0.6);
  background: rgba(17, 24, 39, 0.9);
  color: var(--text-main);
}
.topnav-menu a.active {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-deep));
  color: #000;
  border-color: rgba(0,0,0,.8);
}

/* User area */
.topnav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.topnav-user-name {
  font-weight: 500;
}
.topnav-user-role {
  color: var(--brand-gold-soft);
}
.topnav-user a {
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-deep));
  color: #050505;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,.6);
  cursor: pointer;
  font-size: 13px;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    filter var(--transition-fast);
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.55);
  filter: brightness(1.03);
}
.btn:active {
  transform: translateY(0px) scale(0.98);
  box-shadow: 0 3px 10px rgba(0,0,0,.5);
}

/* Danger / secondary buttons (use class combinations if vrei) */
.btn-danger {
  background: linear-gradient(135deg, #f97373, #dc2626);
  color: #fff;
  border-color: rgba(0,0,0,.7);
}

/* Inputs */
.input, input[type="text"], input[type="number"], input[type="email"],
input[type="date"], input[type="password"], select, textarea {
  font-family: inherit;
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: #fff;
  color: #000;
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}
.input::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--text-soft);
}
.input:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(212, 160, 23, 0.8);
  box-shadow: 0 0 0 1px rgba(212, 160, 23, 0.4);
}

/* Labels */
.label,
label {
  display: block;
  margin: 8px 0 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Grid helpers */
.grid {
  display: grid;
  gap: 16px;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(15, 118, 110, 0.16);
  border: 1px solid rgba(45, 212, 191, 0.35);
  font-size: 11px;
  color: #a7f3d0;
  text-decoration: none;
  cursor: pointer;
}
.badge:hover {
  background: rgba(45, 212, 191, 0.18);
}

/* Tables – desktop view */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table th,
.table td {
  border: 1px solid var(--border-subtle);
  padding: 8px 10px;
}
.table th {
  background: radial-gradient(circle at top, rgba(31, 41, 55, 0.9), #020617);
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
}
.table tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.6);
}
.table tr:nth-child(odd) td {
  background: rgba(15, 23, 42, 0.9);
}
.table tbody tr:hover td {
  background: rgba(31, 41, 55, 0.96);
}

/* Responsive "card table" pentru mobil
   Folosește: <table class="table table-responsive"> și td cu data-label="Nume coloană"
*/
.table-responsive {
  width: 100%;
}

/* Cards / alerts / footer */
.alert {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(248, 250, 252, 0.08);
  background: radial-gradient(circle at top left,
    rgba(234, 179, 8, 0.2),
    rgba(15, 23, 42, 0.9));
  font-size: 13px;
}

.footer {
  opacity: .6;
  font-size: 11px;
  margin-top: 24px;
  text-align: center;
}

/* ------------- RESPONSIVE ------------- */

@media (max-width: 1024px) {
  .container {
    padding-inline: 14px;
  }
}

@media (max-width: 768px) {
  .topnav-inner {
    flex-wrap: wrap;
    gap: 8px;
  }

  .topnav-toggle {
    display: flex;
    margin-left: auto;
  }

  .topnav-menu {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-top: 4px;
    display: none;
  }

  .topnav-toggle-checkbox:checked + .topnav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .topnav-toggle-checkbox:checked + .topnav-toggle span:nth-child(2) {
    opacity: 0;
  }
  .topnav-toggle-checkbox:checked + .topnav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  .topnav-toggle-checkbox:checked ~ .topnav-menu {
    display: flex;
  }

  .topnav-user {
    width: 100%;
    justify-content: flex-start;
    border-top: 1px solid rgba(31, 41, 55, 0.9);
    padding-top: 4px;
    margin-top: 4px;
  }

  .card {
    padding: 16px 14px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  /* Tabele -> carduri */
  .table.table-responsive thead {
    display: none;
  }
  .table.table-responsive,
  .table.table-responsive tbody,
  .table.table-responsive tr,
  .table.table-responsive td {
    display: block;
    width: 100%;
  }
  .table.table-responsive tr {
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--border-subtle);
  }
  .table.table-responsive td {
    border: none;
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    background: rgba(15, 23, 42, 0.95);
  }
  .table.table-responsive td:last-child {
    border-bottom: none;
  }
  .table.table-responsive td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: none;
  }
}

/* Extra tiny phones */
@media (max-width: 480px) {
  .topnav-title {
    font-size: 13px;
  }
  .topnav-subtitle {
    display: none;
  }
}
