@import "https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700;800;900&display=swap";

*, :before, :after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    font-family: Inter, sans-serif;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(-45deg, #0a1628, #0f1c2e, #1a2332, #0d1b2a);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: #e0f2fe;
    min-height: 100vh;
    font-family: Inter, sans-serif;
    position: relative;
    overflow-x: hidden;
}

body:before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(6, 182, 212, .08) 0%, transparent 50%), 
                radial-gradient(circle at 80% 80%, rgba(59, 130, 246, .06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Orbitron, sans-serif;
    letter-spacing: .1em;
}

#root {
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem;
}

.max-w-7xl {
    max-width: 80rem;
}

.card-neon {
    background: rgba(15, 23, 42, 0.85);
    border: 2px solid;
    border-image: linear-gradient(135deg, #06b6d4, #3b82f6, #0ea5e9) 1;
    border-radius: .75rem;
    padding: 1.5rem;
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.15), 
                inset 0 0 20px rgba(6, 182, 212, 0.03), 
                0 10px 40px rgba(6, 182, 212, 0.1);
    backdrop-filter: blur(12px);
    transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: slideIn 0.5s ease-out, fadeIn 0.5s ease-out;
}

.card-neon::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(6, 182, 212, 0.08),
        transparent
    );
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

.card-neon:hover {
    box-shadow: 0 0 35px rgba(6, 182, 212, 0.3), 
                inset 0 0 25px rgba(6, 182, 212, 0.08), 
                0 15px 50px rgba(6, 182, 212, 0.2);
    border-image: linear-gradient(135deg, #0ea5e9, #06b6d4, #3b82f6) 1;
    transform: translateY(-3px);
    animation: glow 2s ease-in-out infinite;
}

.btn-neon {
    padding: .75rem 1.5rem;
    background: linear-gradient(135deg, #0ea5e9, #06b6d4, #3b82f6);
    background-size: 200% 200%;
    color: #ffffff;
    font-weight: 700;
    font-family: Orbitron, sans-serif;
    border-radius: .5rem;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4), 
                0 2px 10px rgba(59, 130, 246, 0.3), 
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all .3s cubic-bezier(.34, 1.56, .64, 1);
    transform: scale(1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: circuit-flow 3s ease infinite;
}

.btn-neon:hover:not(:disabled) {
    box-shadow: 0 6px 30px rgba(6, 182, 212, 0.6), 
                0 4px 20px rgba(59, 130, 246, 0.5), 
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: scale(1.05) translateY(-2px);
    background-position: 200% 0;
}

.btn-neon:disabled {
    opacity: .4;
    cursor: not-allowed;
    transform: scale(1);
    box-shadow: 0 2px 10px rgba(6, 182, 212, 0.1);
}

.btn-neon:active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(6, 182, 212, 0.3);
}

.input-neon {
    width: 100%;
    background: rgba(15, 23, 42, 0.7);
    border: 2px solid rgba(6, 182, 212, 0.3);
    border-radius: .5rem;
    padding: .75rem 1rem;
    color: #e0f2fe;
    font-family: 'Courier New', monospace;
    font-size: .875rem;
    transition: all .3s ease;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.input-neon::placeholder {
    color: #475569;
}

.input-neon:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2), 
                inset 0 2px 8px rgba(0, 0, 0, 0.2), 
                0 4px 12px rgba(6, 182, 212, 0.3);
    color: #e0f2fe;
    background: rgba(15, 23, 42, 0.85);
    transform: scale(1.005);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-live {
    color: #0f0;
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid rgba(0, 255, 0, 0.5);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.status-live:hover {
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.6);
    transform: scale(1.05);
}

.status-dead {
    color: red;
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid rgba(255, 0, 0, 0.5);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.status-dead:hover {
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
    transform: scale(1.05);
}

.status-error {
    color: #ff6600;
    background: rgba(255, 102, 0, 0.1);
    border: 2px solid rgba(255, 102, 0, 0.5);
    text-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.status-error:hover {
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.6);
    transform: scale(1.05);
}

.neon-text {
    color: #06b6d4;
    text-shadow: 0 2px 10px rgba(6, 182, 212, 0.5), 0 0 20px rgba(6, 182, 212, 0.3);
    font-family: Orbitron, sans-serif;
}

.digital-counter {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: .1em;
    transition: all 0.3s ease;
    display: inline-block;
}

.digital-counter.updated {
    animation: counterIncrement 0.5s ease-out;
}

.text-neon-blue { color: #06b6d4; }
.text-neon-purple { color: #3b82f6; }
.text-green-400 { color: #22c55e; }
.text-red-400 { color: #ef4444; }
.text-orange-400 { color: #f97316; }
.text-gray-300 { color: #cbd5e1; }
.text-gray-400 { color: #94a3b8; }
.text-gray-500 { color: #64748b; }
.text-cyan-400 { color: #22d3ee; }
.text-purple-400 { color: #a78bfa; }
.text-yellow-400 { color: #facc15; }

.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-xs { font-size: .75rem; line-height: 1rem; }

.font-orbitron { font-family: Orbitron, sans-serif; }
.font-semibold { font-weight: 600; }

.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-4 { margin-top: 1rem; }
.mr-2 { margin-right: .5rem; }
.mr-3 { margin-right: .75rem; }
.ml-3 { margin-left: .75rem; }

.p-2 { padding: .5rem; }
.p-3 { padding: .75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.text-left { text-align: left; }

.w-full { width: 100%; }
.min-h-\[150px\] { min-height: 150px; }
.min-h-\[200px\] { min-height: 200px; }
.min-h-\[220px\] { min-height: 220px; }

.overflow-x-auto { overflow-x: auto; }
.rounded { border-radius: 0.25rem; }
.rounded-full { border-radius: 9999px; }

.bg-cyan-500\/10 { background-color: rgba(6, 182, 212, 0.1); }
.bg-cyan-500\/20 { background-color: rgba(6, 182, 212, 0.2); }
.bg-green-500\/20 { background-color: rgba(34, 197, 94, 0.2); }
.bg-red-500\/10 { background-color: rgba(239, 68, 68, 0.1); }
.bg-red-500\/20 { background-color: rgba(239, 68, 68, 0.2); }
.bg-red-500\/30 { background-color: rgba(239, 68, 68, 0.3); }

.border { border-width: 1px; }
.border-cyan-500\/30 { border-color: rgba(6, 182, 212, 0.3); }
.border-cyan-500\/50 { border-color: rgba(6, 182, 212, 0.5); }
.border-green-500\/50 { border-color: rgba(34, 197, 94, 0.5); }
.border-red-500\/30 { border-color: rgba(239, 68, 68, 0.3); }

.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:bg-red-500\/30:hover { background-color: rgba(239, 68, 68, 0.3); }

.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.duration-300 { transition-duration: 300ms; }

.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.1); }
.shadow-cyan-500\/30 { box-shadow: 0 10px 25px -3px rgba(6, 182, 212, 0.3); }

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(6, 182, 212, 0.15);
    transition: all 0.3s ease;
}

th {
    color: #06b6d4;
    font-weight: 600;
    position: sticky;
    top: 0;
    background: rgba(15, 23, 42, 0.98);
    z-index: 10;
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 4px rgba(6, 182, 212, 0.4);
}

td {
    color: #cbd5e1;
    font-size: 0.875rem;
}

tbody tr {
    animation: slideIn 0.3s ease-out, fadeIn 0.3s ease-out;
    animation-fill-mode: both;
}

tbody tr:nth-child(even) {
    background: rgba(6, 182, 212, 0.03);
}

tbody tr:hover {
    background: rgba(6, 182, 212, 0.08);
    transform: translateX(3px);
    box-shadow: -3px 0 15px rgba(6, 182, 212, 0.2);
}

.border-b { border-bottom-width: 1px; }
.border-cyan-400\/30 { border-color: rgba(34, 211, 238, 0.3); }

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

@keyframes circuit-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 25px rgba(6, 182, 212, 0.15), 
                    inset 0 0 20px rgba(6, 182, 212, 0.03), 
                    0 10px 40px rgba(6, 182, 212, 0.1);
    }
    50% {
        box-shadow: 0 0 35px rgba(6, 182, 212, 0.3), 
                    inset 0 0 25px rgba(6, 182, 212, 0.08), 
                    0 15px 50px rgba(6, 182, 212, 0.2);
    }
}

@keyframes counterIncrement {
    from { transform: scale(1.2); color: #06b6d4; }
    to { transform: scale(1); }
}

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

@keyframes successPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(34, 197, 94, 0.5); }
    50% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.8); }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@media (min-width: 768px) {
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(6, 182, 212, 0.3);
    border-radius: 50%;
    border-top-color: #06b6d4;
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4, #3b82f6);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 2px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

h1.text-5xl {
    text-shadow: 0 2px 20px rgba(6, 182, 212, 0.6), 0 4px 40px rgba(6, 182, 212, 0.4), 0 0 60px rgba(59, 130, 246, 0.3);
    animation: glow 3s ease-in-out infinite;
}

.success-message {
    animation: successPulse 2s ease-in-out;
}

.error-message {
    animation: errorShake 0.5s ease-in-out;
}

/* Responsivo para mobile */
@media (max-width: 768px) {
    .container { padding: 1rem; }
    h1.text-5xl { font-size: 2rem !important; }
    .card-neon { padding: 1rem; }
    .btn-neon { width: 100%; text-align: center; }
    .grid { grid-template-columns: 1fr !important; }
    .text-2xl { font-size: 1.25rem; }
}
