@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* Cards elegantes con bordes */
.card,
.bg-gradient-to-r,
.bg-gradient-to-br,
[class*="rounded-2xl"] {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37) !important;
    backdrop-filter: blur(8px) !important;
}

/* Hover en cards */
.card:hover,
.bg-gradient-to-r:hover,
.bg-gradient-to-br:hover {
    border-color: rgba(59, 130, 246, 0.3) !important;
    box-shadow: 0 12px 48px 0 rgba(59, 130, 246, 0.15) !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Stat cards con gradientes y brillo */
.stat-card-blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(6, 182, 212, 0.08)) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    position: relative;
    overflow: hidden;
}

.stat-card-blue::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.stat-card-cyan {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(16, 185, 129, 0.08)) !important;
    border: 1px solid rgba(6, 182, 212, 0.2) !important;
}

.stat-card-green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.08)) !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
}

.stat-card-purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.08)) !important;
    border: 1px solid rgba(139, 92, 246, 0.2) !important;
}

/* Tabla elegante */
table {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

table thead tr {
    background: rgba(15, 17, 23, 0.6) !important;
    border-bottom: 2px solid rgba(59, 130, 246, 0.2) !important;
}

table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}

table tbody tr:hover {
    background: rgba(59, 130, 246, 0.08) !important;
    border-left: 3px solid rgba(59, 130, 246, 0.5) !important;
}

/* Avatares con glow */
[class*="rounded-full"][class*="bg-gradient"] {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4) !important;
    border: 2px solid rgba(59, 130, 246, 0.3) !important;
}

/* Badges elegantes */
.badge,
[class*="rounded-full"][class*="px-"] {
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Inputs con borde */
input[type="text"],
input[type="password"],
select,
textarea {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(59, 130, 246, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* Botones con efectos */
button,
a[class*="bg-gradient"] {
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3) !important;
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover::before {
    width: 300px;
    height: 300px;
}

/* Sidebar con borde sutil */
aside {
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3) !important;
}

/* Items del sidebar */
aside nav a {
    border: 1px solid transparent !important;
    transition: all 0.3s ease !important;
}

aside nav a:hover {
    border-color: rgba(59, 130, 246, 0.2) !important;
    background: rgba(59, 130, 246, 0.08) !important;
}

aside nav a[class*="border-l-4"] {
    border-left: 4px solid #3b82f6 !important;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.05)) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2) !important;
}

/* Iconos con glow en hover */
svg {
    transition: all 0.3s ease;
}

button:hover svg,
a:hover svg {
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
}

/* Animaciones */
@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

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

/* Scrollbar elegante */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #0f1117;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6, #06b6d4);
    border-radius: 10px;
    border: 2px solid #0f1117;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #60a5fa, #22d3ee);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.7);
}

/* Alerts con bordes */
[class*="alert"],
[class*="bg-emerald-500"],
[class*="bg-red-500"],
[class*="bg-amber-500"] {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(8px) !important;
}

/* Efectos de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Glow en números grandes */
.text-3xl,
.text-4xl,
.text-5xl {
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}