/* Global CSS theme (CDN-like consistency) */
:root{
  --brand:#2563eb; /* indigo */
  --brand-2:#0ea5e9; /* sky */
  --bg:#f7f9fc;
  --text:#0f172a;
  --muted:#64748b;
  --ring: rgba(37, 99, 235, .25);
  --radius: 16px;

  --shadow-soft: 0 10px 30px rgba(2,6,23,.04);
  --shadow-sm: 0 8px 20px rgba(2,6,23,.04);
  --border: rgba(15,23,42,.06);
}

/* base */
html, body{ height:100%; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px circle at 10% 10%, rgba(37,99,235,.12), transparent 40%),
    radial-gradient(900px circle at 90% 20%, rgba(14,165,233,.10), transparent 45%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{ text-decoration:none; }
a:hover{ text-decoration:none; }

::selection{ background: rgba(37,99,235,.18); }

/* shared surface */
.card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow:hidden;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(6px);
}
.card.shadow-sm{ box-shadow: var(--shadow-sm); }

/* headings */
h1,h2,h3,h4,h5,h6{ letter-spacing: -0.01em; }

/* forms */
.form-control, .form-select{
  border-radius: 14px;
  border-color: rgba(15,23,42,.12);
  background: rgba(255,255,255,.9);
}
.form-control:focus, .form-select:focus{
  border-color: rgba(37,99,235,.75);
  box-shadow: 0 0 0 .2rem var(--ring);
}

/* buttons */
.btn{ border-radius: 14px; }
.btn-primary{
  background: linear-gradient(180deg, #3b82f6 0%, var(--brand) 100%) !important;
  border-color: var(--brand) !important;
  box-shadow: 0 10px 22px rgba(37,99,235,.22);
}
.btn-primary:hover{
  box-shadow: 0 12px 28px rgba(37,99,235,.28);
}
.btn-outline-primary,
.btn-outline-danger, .btn-outline-dark, .btn-outline-secondary, .btn-outline-success{
  border-radius: 14px;
}

/* table */
.table{
  border-radius: 14px;
  overflow:hidden;
}
.table thead th{
  background: rgba(37,99,235,.08);
  color: #0b2a63;
  font-weight: 800;
  border-bottom: 1px solid rgba(37,99,235,.16) !important;
}
.table-striped>tbody>tr:nth-of-type(odd){
  --bs-table-accent-bg: rgba(37,99,235,.03);
}

/* navbar / app layout */
.app-shell{
  min-height: 100vh;
  display:flex;
  flex-direction: column;
}

.app-topbar{
  background: linear-gradient(90deg, rgba(13,110,253,1) 0%, rgba(14,165,233,1) 100%);
  box-shadow: 0 16px 40px rgba(2,6,23,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.app-topbar .navbar-brand{
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff !important;
}

.app-breadcrumb{
  font-size: .875rem;
  color: var(--muted);
}

.app-layout{
  display:grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  padding: 18px;
}

@media (max-width: 992px){
  .app-layout{
    grid-template-columns: 1fr;
    padding: 12px;
  }
}

.app-sidebar{
  position: sticky;
  top: 86px;
  align-self: start;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  overflow:hidden;
}

.app-sidebar .sidebar-title{
  padding: 14px 16px;
  font-weight: 800;
  color: #0b2a63;
  border-bottom: 1px solid rgba(15,23,42,.06);
  background: linear-gradient(180deg, rgba(37,99,235,.08), rgba(37,99,235,0));
}

.sidebar-nav{
  padding: 10px;
  display:flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-link{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  color: #0b2a63;
  border: 1px solid transparent;
  transition: .15s ease;
}
.sidebar-link:hover{
  background: rgba(37,99,235,.07);
  border-color: rgba(37,99,235,.18);
}
.sidebar-link.active{
  background: rgba(37,99,235,.12);
  border-color: rgba(37,99,235,.22);
  font-weight: 800;
}

.app-main{
  min-width: 0;
}

/* badges / chips */
.badge{ border-radius: 999px; }

/* alerts */
.alert{
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 12px 22px rgba(2,6,23,.04);
}

hr{ border-color: rgba(15,23,42,.08); }

/* small niceties */
.logger-hero{
  height: 32px;
  background: linear-gradient(90deg, rgba(37,99,235,.18), rgba(14,165,233,.18));
  border-bottom: 1px solid rgba(37,99,235,.12);
  margin-bottom: 18px;
  border-radius: 0 0 var(--radius) var(--radius);
}
