/* Design System Global - GLPI-BOT (Monochrome Theme) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #000000;
    --bg-secondary: #09090b;
    --accent-indigo: #ffffff;
    --accent-purple: #d4d4d8;
    --accent-pink: #a1a1aa;
    --accent-emerald: #10b981; /* Keep connected green */
    --accent-teal: #71717a;
    --accent-cyan: #e4e4e7;
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
}

body {
    font-family: 'Outfit', sans-serif;
    background: radial-gradient(circle at 50% 0%, #1e1e24 0%, #09090b 80%) no-repeat, #09090b !important;
    color: var(--text-primary);
    min-height: 100vh;
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(9, 9, 11, 0.8) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.7) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 16px 48px 0 rgba(255, 255, 255, 0.02) !important;
}

/* Form Controls */
input[type="text"], 
input[type="password"], 
input[type="number"], 
textarea, 
select {
    background: rgba(9, 9, 11, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    color: #f3f4f6 !important;
    font-size: 0.875rem !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    width: 100%;
}

input:focus, 
textarea:focus, 
select:focus {
    border-color: var(--accent-indigo) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1) !important;
    background: rgba(9, 9, 11, 0.9) !important;
    outline: none !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Navigation Links */
.nav-link {
    color: var(--text-secondary);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}
.nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.02);
}

/* Badges for Variables */
.badge {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #e4e4e7 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}
.badge:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Status QR Code container styles */
.qr-container {
    transition: all 0.3s ease;
}

#qrcode img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    border-radius: 0.75rem;
    border: 6px solid #ffffff;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

main, .glass-card {
    animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom QR Code transition and shine animations */
@keyframes qrPop {
    0% {
        transform: scale(0.9) rotate(-3deg);
        opacity: 0;
        filter: blur(8px);
    }
    70% {
        transform: scale(1.03) rotate(1deg);
        filter: blur(0px);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes shineEffect {
    0% { left: -100%; }
    100% { left: 200%; }
}

.qr-animate {
    animation: qrPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.qr-container-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
}

.qr-container-wrapper::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 30%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    animation: shineEffect 1.8s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
    pointer-events: none;
}