/* ============================================
   x21Checker — Design System
   ============================================ */

/* ---------- Base Reset & Fonts ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.font-inter {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ---------- Tailwind-like Utilities ---------- */
.min-h-screen {
    min-height: 100vh;
}

.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.scroll-smooth {
    scroll-behavior: smooth;
}

.hidden {
    display: none !important;
}

.block {
    display: block;
}

.inline {
    display: inline;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.inline-flex {
    display: inline-flex;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-1\.5 {
    gap: 0.375rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.min-w-0 {
    min-width: 0;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.top-0 {
    top: 0;
}

.bottom-3 {
    bottom: 0.75rem;
}

.right-3 {
    right: 0.75rem;
}

.-z-10 {
    z-index: -10;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

.overflow-hidden {
    overflow: hidden;
}

.w-full {
    width: 100%;
}

.w-8 {
    width: 2rem;
}

.w-10 {
    width: 2.5rem;
}

.w-16 {
    width: 4rem;
}

.w-72 {
    width: 18rem;
}

.w-80 {
    width: 20rem;
}

.w-96 {
    width: 24rem;
}

.h-8 {
    height: 2rem;
}

.h-10 {
    height: 2.5rem;
}

.h-16 {
    height: 4rem;
}

.h-36 {
    height: 9rem;
}

.h-72 {
    height: 18rem;
}

.h-80 {
    height: 20rem;
}

.h-96 {
    height: 24rem;
}

.h-1\.5 {
    height: 0.375rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-1\.5 {
    margin-bottom: 0.375rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-5 {
    margin-bottom: 1.25rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.-mt-0\.5 {
    margin-top: -0.125rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-5 {
    padding: 1.25rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-5 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.max-w-5xl {
    max-width: 64rem;
}

.resize-none {
    resize: none;
}

.space-y-1>*+* {
    margin-top: 0.25rem;
}

/* ---------- Typography ---------- */
.text-\[10px\] {
    font-size: 10px;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

.font-mono {
    font-family: 'SF Mono', 'Fira Code', 'JetBrains Mono', monospace;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

/* ---------- Colors ---------- */
.text-white {
    color: #fff;
}

.text-gray-300 {
    color: #d1d5db;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-900 {
    color: #111827;
}

.text-blue-400 {
    color: #60a5fa;
}

.text-blue-500 {
    color: #3b82f6;
}

.text-blue-600 {
    color: #2563eb;
}

.text-yellow-400 {
    color: #facc15;
}

.text-green-400 {
    color: #4ade80;
}

.text-green-600 {
    color: #16a34a;
}

.text-red-400 {
    color: #f87171;
}

.text-red-500 {
    color: #ef4444;
}

.text-red-600 {
    color: #dc2626;
}

.text-amber-400 {
    color: #fbbf24;
}

.text-amber-600 {
    color: #d97706;
}

.bg-white {
    background-color: #fff;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.bg-blue-100 {
    background-color: #dbeafe;
}

.bg-blue-600 {
    background-color: #2563eb;
}

.bg-green-50 {
    background-color: #f0fdf4;
}

.bg-green-100 {
    background-color: #dcfce7;
}

.bg-green-500 {
    background-color: #22c55e;
}

.bg-red-50 {
    background-color: #fef2f2;
}

.bg-red-100 {
    background-color: #fee2e2;
}

.bg-red-500 {
    background-color: #ef4444;
}

.bg-amber-50 {
    background-color: #fffbeb;
}

.bg-amber-100 {
    background-color: #fef3c7;
}

.bg-amber-500 {
    background-color: #f59e0b;
}

/* ---------- Gradients ---------- */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-slate-50 {
    --tw-gradient-from: #f8fafc;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent);
}

.via-blue-50 {
    --tw-gradient-stops: var(--tw-gradient-from), #eff6ff, var(--tw-gradient-to, transparent);
}

.to-indigo-100 {
    --tw-gradient-to: #e0e7ff;
}

.from-blue-600 {
    --tw-gradient-from: #2563eb;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent);
}

.to-indigo-600 {
    --tw-gradient-to: #4f46e5;
}

.from-blue-700 {
    --tw-gradient-from: #1d4ed8;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent);
}

.to-indigo-700 {
    --tw-gradient-to: #4338ca;
}

.from-blue-400 {
    --tw-gradient-from: #60a5fa;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent);
}

.to-indigo-400 {
    --tw-gradient-to: #818cf8;
}

.from-blue-700.bg-clip-text,
.to-indigo-700.bg-clip-text {
    /* handled below */
}

.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

.text-transparent {
    color: transparent;
}

.from-blue-50 {
    --tw-gradient-from: #eff6ff;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent);
}

.via-indigo-50 {
    --tw-gradient-stops: var(--tw-gradient-from), #eef2ff, var(--tw-gradient-to, transparent);
}

.to-purple-50 {
    --tw-gradient-to: #faf5ff;
}

/* Combined gradient text */
h1.bg-clip-text {
    background-image: linear-gradient(to right, #1d4ed8, #4338ca);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Borders ---------- */
.border {
    border-width: 1px;
}

.border-2 {
    border-width: 2px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-transparent {
    border-color: transparent;
}

.border-gray-200\/80 {
    border-color: rgba(229, 231, 235, 0.8);
}

.border-green-200 {
    border-color: #bbf7d0;
}

.border-red-200 {
    border-color: #fecaca;
}

.border-amber-200 {
    border-color: #fde68a;
}

.border-blue-200\/50 {
    border-color: rgba(191, 219, 254, 0.5);
}

.border-gray-200\/50 {
    border-color: rgba(229, 231, 235, 0.5);
}

.border-white\/20 {
    border-color: rgba(255, 255, 255, 0.2);
}

/* ---------- Rounded ---------- */
.rounded-md {
    border-radius: 0.375rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* ---------- Shadows ---------- */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.shadow-blue-500\/25 {
    --tw-shadow-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 10px 25px -5px var(--tw-shadow-color);
}

/* ---------- Effects ---------- */
.backdrop-blur-xl {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.blur-3xl {
    filter: blur(64px);
}

.opacity-0 {
    opacity: 0;
}

.opacity-100 {
    opacity: 1;
}

/* ---------- Transitions ---------- */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.duration-500 {
    transition-duration: 500ms;
}

.translate-y-0 {
    transform: translateY(0);
}

.translate-y-2 {
    transform: translateY(0.5rem);
}

/* ---------- Hover States ---------- */
.hover\:bg-gray-200:hover {
    background-color: #e5e7eb;
}

.hover\:text-blue-600:hover {
    color: #2563eb;
}

.hover\:scale-110:hover {
    transform: scale(1.1);
}

.hover\:scale-\[1\.02\]:hover {
    transform: scale(1.02);
}

.active\:scale-\[0\.98\]:active {
    transform: scale(0.98);
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.hover\:shadow-blue-500\/40:hover {
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}

.hover\:shadow-md:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

/* ---------- Focus ---------- */
.focus\:outline-none:focus {
    outline: none;
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.focus\:border-blue-400:focus {
    border-color: #60a5fa;
}

/* ---------- Textarea / Input ---------- */
textarea::placeholder,
input::placeholder {
    color: #9ca3af;
}

/* ---------- Glassmorphism ---------- */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.02);
}

/* ---------- Animations ---------- */
@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {
    50% {
        opacity: 0.5;
    }
}

.animate-float {
    animation: float 20s ease-in-out infinite;
}

.animate-float-delay {
    animation: float 25s ease-in-out infinite 5s;
}

.animate-float-slow {
    animation: float 30s ease-in-out infinite 10s;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out;
}

.animate-slide-up-delay {
    animation: slideUp 0.6s ease-out 0.1s both;
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* ---------- Dark Mode ---------- */
html.dark body {
    color: #e5e7eb;
}

html.dark .glass-card {
    background: rgba(17, 24, 39, 0.85);
    border-color: rgba(55, 65, 81, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
}

html.dark .bg-white {
    background-color: #1f2937;
}

html.dark .bg-gray-100 {
    background-color: #374151;
}

html.dark .bg-gray-100\/50 {
    background-color: rgba(55, 65, 81, 0.5);
}

html.dark .text-gray-900 {
    color: #f3f4f6;
}

html.dark .text-gray-600 {
    color: #d1d5db;
}

html.dark .text-gray-500 {
    color: #9ca3af;
}

html.dark .text-gray-400 {
    color: #6b7280;
}

html.dark .border-gray-200\/80 {
    border-color: rgba(75, 85, 99, 0.5);
}

html.dark .border-gray-200\/50 {
    border-color: rgba(75, 85, 99, 0.3);
}

html.dark .border-white\/20 {
    border-color: rgba(75, 85, 99, 0.3);
}

html.dark textarea,
html.dark input[type="text"],
html.dark input[type="password"] {
    background: rgba(31, 41, 55, 0.5);
    color: #f3f4f6;
    border-color: rgba(75, 85, 99, 0.5);
}

html.dark textarea::placeholder,
html.dark input::placeholder {
    color: #6b7280;
}

html.dark .bg-blue-100 {
    background-color: rgba(30, 58, 138, 0.3);
}

html.dark .text-blue-600 {
    color: #60a5fa;
}

html.dark h1.bg-clip-text {
    background-image: linear-gradient(to right, #60a5fa, #818cf8);
}

html.dark .bg-green-50 {
    background-color: rgba(22, 101, 52, 0.2);
}

html.dark .bg-red-50 {
    background-color: rgba(153, 27, 27, 0.2);
}

html.dark .bg-amber-50 {
    background-color: rgba(146, 64, 14, 0.2);
}

html.dark .border-green-200 {
    border-color: rgba(34, 197, 94, 0.3);
}

html.dark .border-red-200 {
    border-color: rgba(239, 68, 68, 0.3);
}

html.dark .border-amber-200 {
    border-color: rgba(245, 158, 11, 0.3);
}

html.dark .text-green-600 {
    color: #4ade80;
}

html.dark .text-red-600 {
    color: #f87171;
}

html.dark .text-amber-600 {
    color: #fbbf24;
}

html.dark .bg-green-100 {
    background-color: rgba(22, 101, 52, 0.3);
}

html.dark .bg-red-100 {
    background-color: rgba(153, 27, 27, 0.3);
}

html.dark .bg-amber-100 {
    background-color: rgba(146, 64, 14, 0.3);
}

html.dark .bg-green-500 {
    background-color: #4ade80;
}

html.dark .bg-red-500 {
    background-color: #f87171;
}

html.dark .bg-amber-500 {
    background-color: #fbbf24;
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
    .sm\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .sm\:p-8 {
        padding: 2rem;
    }

    .sm\:py-10 {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .sm\:text-xl {
        font-size: 1.25rem;
    }

    .sm\:text-xs {
        font-size: 0.75rem;
    }

    .sm\:text-lg {
        font-size: 1.125rem;
    }

    .sm\:h-44 {
        height: 11rem;
    }
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

html.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}

html.dark ::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ---------- Summary Grid ---------- */
.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gap-3 {
    gap: 0.75rem;
}

/* ---------- Hover Row Effect ---------- */
.domain-row {
    transition: all 0.3s ease;
}

.domain-row:hover {
    background: linear-gradient(to right, rgba(243, 244, 246, 0.5), rgba(219, 234, 254, 0.3));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-color: rgba(191, 219, 254, 0.5);
}

html.dark .domain-row:hover {
    background: linear-gradient(to right, rgba(55, 65, 81, 0.3), rgba(30, 58, 138, 0.2));
    border-color: rgba(59, 130, 246, 0.2);
}

/* ============================================
   Admin Dashboard Styles
   ============================================ */

/* Sidebar */
.sidebar {
    width: 220px;
    min-height: 100vh;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(229, 231, 235, 0.5);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

html.dark .sidebar {
    background: rgba(17, 24, 39, 0.95);
    border-right-color: rgba(55, 65, 81, 0.5);
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    border-radius: 0.5rem;
    margin: 0.125rem 0.75rem;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.sidebar-nav-item:hover {
    background: #eff6ff;
    color: #2563eb;
}

html.dark .sidebar-nav-item {
    color: #9ca3af;
}

html.dark .sidebar-nav-item:hover {
    background: rgba(30, 58, 138, 0.3);
    color: #60a5fa;
}

.sidebar-nav-item.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

html.dark .sidebar-nav-item.active {
    background: rgba(30, 58, 138, 0.4);
    color: #60a5fa;
}

.sidebar-nav-item i {
    width: 18px;
    text-align: center;
}

.admin-content {
    margin-left: 220px;
    min-height: 100vh;
    padding: 2rem;
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table thead th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    border-bottom: 2px solid #e5e7eb;
}

html.dark .admin-table thead th {
    color: #9ca3af;
    border-bottom-color: #374151;
}

.admin-table tbody td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

html.dark .admin-table tbody td {
    color: #d1d5db;
    border-bottom-color: #1f2937;
}

.admin-table tbody tr {
    transition: background 0.2s ease;
}

.admin-table tbody tr:hover {
    background: #f9fafb;
}

html.dark .admin-table tbody tr:hover {
    background: rgba(55, 65, 81, 0.3);
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-safe {
    background: #dcfce7;
    color: #16a34a;
}

.badge-blocked {
    background: #fee2e2;
    color: #dc2626;
}

.badge-unknown {
    background: #fef3c7;
    color: #d97706;
}

html.dark .badge-safe {
    background: rgba(22, 101, 52, 0.3);
    color: #4ade80;
}

html.dark .badge-blocked {
    background: rgba(153, 27, 27, 0.3);
    color: #f87171;
}

html.dark .badge-unknown {
    background: rgba(146, 64, 14, 0.3);
    color: #fbbf24;
}

/* Action Buttons */
.btn-icon {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn-edit {
    background: #dbeafe;
    color: #2563eb;
}

.btn-edit:hover {
    background: #bfdbfe;
}

.btn-delete {
    background: #fee2e2;
    color: #dc2626;
}

.btn-delete:hover {
    background: #fecaca;
}

html.dark .btn-edit {
    background: rgba(30, 58, 138, 0.3);
    color: #60a5fa;
}

html.dark .btn-delete {
    background: rgba(153, 27, 27, 0.3);
    color: #f87171;
}

/* Action Bar Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-success {
    background: #16a34a;
    color: white;
}

.btn-success:hover {
    background: #15803d;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-purple {
    background: #7c3aed;
    color: white;
}

.btn-purple:hover {
    background: #6d28d9;
}

.btn-outline {
    background: transparent;
    color: #374151;
    border: 1px solid #d1d5db;
}

html.dark .btn-outline {
    color: #d1d5db;
    border-color: #4b5563;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease-out;
}

html.dark .modal-content {
    background: #1f2937;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.modal-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111827;
}

html.dark .modal-content h3 {
    color: #f3f4f6;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.375rem;
}

html.dark .form-label {
    color: #d1d5db;
}

.form-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    font-family: inherit;
    background: white;
    color: #111827;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

html.dark .form-input {
    background: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}

html.dark .form-input:focus {
    border-color: #60a5fa;
}

.form-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: white;
    color: #111827;
    cursor: pointer;
}

html.dark .form-select {
    background: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 200;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast-success {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.toast-error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.toast-info {
    background: #dbeafe;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

/* Logout Button */
.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    margin: 0.5rem 0.75rem;
    border: none;
    border-radius: 0.5rem;
    background: #fef2f2;
    color: #dc2626;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: calc(100% - 1.5rem);
}

.logout-btn:hover {
    background: #fee2e2;
}

html.dark .logout-btn {
    background: rgba(153, 27, 27, 0.2);
    color: #f87171;
}

html.dark .logout-btn:hover {
    background: rgba(153, 27, 27, 0.3);
}

/* Group Card */
.group-card {
    padding: 1rem 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    margin-bottom: 0.75rem;
}

.group-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

html.dark .group-card {
    border-color: #374151;
}

html.dark .group-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

/* Responsive Admin */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .admin-content {
        margin-left: 0;
        padding: 1rem;
    }
}

/* Login page specific */
.login-card {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

/* ---------- Dynamic Result Elements ---------- */
.domain-text {
    color: #111827;
}

html.dark .domain-text {
    color: #f3f4f6;
}

.status-badge.status-safe {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #bbf7d0;
}

.status-badge.status-blocked {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.status-badge.status-unknown {
    background: #fffbeb;
    color: #d97706;
    border-color: #fde68a;
}

html.dark .status-badge.status-safe {
    background: rgba(22, 101, 52, 0.2);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.3);
}

html.dark .status-badge.status-blocked {
    background: rgba(153, 27, 27, 0.2);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

html.dark .status-badge.status-unknown {
    background: rgba(146, 64, 14, 0.2);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
}

.summary-icon-bg {
    background: #ffffff;
}

html.dark .summary-icon-bg {
    background: #374151;
}

.summary-title {
    color: #111827;
}

html.dark .summary-title {
    color: #f3f4f6;
}

html.dark .summary-card {
    border-color: rgba(59, 130, 246, 0.2);
}