/* ===== Mikrotik Tools CSS ===== */
:root {
    --color-bg: #0f172a;
    --color-card: #1e293b;
    --color-border: #334155;
    --color-text: #f8fafc;
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

[data-theme="light"] {
    --color-bg: #f8fafc;
    --color-card: #ffffff;
    --color-border: #e2e8f0;
    --color-text: #1e293b;
}

body {
    font-family: 'Sarabun', sans-serif;
    transition: all 0.3s ease;
}

.nav-item.active {
    background: #3b82f6;
    color: white;
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-card:hover {
    transform: translateY(-4px);
}

/* Loading Animation */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #3b82f6;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .ml-64 {
        margin-left: 0;
    }
    
    nav {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    nav.mobile-open {
        transform: translateX(0);
    }
}