/* Componentes Modernos para Dashboard */

/* Glassmorphism effect */
.glass {
    background: rgba(28, 28, 28, 0.25);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 0, 0, 0.18);
}

/* Neumorphism cards */
.neomorphic {
    background: linear-gradient(145deg, #1a1a1a, #2e2e2e);
    box-shadow: 
        20px 20px 60px #0d0d0d,
        -20px -20px 60px #333333;
}

/* Animated gradient borders */
.gradient-border {
    position: relative;
    background: #1C1C1C;
    border-radius: 16px;
}

.gradient-border::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(45deg, #FF0000, #CC0000, #FF0000);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

/* Loading skeletons */
.skeleton {
    background: linear-gradient(90deg, #1C1C1C 25%, #2A2A2A 50%, #1C1C1C 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Micro-interactions */
.micro-bounce {
    transition: transform 0.2s ease;
}

.micro-bounce:active {
    transform: scale(0.95);
}

/* Status indicators */
.status-online {
    position: relative;
}

.status-online::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #10B981;
    border: 2px solid #000;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Progress bars modernos */
.progress-modern {
    width: 100%;
    height: 8px;
    background: #1C1C1C;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #FF0000, #FF6B6B);
    border-radius: 4px;
    width: var(--progress, 0%);
    transition: width 0.3s ease;
}

/* Tooltips modernos */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.tooltip::after {
    content: "";
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .modern-card {
        padding: 16px;
        border-radius: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .btn-modern {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .modern-card {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states */
.btn-modern:focus,
.modern-card:focus {
    outline: 2px solid #FF0000;
    outline-offset: 2px;
}
