/* Globe Dashboard — custom styles */

:root {
    --globe-glow: rgba(51, 157, 255, 0.35);
    --globe-accent: #339dff;
}

.noise-overlay {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#sidebar:hover ~ #main-content,
#sidebar.sidebar-expanded ~ #main-content {
    margin-left: 240px;
}

.page-enter {
    animation: pageEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageEnter {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-20px) rotate(2deg); }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50%      { opacity: 0.7; transform: scale(1.05); }
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100%) scale(0.9); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to   { opacity: 0; transform: translateX(100%) scale(0.9); }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.03; }
    50%      { opacity: 0.06; }
}

.login-bg {
    background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(51, 157, 255, 0.15), transparent),
                radial-gradient(ellipse 50% 40% at 80% 80%, rgba(123, 47, 255, 0.08), transparent),
                #050508;
}

.login-grid {
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridPulse 4s ease-in-out infinite;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.orb-1 {
    width: 400px; height: 400px;
    background: rgba(51, 157, 255, 0.12);
    top: -100px; left: -100px;
    animation: float 8s ease-in-out infinite;
}

.orb-2 {
    width: 300px; height: 300px;
    background: rgba(123, 47, 255, 0.08);
    bottom: -50px; right: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

.logo-glow {
    filter: drop-shadow(0 0 30px rgba(51, 157, 255, 0.5))
            drop-shadow(0 0 60px rgba(51, 157, 255, 0.2));
    animation: pulseGlow 4s ease-in-out infinite;
}

.discord-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.discord-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.12) 50%, transparent 60%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(88, 101, 242, 0.4), 0 0 0 1px rgba(88, 101, 242, 0.3);
}

.discord-btn:active {
    transform: translateY(0);
}

.glass-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(20px);
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.glass-card:hover {
    border-color: rgba(51, 157, 255, 0.15);
    box-shadow: 0 0 40px rgba(51, 157, 255, 0.05);
}

.glass-card-interactive:hover {
    transform: translateY(-2px);
}

.stat-value {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.toast {
    pointer-events: auto;
    animation: toastIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    min-width: 320px;
    max-width: 420px;
}

.toast.toast-exit {
    animation: toastOut 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-progress {
    animation: toastProgress linear forwards;
}

@keyframes toastProgress {
    from { width: 100%; }
    to   { width: 0%; }
}

.code-input {
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

.spinner {
    width: 20px; height: 20px;
    border: 2px solid rgba(255,255,255,0.1);
    border-top-color: var(--globe-accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.download-ready {
    animation: downloadPulse 2s ease-in-out infinite;
}

@keyframes downloadPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(51, 157, 255, 0.3); }
    50%      { box-shadow: 0 0 0 8px rgba(51, 157, 255, 0); }
}
