body {
    background-color: #f8f9fb;
}

.sidebar {
    min-height: 100vh;
    background-color: #ffffff;
    border-right: 1px solid #dee2e6;
}

.sidebar .nav-link {
    color: #495057;
    border-radius: 0.375rem;
    margin: 0.125rem 0.5rem;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    background-color: #f1f3f5;
    color: #0d6efd;
}

.tool-card {
    text-decoration: none;
    color: inherit;
}

.tool-card .card {
    border: 1px solid #e9ecef;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.tool-card:hover .card {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}

.card,
.card-header,
.card-body,
.card ul.list-group,
.card ul.list-group li {
    border-radius: 0 !important;
    background-color: #ffffff !important;
    color: #343a40 !important;
}

.card-header {
    font-weight: bold;
}

.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-right: 3rem;
}

.input-with-icon button {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    border: none;
    background: transparent;
    color: #495057;
    padding: 0 0.75rem;
}

.copy-btn {
    border: none;
    background: none;
    color: #0d6efd;
    padding: 0;
    margin-left: 0.25rem;
    font-size: 1rem;
    cursor: pointer;
}

.dns-card .card-body {
    padding: 0.2rem;
}

ul.list-group.list-group-flush > li.list-group-item.grouponline {
    background-color: #293D5E !important;
    color: #ffffff !important;
}

ul.list-group.list-group-flush > li.list-group-item.grouponline strong,
ul.list-group.list-group-flush > li.list-group-item.grouponline * {
    color: #ffffff !important;
}

.card.ns-special {
    background-color: #293D5E !important;
    color: #ffffff !important;
    border-color: #293D5E !important;
}

.card.ns-special .card-header,
.card.ns-special .card-body,
.card.ns-special .list-group,
.card.ns-special .list-group-item {
    background-color: #293D5E !important;
    color: #ffffff !important;
    border-color: #293D5E !important;
}

/* ======================================================
SPF TREE
====================================================== */

.spf-tree {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
}

.spf-tree ul {
    list-style: none;
    margin: 0;
    padding-left: 18px;
    position: relative;
}

.spf-tree ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 6px;
    bottom: 0;
    border-left: 1px solid #dee2e6;
}

.spf-tree li {
    position: relative;
    margin: 4px 0;
}

.spf-tree li::before {
    content: '';
    position: absolute;
    top: 12px;
    left: -12px;
    width: 12px;
    border-top: 1px solid #dee2e6;
}