@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  --brand-gold-1: #f3c76a;
  --brand-gold-2: #d9a441;
  --surface: #ffffff;
  --surface-muted: #f2f4f7;
  --line: #d9dde3;
  --text: #1d232f;
  --text-muted: #6b7280;
}

/* Enterprise shell */
body {
  font-family: 'IBM Plex Sans', 'Noto Sans', 'Helvetica Neue', sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  background: var(--surface-muted);
}

.content-wrapper {
  background: linear-gradient(135deg, #fafbfc 0%, #eef1f5 100%);
}

/* Desktop-like, no radius */
.card,
.card-soft,
.btn,
.form-control,
.form-select,
.input-group-text,
.modal-content,
.dropdown-menu,
.alert {
  border-radius: 0 !important;
}

.card,
.card-soft,
.table,
.modal-content,
.dropdown-menu,
.alert,
.form-control,
.form-select,
.input-group-text {
  border-color: var(--line);
}

.card,
.card-soft {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.04);
}

.card-soft {
  padding: 1rem;
}

/* Header + sidebar */
.main-header {
  background: linear-gradient(90deg, #ffffff 0%, #f7f3e7 55%, #efe4cf 100%);
  border-bottom: 1px solid var(--line);
}

.main-header .nav-link {
  color: var(--text);
}

.main-sidebar {
  background: #1f2633;
}

.main-sidebar .nav-link {
  color: #c9d1de;
}

.main-sidebar .nav-link.active {
  background: linear-gradient(90deg, rgba(243, 199, 106, 0.22), rgba(217, 164, 65, 0.08));
  color: #fff;
  border-left: 3px solid var(--brand-gold-2);
}

.main-sidebar .nav-header {
  color: #9aa3b2;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--brand-gold-1), var(--brand-gold-2));
  border-color: #c48d2a;
  color: #1c1404;
}

.btn-primary:hover {
  filter: brightness(0.98);
}

.btn-outline-primary {
  color: #7a5a12;
  border-color: #c48d2a;
}

.btn-outline-primary:hover {
  background: rgba(217, 164, 65, 0.12);
  color: #5b430d;
}

/* Action button groups */
.action-group {
  display: inline-flex;
  align-items: center;
}

.action-group > * {
  margin: 0;
}

.action-group .btn {
  border-radius: 0 !important;
}

.action-group > * + * {
  margin-left: -1px;
}

.action-group form {
  margin: 0;
}

/* Forms */
.form-control,
.form-select {
  background: #fff;
}

.form-control:focus,
.form-select:focus {
  border-color: #c48d2a;
  box-shadow: 0 0 0 0.15rem rgba(217, 164, 65, 0.15);
}

/* Tables + DataTables */
.table td,
.table th {
  vertical-align: middle;
  border-color: var(--line);
}

.table thead th {
  background: #f6f7f9;
  color: #3b3f45;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.78rem;
}

.table-hover tbody tr:hover {
  background: #f8f5ec;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--line);
  background: #fff;
  height: calc(1.5em + 0.75rem + 2px);
}

.dataTables_wrapper .dataTables_info {
  color: var(--text-muted);
}

.dataTables_wrapper .pagination .page-link {
  border-radius: 0;
  border-color: var(--line);
  color: var(--text);
}

.dataTables_wrapper .pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--brand-gold-1), var(--brand-gold-2));
  border-color: #c48d2a;
  color: #1c1404;
}

/* Badges */
.badge {
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 0;
}

.status-toggle {
  border: 1px solid transparent;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.status-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 0.15rem rgba(217, 164, 65, 0.2);
}

/* Code blocks */
code {
  font-size: 0.85em;
  background: #f3f4f6;
  color: #374151;
  padding: 2px 6px;
  border-radius: 0;
}

/* Modals */
.modal-modern .modal-content {
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(17, 24, 39, 0.18);
}

.modal-modern .modal-header {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #ffffff 0%, #f6f1e4 100%);
}

.modal-modern .modal-title {
  font-weight: 600;
}

.modal-modern .modal-body {
  padding: 1.25rem 1.5rem;
}

.modal-modern .modal-footer {
  border-top: 1px solid var(--line);
  background: #f8f8f8;
}

.modal-backdrop.show {
  opacity: 0.5;
}
