/* Custom styles for Aptos VM Studio */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0d1117;
    color: #e6edf3;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Glow effect for title */
.text-glow {
    text-shadow: 0 0 20px rgba(88, 166, 255, 0.4), 0 0 40px rgba(88, 166, 255, 0.2);
}

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

::-webkit-scrollbar-track {
    background: #161b22;
    border-radius: 4px;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

/* Monospace font for terminal */
.font-mono {
    font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Consolas', monospace;
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Spin animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Button hover effects */
button {
    transition: all 0.2s ease;
}

button:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

button:not(:disabled):active {
    transform: translateY(0);
}

/* Card hover effects */
.hover-card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hover-card:hover {
    border-color: #484f58;
    box-shadow: 0 0 20px rgba(88, 166, 255, 0.1);
}

/* Terminal cursor blink */
@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.cursor-blink::after {
    content: '▋';
    animation: blink 1s infinite;
    color: #58a6ff;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Status indicator glow */
.status-ready {
    box-shadow: 0 0 10px rgba(63, 185, 80, 0.5);
}

.status-booting {
    box-shadow: 0 0 10px rgba(210, 153, 34, 0.5);
}

.status-error {
    box-shadow: 0 0 10px rgba(248, 81, 73, 0.5);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .text-glow {
        text-shadow: 0 0 10px rgba(88, 166, 255, 0.3);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: rgba(88, 166, 255, 0.3);
    color: #fff;
}

/* Focus styles */
button:focus-visible,
input:focus-visible {
    outline: 2px solid #58a6ff;
    outline-offset: 2px;
}

/* Loading shimmer effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.loading-shimmer {
    background: linear-gradient(90deg, #161b22 0%, #30363d 50%, #161b22 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}