body{background:#111318;color:#f5f7fa}.navbar,.card{background:#1a1e25!important}.card{border:1px solid #2a3140}.form-control,.form-select,textarea{background:#10141a;color:#f5f7fa;border-color:#343b49}.form-control:focus,.form-select:focus,textarea:focus{background:#10141a;color:#fff}.list-group-item{background:#171b22!important;color:#fff!important}.list-group-item:hover{background:#222936!important}pre{background:#0b0e13;color:#d8dee9;border-radius:8px;padding:1rem;overflow:auto;max-height:70vh}code{color:#ffd479}a{text-decoration:none}.status-active{color:#65d889}.status-inactive{color:#ff7a7a}.small-muted{color:#aab2c0;font-size:.9rem}.module-card{height:100%}.form-check-input{width:2.5em;height:1.25em}

/* ============================================================
   YOYOBOT ADMIN V6 - LAYOUT INTERMEDIAIRE
   ============================================================ */

:root {
  --bg: #0d1117;
  --panel: #161b22;
  --panel-2: #1f2630;
  --border: #30363d;
  --text: #f0f6fc;
  --muted: #9da7b3;
  --sidebar: #11161d;
  --accent: #2f81f7;
}

html,
body {
  min-height: 100%;
  background: var(--bg) !important;
  color: var(--text) !important;
}

body {
  margin: 0;
}

a {
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
}

.main-content {
  margin-left: 250px;
  padding: 32px;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 1040;
}

.sidebar-brand {
  min-height: 70px;
  padding: 20px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 14px 10px 22px;
}

.nav-section {
  color: #6e7681;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 18px 12px 6px;
}

.side-link {
  display: block;
  color: #c9d1d9;
  padding: 9px 12px;
  border-radius: 8px;
  margin: 2px 0;
  font-size: .94rem;
}

.side-link:hover {
  color: #fff;
  background: #21262d;
}

.sidebar-footer {
  padding: 14px;
  border-top: 1px solid var(--border);
}

.sidebar-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
}

.mobile-topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  height: 58px;
  background: var(--sidebar);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #fff;
  font-weight: 600;
}

.card,
.modal-content,
.dropdown-menu {
  background: var(--panel) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6,
.card p,
.card div,
.card span,
.card label,
.card td,
.card th {
  color: inherit;
}

.small-muted,
.text-muted {
  color: var(--muted) !important;
}

.form-control,
.form-select,
textarea,
input {
  background-color: #0f141b !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

.form-control:focus,
.form-select:focus {
  background-color: #0f141b !important;
  color: #fff !important;
}

.form-control::placeholder {
  color: #6e7681;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  --bs-table-border-color: var(--border);
}

.alert {
  border-color: var(--border);
}

code {
  color: #79c0ff;
}

.stat-card {
  min-height: 132px;
}

.page-title {
  margin-bottom: 4px;
}

.sidebar-backdrop {
  display: none;
}

@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform .2s ease;
    box-shadow: 10px 0 30px rgba(0,0,0,.35);
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 1035;
  }

  .main-content {
    margin-left: 0;
    padding: 20px 14px 40px;
  }
}
