:root {
    --primary-color: #004e92;
    --primary-hover: #003b70;
    
    /* Light Theme Variables */
    --bg-base: #e0eaf5;
    --blob-1: rgba(0, 78, 146, 0.4);
    --blob-2: rgba(0, 168, 255, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.6);
    --text-main: #1e293b;
    --text-muted: #475569;
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

[data-bs-theme="dark"] {
    /* Dark Liquid Glass Variables */
    --bg-base: #020617;
    --blob-1: rgba(0, 78, 146, 0.6);
    --blob-2: rgba(56, 189, 248, 0.2);
    --glass-bg: rgba(15, 23, 42, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    transition: background-color 0.4s ease;
}

/* Background Liquid Blobs */
.liquid-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-base);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 15s infinite alternate ease-in-out;
}

.blob-1 {
    width: 500px; height: 500px;
    background: var(--blob-1);
    top: -100px; left: -100px;
}

.blob-2 {
    width: 400px; height: 400px;
    background: var(--blob-2);
    bottom: -50px; right: -50px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 80px) scale(1.1); }
    100% { transform: translate(-30px, 40px) scale(0.9); }
}

/* Liquid Glass Elements */
.glass-navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--glass-border) !important;
    border-radius: 12px; 
    box-shadow: var(--glass-shadow) !important;
    color: var(--text-main);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(0, 78, 146, 0.4) !important;
    transform: translateY(-2px);
}

/* Custom Text & Components */
.text-primary-custom { color: var(--primary-color) !important; }
.text-muted { color: var(--text-muted) !important; }
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), #0072ff);
    color: #fff; border: none;
    box-shadow: 0 4px 15px rgba(0, 78, 146, 0.3);
}
.btn-primary-custom:hover { opacity: 0.9; color: #fff; }

/* Input Search */
.search-form {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
}
.search-form input {
    color: var(--text-main);
}
.search-form input::placeholder { color: var(--text-muted); }
.search-form input:focus { color: var(--text-main); box-shadow: none; }

/* Tables & Typography */
.info-table th { font-weight: 500; color: var(--text-muted); padding: 8px 12px; border-bottom: 1px solid var(--glass-border); }
.info-table td { font-weight: 600; color: var(--text-main); padding: 8px 12px; border-bottom: 1px solid var(--glass-border); }
.table { color: var(--text-main); }
.table-striped>tbody>tr:nth-of-type(odd)>* { color: var(--text-main); background: rgba(0,0,0,0.02); }

[data-bs-theme="dark"] .table-striped>tbody>tr:nth-of-type(odd)>* { background: rgba(255,255,255,0.02); }

.box-card .card-header { 
    border-bottom: 1px solid var(--glass-border) !important; 
    padding: 10px 15px; 
}

#rawWhoisContent {
    background: rgba(0, 0, 0, 0.2) !important;
    color: #e2e8f0 !important;
    border-top: 1px solid var(--glass-border);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.btn-theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}
.btn-theme-toggle:hover { background: rgba(255, 255, 255, 0.2); }

/* Fix container screenshot */
.bg-body-capture {
    background-color: var(--bg-base); 
    padding: 15px; border-radius: 16px;
}