/* Custom styles for Hardware Simulator */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Animated gradient backgrounds */
.gradient-bg {
    background: linear-gradient(-45deg, #1e293b, #334155, #475569, #64748b);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

::-webkit-scrollbar-track {
    background: #1f2937;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Hover effects */
.hover-scale:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease-in-out;
}

/* Glass morphism effect */
.glass {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Loading spinner */
.spinner {
    border: 2px solid #374151;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Progress bars */
.progress-bar {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transition: width 0.3s ease-in-out;
}

/* Skill level colors */
.skill-novice { color: #9ca3af; }
.skill-apprentice { color: #22c55e; }
.skill-expert { color: #3b82f6; }
.skill-master { color: #a855f7; }
.skill-grandmaster { color: #f59e0b; }

/* Card hover effects */
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease-in-out;
}

/* Button pulse animation */
.btn-pulse:hover {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Status indicators */
.status-success { 
    background-color: #10b981; 
    animation: glow-green 2s ease-in-out infinite alternate;
}

.status-warning { 
    background-color: #f59e0b; 
    animation: glow-yellow 2s ease-in-out infinite alternate;
}

.status-danger { 
    background-color: #ef4444; 
    animation: glow-red 2s ease-in-out infinite alternate;
}

@keyframes glow-green {
    from { box-shadow: 0 0 5px #10b981; }
    to { box-shadow: 0 0 15px #10b981; }
}

@keyframes glow-yellow {
    from { box-shadow: 0 0 5px #f59e0b; }
    to { box-shadow: 0 0 15px #f59e0b; }
}

@keyframes glow-red {
    from { box-shadow: 0 0 5px #ef4444; }
    to { box-shadow: 0 0 15px #ef4444; }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .mobile-stack {
        flex-direction: column;
    }
    
    .mobile-full {
        width: 100%;
    }
}