/* Dashboard Custom Styles */

/* Sidebar Styles */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgb(203 213 225);
    transition: all 0.2s;
}

.sidebar-link:hover {
    background-color: rgba(51, 65, 85, 0.3);
    color: white;
}

.sidebar-link.active {
    background: linear-gradient(to right, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    color: white;
    border-left: 4px solid rgb(99, 102, 241);
}

.sidebar-link i {
    width: 1.25rem;
    text-align: center;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Classes de animação */
.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in {
    animation: slideInRight 0.5s ease-out;
}

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

/* Efeitos de hover nos cards */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 30px -5px rgba(0, 0, 0, 0.4),
                0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

/* Efeito glass morphism */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Gradiente animado */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 200% 200%;
    animation: gradient 15s ease infinite;
}

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

/* Loading skeleton */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

/* Scrollbar customizada */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 10px;
    border: 2px solid rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #818cf8 0%, #a78bfa 100%);
}

/* Efeitos de brilho nos ícones */
.icon-glow {
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.6));
    transition: filter 0.3s ease;
}

.icon-glow:hover {
    filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.9));
}

/* Números animados */
.number-animate {
    transition: all 0.3s ease;
}

.number-animate:hover {
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.8);
}

/* Estados de loading */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Botões com efeito ripple */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Badges com pulse */
.badge-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Transições suaves para forms */
input:focus,
select:focus,
button:focus {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gráficos responsivos */
canvas {
    max-width: 100%;
    height: auto !important;
}

/* Efeito de hover nos itens de lista */
.list-item-hover {
    position: relative;
    transition: all 0.3s ease;
}

.list-item-hover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.list-item-hover:hover::before {
    transform: scaleY(1);
}

/* Texto com gradiente */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sombras suaves e modernas */
.shadow-soft {
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
}

.shadow-soft-lg {
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-hover:hover {
        transform: translateY(-3px) scale(1.01);
    }
    
    .glass-effect {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

/* Dark mode optimizations */
@media (prefers-color-scheme: dark) {
    .glass-effect {
        background: rgba(15, 23, 42, 0.7);
    }
}

/* Acessibilidade */
.focus-visible:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Transições suaves para todos os elementos interativos */
a, button, input, select, textarea {
    transition: all 0.2s ease;
}

