.gradient-novus {
    background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 50%, #a855f7 100%);
}

/* Mobile-first: safe area for notched devices */
body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
}

.card-glow {
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.12);
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .card-glow:hover {
        box-shadow: 0 8px 30px rgba(124, 58, 237, 0.25);
        transform: translateY(-2px);
    }
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.tech-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
}

.active-menu {
    background: rgba(251, 191, 36, 0.2);
    border-left: 3px solid #fbbf24;
}

@media (min-width: 768px) {
    .active-menu {
        border-left: none;
        border-right: 3px solid #fbbf24;
    }
}

.mobile-menu-transition {
    transition: transform 0.3s ease-in-out;
}

.no-scroll {
    overflow: hidden;
}

.stream-canvas {
    image-rendering: auto;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.camera-frame {
    position: relative;
    border: 2px solid rgba(124, 58, 237, 0.4);
    box-shadow: inset 0 0 20px rgba(124, 58, 237, 0.1), 0 0 15px rgba(0, 0, 0, 0.3);
}

.camera-frame.offline {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: inset 0 0 20px rgba(239, 68, 68, 0.05);
}

.camera-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Mobile: 44px min touch targets */
.touch-target {
    min-height: 44px;
    min-width: 44px;
}

/* Mobile: prevent zoom on input focus (iOS) */
input, select, textarea {
    font-size: 16px;
}

@media (min-width: 768px) {
    input, select, textarea {
        font-size: inherit;
    }
}

/* Mobile: remove tap highlight on touch */
button, a, [role="button"] {
    -webkit-tap-highlight-color: transparent;
}

/* Animazione numeri stats */
.stat-value {
    transition: transform 0.2s ease, color 0.2s ease;
}
.stat-value.updated {
    animation: statPulse 0.4s ease;
}
@keyframes statPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Slide-in per nuovi eventi */
.event-enter {
    animation: eventSlideIn 0.3s ease-out;
}
@keyframes eventSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
