/* Dark Mode - SSHSlowDNS */
body.dark-mode {
    background: #0f172a !important;
    color: #e2e8f0 !important;
}
body.dark-mode .page-header-dark {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%) !important;
}
body.dark-mode .bg-white,
body.dark-mode .bg-light {
    background: #1e293b !important;
}
body.dark-mode section.bg-white,
body.dark-mode section.bg-light {
    background: #0f172a !important;
}
body.dark-mode .card,
body.dark-mode .server-info,
body.dark-mode .create-form-card {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
body.dark-mode .card-header {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
body.dark-mode .card-body {
    color: #cbd5e1 !important;
}
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3,
body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 {
    color: #f1f5f9 !important;
}
body.dark-mode p, body.dark-mode span, body.dark-mode small {
    color: #94a3b8 !important;
}
body.dark-mode a:not(.btn):not(.nav-link):not(.navbar-brand):not(.dropdown-item) {
    color: #818cf8 !important;
}
body.dark-mode .form-control {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
body.dark-mode .form-control::placeholder {
    color: #64748b !important;
}
body.dark-mode .input-group-text {
    background: #334155 !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}
body.dark-mode .table {
    color: #cbd5e1 !important;
}
body.dark-mode .table th {
    background: #1e293b !important;
    color: #94a3b8 !important;
    border-color: #334155 !important;
}
body.dark-mode .table td {
    border-color: #334155 !important;
}
body.dark-mode .dropdown-menu {
    background: #1e293b !important;
    border-color: #334155 !important;
}
body.dark-mode .dropdown-item {
    color: #cbd5e1 !important;
}
body.dark-mode .dropdown-item:hover {
    background: #334155 !important;
}
body.dark-mode .navbar {
    background: #0f172a !important;
}
body.dark-mode .badge-success { background: #064e3b !important; color: #6ee7b7 !important; }
body.dark-mode .badge-danger { background: #7f1d1d !important; color: #fca5a5 !important; }
body.dark-mode .badge-warning { background: #78350f !important; color: #fcd34d !important; }
body.dark-mode .badge-info { background: #0c4a6e !important; color: #7dd3fc !important; }
body.dark-mode .badge-primary { background: #312e81 !important; color: #a5b4fc !important; }
body.dark-mode .badge-dark { background: #374151 !important; color: #e5e7eb !important; }
body.dark-mode .alert-warning { background: #451a03 !important; color: #fcd34d !important; border: 1px solid #78350f !important; }
body.dark-mode .text-muted { color: #64748b !important; }
body.dark-mode .border { border-color: #334155 !important; }
body.dark-mode footer { background: #0f172a !important; }
body.dark-mode code { background: #334155 !important; color: #a5b4fc !important; }

/* Dark mode toggle button */
.dark-mode-toggle {
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.2);
    background: transparent;
    color: #fff;
    font-size: 16px;
    transition: all .3s ease;
    margin-left: 8px;
}
.dark-mode-toggle:hover {
    background: rgba(255,255,255,.1);
    transform: rotate(20deg);
}
body.dark-mode .dark-mode-toggle {
    border-color: #818cf8;
    color: #fbbf24;
}
