/* CasaNode Diagnostics — Custom Styles */

/* Skeleton loading animation */
.skeleton {
    background: linear-gradient(90deg, #1f2937 25%, #374151 50%, #1f2937 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Collapsible cards */
.card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 0.75rem;
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: background-color 0.15s;
}

.card-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Alpine collapse transition */
[x-collapse] {
    overflow: hidden;
}

/* Scrollbar styling for dark mode */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #111827;
}

::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}

/* Monospace elements */
.mono {
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.85em;
}

/* Toast animation */
[x-show][x-transition] {
    transition: all 0.3s ease;
}

/* Table hover effect */
table tbody tr {
    transition: background-color 0.1s;
}

/* Copy cursor hint */
[x-on\:click*="copyText"],
[\\@click*="copyText"] {
    cursor: copy;
}

/* Alpine cloak */
[x-cloak] {
    display: none !important;
}

/* Wireless mesh background (matches dashboard.casanode.in login overlay) */
.mesh-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: #060810;
}
.mesh-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.mesh-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    pointer-events: none;
}
.mesh-glow.g1 { background: #60a5fa; top: -10%; left: -5%; animation: mesh-glow1 8s ease-in-out infinite; }
.mesh-glow.g2 { background: #3b82f6; bottom: -15%; right: -8%; animation: mesh-glow2 10s ease-in-out infinite; }
.mesh-glow.g3 { background: #8b5cf6; top: 40%; left: 50%; width: 300px; height: 300px; animation: mesh-glow3 12s ease-in-out infinite; }
@keyframes mesh-glow1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,30px) scale(1.15); } }
@keyframes mesh-glow2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-30px,-40px) scale(1.2); } }
@keyframes mesh-glow3 { 0%,100% { transform: translate(0,0) scale(.8); opacity: .08; } 50% { transform: translate(-20px,20px) scale(1); opacity: .15; } }
