/* Bootstrap 5 dark theme overrides */

[data-bs-theme=dark] {
  --bs-body-bg: #0f172a;
  --bs-body-bg-rgb: 15,23,42;
  --bs-body-color: #e2e8f0;
  --bs-border-color: #334155;
}

/* 页面内容居中 70% */
.navbar .container-fluid, .main-content {
  max-width: 70%;
  margin-left: auto;
  margin-right: auto;
}

.navbar-brand { font-weight: 700; font-size: 1.1rem; }
.sidebar .nav-link { color: #94a3b8; border-radius: 6px; padding: 8px 14px; font-size: .9rem; }
.sidebar .nav-link:hover, .sidebar .nav-link.active { background: rgba(255,255,255,.06); color: #e2e8f0; }

.stat-card { border-radius: 10px; }
.stat-value { font-size: 2rem; font-weight: 700; }
.stat-label { font-size: .75rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .5px; }

.table > :not(caption) > * > * { padding: .65rem .9rem; font-size: .875rem; vertical-align: middle; }
.table th { font-size: .75rem; color: #64748b; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }

.log-viewer {
  background: #000; border: 1px solid #334155; border-radius: 8px;
  padding: 14px; height: 550px; overflow-y: auto;
  font-family: "Cascadia Code", "Fira Code", monospace;
  font-size: .8rem; line-height: 1.5; color: #a8b8c8; white-space: pre-wrap; word-break: break-all;
}

.modal-backdrop-blur { backdrop-filter: blur(4px); }

.mtoast-container { position: fixed; top: 16px; right: 16px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.mtoast { padding: 10px 18px; border-radius: 8px; font-size: .875rem; color: #fff; animation: slideIn .3s ease; box-shadow: 0 4px 12px rgba(0,0,0,.4); opacity: 1 !important; }
.mtoast-success { background: #166534; }
.mtoast-error { background: #991b1b; }
.mtoast-info { background: #1e40af; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.spinner-sm { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.2); border-top-color: #fff; border-radius: 50%; animation: spin .6s linear infinite; vertical-align: middle; margin-right: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

.vps-load-item { display: flex; justify-content: space-between; padding: 3px 0; font-size: .75rem; color: var(--bs-secondary-color); }
