/* assets/css/custom.css */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Glassmorphism card */
.glass-panel {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel-hover:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 10px 30px -10px rgba(79, 70, 229, 0.25);
    transform: translateY(-2px);
}

/* Glow effects */
.glow-cyan {
    box-shadow: 0 0 20px -3px rgba(6, 182, 212, 0.35);
}

.glow-indigo {
    box-shadow: 0 0 25px -3px rgba(99, 102, 241, 0.35);
}

.glow-emerald {
    box-shadow: 0 0 20px -3px rgba(16, 185, 129, 0.35);
}

.glow-rose {
    box-shadow: 0 0 20px -3px rgba(244, 63, 94, 0.35);
}

/* Drag and Drop visual feedback */
.draggable-item {
    cursor: grab;
    user-select: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.draggable-item:active {
    cursor: grabbing;
}

.draggable-item.dragging {
    opacity: 0.5;
    transform: scale(0.96);
}

.dropzone {
    transition: all 0.2s ease;
}

.dropzone.drag-over {
    border-color: #06b6d4 !important;
    background-color: rgba(6, 182, 212, 0.12) !important;
    transform: scale(1.02);
}

/* Answer animations */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-8px);
    }

    40%,
    80% {
        transform: translateX(8px);
    }
}

.shake-anim {
    animation: shake 0.4s ease-in-out;
}

@keyframes popSuccess {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.04);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.pop-success {
    animation: popSuccess 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* SVG Diagram Styling */
.uml-svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.uml-svg text {
    font-family: 'JetBrains Mono', 'Plus Jakarta Sans', monospace;
    user-select: none;
}