/* Custom styles for Stake1071 sidebar menu */

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

/* Menu Items Styling */
.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin: 4px 0;
    border-radius: 12px;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.menu-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(59, 130, 246, 0.1));
    color: #ffffff;
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.menu-item i {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    stroke-width: 2;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.menu-item:hover i {
    color: #6366f1;
    transform: scale(1.1);
}

.menu-item span {
    font-weight: 500;
    font-size: 15px;
}

/* Gradient text effect */
.bg-gradient-text {
    background: linear-gradient(135deg, #6366f1, #3b82f6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom scrollbar */
#sidebar::-webkit-scrollbar {
    width: 6px;
}

#sidebar::-webkit-scrollbar-track {
    background: #374151;
}

#sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    border-radius: 3px;
}

#sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4f46e5, #2563eb);
}

/* Sidebar animation */
#sidebar {
    transform: translateX(-100%);
    animation: slideIn 0.5s ease-out 0.3s forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ml-80 {
        margin-left: 0;
    }
    
    #sidebar {
        transform: translateX(-100%);
        z-index: 40;
    }
    
    #sidebar.show {
        transform: translateX(0);
    }
    
    #sidebar.hide {
        transform: translateX(-100%);
    }
}

/* Mobile overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Hover effects for top buttons */
button[class*="gradient"] {
    position: relative;
    overflow: hidden;
}

button[class*="gradient"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

button[class*="gradient"]:hover::before {
    left: 100%;
}

/* Language selector styling */
.language-selector {
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.language-selector:hover {
    background: rgba(99, 102, 241, 0.1);
}

/* Loading animation for menu items */
.menu-item {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.2s; }
.menu-item:nth-child(3) { animation-delay: 0.3s; }
.menu-item:nth-child(4) { animation-delay: 0.4s; }
.menu-item:nth-child(5) { animation-delay: 0.5s; }
.menu-item:nth-child(6) { animation-delay: 0.6s; }
.menu-item:nth-child(7) { animation-delay: 0.7s; }
.menu-item:nth-child(8) { animation-delay: 0.8s; }

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

/* Custom focus styles for accessibility */
.menu-item:focus,
button:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Pulse animation for active menu item */
.menu-item.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(59, 130, 246, 0.2));
    color: #ffffff;
}

.menu-item.active::before {
    content: '';
    position: absolute;
    right: 12px;
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}