/* Global modern styling layer for legacy AdminLTE pages */

:root {
  --modern-bg: #f3f6fb;
  --modern-surface: #ffffff;
  --modern-text: #1f2937;
  --modern-muted: #6b7280;
  --modern-primary: #2563eb;
  --modern-primary-dark: #1d4ed8;
  --modern-border: #e5e7eb;
  --modern-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --modern-radius: 14px;
}

body {
  background: var(--modern-bg);
  color: var(--modern-text);
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.content-wrapper,
.right-side {
  background: linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
}

.content-header {
  padding: 20px 20px 8px 20px;
}

.content {
  padding: 14px 20px 24px 20px;
}

/* If a row has only one top-level column, make it full width */
.content > .row > [class*="col-"]:only-child {
  width: 100%;
}

.main-header .logo,
.main-header .navbar {
  background: #ffffff !important;
  border-bottom: 1px solid var(--modern-border);
}

.main-header .logo {
  color: #111827 !important;
  font-weight: 700;
}

.main-sidebar,
.left-side {
  background: #ffffff !important;
  border-right: 1px solid var(--modern-border);
}

.sidebar .user-panel {
  border-bottom: 1px solid #eef2f7;
  margin-bottom: 8px;
  padding-bottom: 12px;
}

.sidebar .user-panel .info,
.sidebar .user-panel .info a,
.sidebar .user-panel .info p {
  color: #0f172a !important;
}

.sidebar-menu > li > a {
  color: #334155 !important;
  border-radius: 10px;
  margin: 3px 8px;
}

.sidebar-menu > li.active > a,
.sidebar-menu > li:hover > a {
  background: rgba(37, 99, 235, 0.1) !important;
  color: #1d4ed8 !important;
}

.sidebar-menu .treeview-menu > li > a {
  color: #475569 !important;
}

.sidebar-menu .treeview-menu > li.active > a,
.sidebar-menu .treeview-menu > li > a:hover {
  color: #1d4ed8 !important;
  background: rgba(37, 99, 235, 0.08) !important;
  border-radius: 8px;
}

.box {
  border: 1px solid var(--modern-border);
  border-radius: var(--modern-radius);
  box-shadow: var(--modern-shadow);
  background: var(--modern-surface);
}

.box-header.with-border {
  border-bottom: 1px solid #eef2f7;
}

.box-title {
  font-weight: 700;
}

.form-control {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  height: 40px;
  box-shadow: none;
}

textarea.form-control {
  height: auto;
}

.form-control:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.btn {
  border-radius: 10px;
  font-weight: 600;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--modern-primary) 0%, var(--modern-primary-dark) 100%);
}

.btn-success {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.table {
  background: #fff;
}

.table > thead > tr > th {
  background: #f8fafc;
  color: #334155;
  border-bottom: 1px solid var(--modern-border);
  font-weight: 700;
}

.table-bordered {
  border-color: var(--modern-border);
}

.alert {
  border-radius: 10px;
  border: 1px solid transparent;
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin-top: 4px;
}

.login-page {
  background: radial-gradient(circle at top left, #dbeafe 0%, #93c5fd 30%, #2563eb 100%);
}

.login-box-body {
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

