/* ===== Global Styles — WHOIS Tools ===== */

.navbar {
    background-color: #d50c2d !important;
}
.navbar-brand, .navbar-nav .nav-link {
    color: white !important;
}
.navbar-nav .nav-link:hover {
    color: #f8f9fa !important;
}
.navbar-toggler {
    border-color: white;
    padding: 4px 8px;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid white;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}
.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler.collapsed .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6l18 18M6 24L24 6'/%3e%3c/svg%3e");
}

/* Mobile navigation */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #d50c2d;
        margin-top: 10px;
        border-radius: 5px;
        padding: 10px;
    }
    .navbar-nav .nav-link {
        padding: 10px 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

.card-header {
    background-color: #d50c2d !important;
    color: white !important;
}
.btn-primary {
    background-color: #D50C2D;
    border-color: #D50C2D;
}
.btn-primary:hover {
    background-color: #b00a26;
    border-color: #b00a26;
}
.btn-primary:focus,
.btn-primary:active,
.btn-primary:focus-visible,
.btn-primary.active,
.btn-primary:focus:active {
    background-color: #b00a26;
    border-color: #b00a26;
    box-shadow: 0 0 0 0.25rem rgba(213, 12, 45, 0.5) !important;
    outline: none;
}

/* Override Bootstrap blue text selection highlight */
::selection {
    background-color: rgba(213, 12, 45, 0.25);
    color: inherit;
}
::-moz-selection {
    background-color: rgba(213, 12, 45, 0.25);
    color: inherit;
}

/* Override Bootstrap blue focus ring on form inputs */
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: #d50c2d;
    box-shadow: 0 0 0 0.25rem rgba(213, 12, 45, 0.25);
    outline: none;
}

/* Override Bootstrap blue focus on all buttons globally */
.btn:focus,
.btn:focus-visible,
.btn:active:focus {
    box-shadow: 0 0 0 0.25rem rgba(213, 12, 45, 0.4) !important;
    outline: none;
}

/* Fix list-group active/focus blue */
.list-group-item-action:focus,
.list-group-item-action:active,
.list-group-item.active {
    background-color: #d50c2d;
    border-color: #d50c2d;
    color: white;
}

footer {
    background-color: #495057;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

/* Copy button */
.btn-copy {
    background: none;
    border: none;
    padding: 0 0 0 5px;
    cursor: pointer;
    color: #adb5bd;
    font-size: 0.8rem;
    vertical-align: middle;
    line-height: 1;
    transition: color 0.2s ease, transform 0.15s ease;
    display: inline-flex;
    align-items: center;
}
.btn-copy:hover { color: #d50c2d; transform: scale(1.15); }
.btn-copy.copied { color: #198754; }
