:root {
            --primary: 	#274c77;
            --primary-dark: #6096ba;
            --glass-bg: rgba(255, 255, 255, 0.1);
            --glass-border: rgba(255, 255, 255, 0.2);
            --glass-shadow: rgba(0, 0, 0, 0.1);
        }
		
		/* Detect user’s system/browser dark mode */
@media (prefers-color-scheme: dark) {
    body {
        background-color: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    }

    .glass-card {
        background: rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    /* Active button in dark mode */
    .inline-flex a.active {
        background-color: var(--primary-dark); /* Darker primary */
        color: #fff;
        border-color: var(--primary-dark);
    }

    .inline-flex a.active:hover {
        background-color: #4338ca; /* Even darker hover */
        color: #fff;
    }

    /* Normal button hover in dark mode */
    .inline-flex a:hover {
        background-color: #374151; 
        color: #fff;
    }
}
        
        .dark {
            --glass-bg: rgba(0, 0, 0, 0.1);
            --glass-border: rgba(255, 255, 255, 0.1);
            --glass-shadow: rgba(0, 0, 0, 0.3);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            background: url('../theme/image/background.svg') no-repeat center center fixed;
            background-size: cover;
            background-color: #f0f3fb;
            transition: all 0.3s ease;
            min-height: 100vh;
			padding-top: 70px;
        }

        .dark body {
            background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
        }
        
        .glass-card {
            background: var(--glass-bg);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid var(--glass-border);
            box-shadow: 0 8px 32px var(--glass-shadow);
            border-radius: 16px;
        }
        
        .fade-in {
            animation: fadeIn 0.5s ease-in-out;
        }
        
        .slide-in {
            animation: slideIn 0.5s ease-out;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        @keyframes slideIn {
            from { transform: translateY(2px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        
        .gradient-bg {
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
        }
        
        .theme-transition * {
            transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
        }
        
        .crypto-badge {
            background: linear-gradient(45deg, #4f46e5, #7c3aed);
            color: white;
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 0.75rem;
            font-weight: 600;
        }
        
        .feature-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
        }
        
        .tab-active {
            background: var(--primary);
            color: white;
            border-radius: 8px;
            font-weight: 600;
        }
        
        .zero-width {
            font-family: monospace;
            letter-spacing: 0.1em;
        }
        
        .confusable-safe {
            font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
            letter-spacing: 1px;
        }
        
        .tooltip {
            position: relative;
            display: inline-block;
        }
        
        .tooltip .tooltip-text {
            visibility: hidden;
            width: 200px;
            background-color: black;
            color: white;
            text-align: center;
            border-radius: 6px;
            padding: 5px;
            position: absolute;
            z-index: 1;
            bottom: 125%;
            left: 50%;
            transform: translateX(-50%);
            opacity: 0;
            transition: opacity 0.3s;
        }
        
        .tooltip:hover .tooltip-text {
            visibility: visible;
            opacity: 1;
        }
        
        .status-error {
            background-color: #fee2e2;
            color: #dc2626;
            border: 1px solid #fecaca;
        }
        
        .dark .status-error {
            background-color: #7f1d1d;
            color: #fecaca;
            border: 1px solid #991b1b;
        }
        
        .status-success {
            background-color: #d1fae5;
            color: #065f46;
            border: 1px solid #a7f3d0;
        }
        
        .dark .status-success {
            background-color: #064e3b;
            color: #6ee7b7;
            border: 1px solid #047857;
        }
        
        .status-processing {
            background-color: #dbeafe;
            color: #1e40af;
            border: 1px solid #bfdbfe;
        }
        
        .dark .status-processing {
            background-color: #1e3a8a;
            color: #93c5fd;
            border: 1px solid #3b82f6;
        }
        
        .encryption-visualization {
            height: 4px;
            background: linear-gradient(90deg, #10b981, #3b82f6, #8b5cf6, #ec4899);
            border-radius: 2px;
            margin: 10px 0;
            position: relative;
            overflow: hidden;
        }
        
        .encryption-visualization::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
            animation: shimmer 2s infinite;
        }
        
        @keyframes shimmer {
            100% {
                left: 100%;
            }
        }
		
.inline-flex a {
  transition: all 0.3s ease;
}

/* Active button */
.inline-flex a.active {
  background-color: var(--primary);
  color: #fff; 
  border-color: #1d4ed8;
}

.inline-flex a.active:hover {
  background-color: #1e40af; 
  color: #fff;
}