* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Login specific styles */
body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    position: relative;
    width: 100%;
    max-width: 400px;
    z-index: 10;
}

.login-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #06b6d4, #0891b2, #0e7490, #155e75);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 16px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(6, 182, 212, 0.1);
    transition: all 0.3s ease;
}

.logo-svg-login {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(6, 182, 212, 0.4));
    transition: all 0.3s ease;
}

.logo-container:hover .logo-svg-login {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(6, 182, 212, 0.5));
}

.logo-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.4);
}

.logo-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #06b6d4, #0891b2, #0e7490);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(6, 182, 212, 0.4));
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.logo-icon-wrapper::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1), transparent);
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}

.logo-container:hover .logo-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 6px 12px rgba(6, 182, 212, 0.6));
}

.logo-container:hover .logo-icon-wrapper::before {
    transform: scale(1.2);
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2), transparent);
}

.logo-text-container {
    display: flex;
    align-items: baseline;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
}

.logo-ardu {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    position: relative;
}

.logo-ardu::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-com {
    background: linear-gradient(135deg, #0e7490, #155e75);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    position: relative;
    margin-left: 2px;
}

.logo-com::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #06b6d4, #0891b2, #0e7490);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.logo-container:hover .logo-com::before {
    transform: scaleX(1);
}

.logo-container:hover .logo-ardu::after {
    opacity: 0.3;
}

.subtitle {
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.company-description {
    color: #64748b;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-size: 16px;
    z-index: 2;
    transition: color 0.3s ease;
}

.input-container input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.3s ease;
    outline: none;
}

.input-container input:focus {
    border-color: #06b6d4;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

.input-container input:focus + .input-icon {
    color: #06b6d4;
}

.input-container input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s ease;
    z-index: 2;
}

.toggle-password:hover {
    color: #06b6d4;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #64748b;
    font-weight: 500;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: #06b6d4;
    border-color: #06b6d4;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    color: #06b6d4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #0891b2;
    text-decoration: underline;
}

.login-btn {
    background: linear-gradient(135deg, #06b6d4, #0891b2, #0e7490);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.login-btn::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;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.login-footer p {
    color: #64748b;
    font-size: 14px;
}

.signup-link {
    color: #06b6d4;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-link:hover {
    color: #0891b2;
    text-decoration: underline;
}

.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(8, 145, 178, 0.1));
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.circle-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        margin: 20px;
        padding: 30px 24px;
    }
    
    .logo-text {
        font-size: 28px;
    }
    
    .logo-container {
        padding: 8px 16px;
        gap: 12px;
    }
    
    .logo-icon {
        font-size: 2rem;
    }
    
    .logo-text-container {
        font-size: 1.8rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* Loading state */
.login-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.login-btn.loading span {
    opacity: 0;
}

.login-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error states */
.input-container.error input {
    border-color: #ef4444;
    background: #fef2f2;
}

.input-container.error .input-icon {
    color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.input-container.error + .error-message {
    display: block;
}

/* Dashboard Styles */
body.dashboard-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(6, 182, 212, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 12px 24px;
}

.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Logo CSS - Símbolo de red */
.logo-css {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(6, 182, 212, 0.3));
}

.logo-css:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(6, 182, 212, 0.4));
}

.logo-symbol {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Círculo central */
.logo-center {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #06b6d4;
    border-radius: 50%;
    z-index: 3;
}

/* Líneas radiales (spokes) */
.logo-spoke {
    position: absolute;
    width: 2px;
    height: 12px;
    background: #06b6d4;
    transform-origin: center 20px;
}

.logo-spoke-1 { transform: rotate(0deg); }
.logo-spoke-2 { transform: rotate(45deg); }
.logo-spoke-3 { transform: rotate(90deg); }
.logo-spoke-4 { transform: rotate(135deg); }
.logo-spoke-5 { transform: rotate(180deg); }
.logo-spoke-6 { transform: rotate(225deg); }
.logo-spoke-7 { transform: rotate(270deg); }
.logo-spoke-8 { transform: rotate(315deg); }

/* Nodos en los extremos */
.logo-node {
    position: absolute;
    width: 4px;
    height: 4px;
    border: 2px solid #06b6d4;
    border-radius: 50%;
    background: transparent;
    transform-origin: center 20px;
}

.logo-node-1 { transform: rotate(0deg) translateY(-18px); }
.logo-node-2 { transform: rotate(45deg) translateY(-18px); }
.logo-node-3 { transform: rotate(90deg) translateY(-18px); }
.logo-node-4 { transform: rotate(135deg) translateY(-18px); }
.logo-node-5 { transform: rotate(180deg) translateY(-18px); }
.logo-node-6 { transform: rotate(225deg) translateY(-18px); }
.logo-node-7 { transform: rotate(270deg) translateY(-18px); }
.logo-node-8 { transform: rotate(315deg) translateY(-18px); }

/* Texto del logo */
.logo-text-css {
    display: flex;
    align-items: baseline;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.logo-ardu {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.logo-co {
    color: #9ca3af;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.logo-m {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.logo-spa {
    color: #22c55e;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Logo para página de login */
.logo-container .logo-css {
    gap: 20px;
}

.logo-container .logo-symbol {
    width: 50px;
    height: 50px;
}

.logo-container .logo-center {
    width: 10px;
    height: 10px;
}

.logo-container .logo-spoke {
    height: 15px;
    transform-origin: center 25px;
}

.logo-container .logo-node {
    width: 5px;
    height: 5px;
    border-width: 2px;
    transform-origin: center 25px;
}

.logo-container .logo-node-1 { transform: rotate(0deg) translateY(-22px); }
.logo-container .logo-node-2 { transform: rotate(45deg) translateY(-22px); }
.logo-container .logo-node-3 { transform: rotate(90deg) translateY(-22px); }
.logo-container .logo-node-4 { transform: rotate(135deg) translateY(-22px); }
.logo-container .logo-node-5 { transform: rotate(180deg) translateY(-22px); }
.logo-container .logo-node-6 { transform: rotate(225deg) translateY(-22px); }
.logo-container .logo-node-7 { transform: rotate(270deg) translateY(-22px); }
.logo-container .logo-node-8 { transform: rotate(315deg) translateY(-22px); }

.logo-container .logo-text-css {
    font-size: 1.5rem;
}

/* Mantener estilos antiguos para compatibilidad */
.logo-svg {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(6, 182, 212, 0.3));
    transition: all 0.3s ease;
}

.logo-svg:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(6, 182, 212, 0.4));
}

/* Mantener estilos antiguos para compatibilidad */
.logo-icon {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.user-details h3 {
    margin: 0;
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
}

.user-details p {
    margin: 2px 0 0 0;
    color: #64748b;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.admin-badge i {
    font-size: 8px;
}

.logout-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.logout-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3);
}

.dashboard-container {
    max-width: 1200px;
    margin: 80px auto 40px;
    padding: 20px;
    min-height: calc(100vh - 180px);
    position: relative;
    z-index: 1;
}

.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.card-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.card-content {
    color: #64748b;
    line-height: 1.6;
}

.welcome-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
}

.welcome-message h1 {
    color: #1e293b;
    font-size: 32px;
    margin-bottom: 16px;
}

.welcome-message p {
    color: #64748b;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.action-btn {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    margin-top: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(6, 182, 212, 0.3);
}

/* Dashboard Content Styles */
.full-width {
    grid-column: 1 / -1;
}

.card-actions {
    display: flex;
    gap: 12px;
    margin-left: auto;
    align-items: center;
}

.last-update {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 12px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.last-update i {
    color: #06b6d4;
    font-size: 14px;
}

.stats-grid {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    width: 100%;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-height: 160px;
    flex: 1;
}

.stat-card.online {
    background: #10b981;
}

.stat-card.offline {
    background: #fbbf24;
}

.stat-card.sin-energia {
    background: #ff1100;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.stat-card {
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.stat-icon.online {
    background: white;
    color: #10b981;
}

.stat-icon.offline {
    background: white;
    color: #fbbf24;
}

.stat-icon.sin-energia {
    background: white;
    color: #f97316;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-content {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-card.online .stat-number,
.stat-card.online .stat-label {
    color: white;
}

.stat-card.offline .stat-number,
.stat-card.offline .stat-label {
    color: #1f2937;
}

.stat-card.sin-energia .stat-number,
.stat-card.sin-energia .stat-label {
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-item {
    text-align: center;
    padding: 16px;
    background: rgba(6, 182, 212, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(6, 182, 212, 0.1);
}

.table-container {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 12px;
    border: 1px solid rgba(6, 182, 212, 0.1);
    padding-left: 40px !important;
    position: relative !important;
}

.equipos-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}

.equipos-table th {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.equipos-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
}

.equipos-table tr:hover {
    background: rgba(6, 182, 212, 0.05);
}

.equipos-table tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.5);
}

.equipos-table tr:nth-child(even):hover {
    background: rgba(6, 182, 212, 0.05);
}

.status-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    min-width: 60px;
}

.status-active {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-inactive {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-alert {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
    animation: pulse-alert 2s infinite;
}

@keyframes pulse-alert {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

.alarma-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    min-width: 40px;
}

.alarma-yes {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alarma-no {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-view {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.btn-edit {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Estilos para barras de señal */
.senal-barras {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 24px;
    position: relative;
}

.barra-senal {
    width: 3px;
    border-radius: 1px;
    transition: all 0.3s ease;
    min-height: 4px;
}

.senal-texto {
    margin-left: 8px;
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}

.senal-sin-cobertura {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
}

.senal-sin-cobertura i {
    font-size: 16px;
    color: #9ca3af;
}

/* Estilos para información del cliente */
.cliente-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cliente-nombre {
    font-weight: 500;
    color: #1e293b;
    line-height: 1.2;
}

.tiempo-actualizacion {
    font-size: 9px;
    color: #94a3b8;
    font-weight: 400;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

.ubicacion-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sector-nombre {
    font-weight: 500;
    color: #1e293b;
    line-height: 1.2;
}

.comuna-nombre {
    font-size: 9px;
    color: #94a3b8;
    font-weight: 400;
}

/* Estilos para círculos de estado */
.circulo-verde {
    width: 16px;
    height: 16px;
    background-color: #22c55e;
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.3);
}

.circulo-naranja {
    width: 16px;
    height: 16px;
    background-color: #f97316;
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.3);
}

.circulo-plomo {
    width: 16px;
    height: 16px;
    background-color: #6b7280;
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: 0 2px 4px rgba(107, 114, 128, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.circulo-plomo.offline {
    background-color: #9ca3af;
}

.circulo-plomo.offline i {
    color: white;
    font-size: 8px;
    font-weight: bold;
}

/* Footer Styles */
.footer {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(6, 182, 212, 0.2);
    color: #e2e8f0;
    position: relative;
    margin-top: 40px;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-section h4 {
    color: #06b6d4;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #06b6d4, #0891b2);
    border-radius: 1px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo i {
    font-size: 24px;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo span {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #06b6d4;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #06b6d4;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(6, 182, 212, 0.3);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
}

.contact-item i {
    width: 16px;
    color: #06b6d4;
    font-size: 14px;
}

.contact-item span {
    font-size: 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #06b6d4;
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #06b6d4;
}

.footer-links a:hover::before {
    width: 100%;
}

.footer-bottom {
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid rgba(6, 182, 212, 0.1);
    padding: 15px 20px;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 13px;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #06b6d4;
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .user-section {
        width: 100%;
        justify-content: space-between;
    }
    
    .user-info {
        flex: 1;
        margin-right: 12px;
    }
    
    .dashboard-container {
        margin-top: 120px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    .dashboard-container {
        margin-bottom: 120px;
    }
    
    /* Logo responsivo */
    .logo-css {
        gap: 10px;
    }
    
    .logo-symbol {
        width: 32px;
        height: 32px;
    }
    
    .logo-center {
        width: 6px;
        height: 6px;
    }
    
    .logo-spoke {
        height: 10px;
        transform-origin: center 16px;
    }
    
    .logo-node {
        width: 3px;
        height: 3px;
        border-width: 1.5px;
        transform-origin: center 16px;
    }
    
    .logo-node-1 { transform: rotate(0deg) translateY(-14px); }
    .logo-node-2 { transform: rotate(45deg) translateY(-14px); }
    .logo-node-3 { transform: rotate(90deg) translateY(-14px); }
    .logo-node-4 { transform: rotate(135deg) translateY(-14px); }
    .logo-node-5 { transform: rotate(180deg) translateY(-14px); }
    .logo-node-6 { transform: rotate(225deg) translateY(-14px); }
    .logo-node-7 { transform: rotate(270deg) translateY(-14px); }
    .logo-node-8 { transform: rotate(315deg) translateY(-14px); }
    
    .logo-text-css {
        font-size: 1rem;
    }
}

/* Mapa */
.map-container {
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.map-legend {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.legend-color.green {
    background-color: #18a04a;
}

.legend-color.yellow {
    background-color: #f9ff35;
}

.legend-color.red {
    background-color: #ff1100;
}

/* Estilos para marcadores del mapa */
.custom-marker {
    background: transparent;
    border: none;
}

.custom-marker div {
    transition: all 0.3s ease;
}

.custom-marker div:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4) !important;
}

/* Animación de parpadeo para marcadores rojos */
@keyframes blink-red {
    0% {
        opacity: 1;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    50% {
        opacity: 0.3;
        box-shadow: 0 2px 8px rgba(255, 17, 0, 0.6);
    }
    100% {
        opacity: 1;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
}

/* Animación para el anillo pulsante alrededor del marcador rojo */
@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.4;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Animación para líneas de alerta alrededor del marcador */
@keyframes alert-lines {
    0% {
        transform: rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: rotate(90deg);
        opacity: 0.7;
    }
    50% {
        transform: rotate(180deg);
        opacity: 0.5;
    }
    75% {
        transform: rotate(270deg);
        opacity: 0.7;
    }
    100% {
        transform: rotate(360deg);
        opacity: 1;
    }
}

/* Clase para marcadores rojos con parpadeo y efectos de alerta */
.custom-marker-red {
    position: relative;
}

.custom-marker-red div {
    animation: blink-red 1.5s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

/* Anillo pulsante alrededor del marcador rojo */
.custom-marker-red::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 2s ease-out infinite;
    z-index: 1;
}

/* Líneas de alerta rotatorias */
.custom-marker-red::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: 
        linear-gradient(45deg, transparent 40%, rgba(255, 0, 0, 0.8) 45%, rgba(255, 0, 0, 0.8) 55%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(255, 0, 0, 0.8) 45%, rgba(255, 0, 0, 0.8) 55%, transparent 60%),
        linear-gradient(90deg, transparent 40%, rgba(255, 0, 0, 0.8) 45%, rgba(255, 0, 0, 0.8) 55%, transparent 60%),
        linear-gradient(0deg, transparent 40%, rgba(255, 0, 0, 0.8) 45%, rgba(255, 0, 0, 0.8) 55%, transparent 60%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: alert-lines 3s linear infinite;
    z-index: 0;
}

.custom-marker-red:hover {
    animation: none;
}

.custom-marker-red:hover div {
    animation: none;
    transform: scale(1.3);
    box-shadow: 0 6px 12px rgba(255, 0, 0, 0.8) !important;
}

.custom-marker-red:hover::before {
    animation: none;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.6) 0%, transparent 70%);
}

.custom-marker-red:hover::after {
    animation: none;
    background: 
        linear-gradient(45deg, transparent 40%, rgba(255, 0, 0, 1) 45%, rgba(255, 0, 0, 1) 55%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(255, 0, 0, 1) 45%, rgba(255, 0, 0, 1) 55%, transparent 60%),
        linear-gradient(90deg, transparent 40%, rgba(255, 0, 0, 1) 45%, rgba(255, 0, 0, 1) 55%, transparent 60%),
        linear-gradient(0deg, transparent 40%, rgba(255, 0, 0, 1) 45%, rgba(255, 0, 0, 1) 55%, transparent 60%);
}

/* Estilos para popups del mapa */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    margin: 12px;
    font-family: 'Inter', sans-serif;
} 

/* Estilos para notificaciones de alerta */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.7) translateY(-50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes modalSlideOut {
    from {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    to {
        transform: scale(0.7) translateY(-50px);
        opacity: 0;
    }
}

.notificacion-alerta {
    animation: slideInRight 0.5s ease-out;
}

.notificacion-alerta.removing {
    animation: slideOutRight 0.5s ease-in;
}

.modal-alerta {
    animation: modalSlideIn 0.5s ease-out;
}

.modal-alerta.removing {
    animation: modalSlideOut 0.5s ease-in;
}

/* Scrollbar personalizado para las notificaciones */
.notificacion-alerta div::-webkit-scrollbar {
    width: 6px;
}

.notificacion-alerta div::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.notificacion-alerta div::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.notificacion-alerta div::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
} 

/* Estilos para filas de alerta crítica */
.fila-alerta-critica {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fbbf24 100%) !important;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3) !important;
    animation: pulse-alerta-fila 2s infinite !important;
    position: relative !important;
}

/* Ajustar el contenedor de la tabla para dar espacio al ícono */
.table-container {
    position: relative !important;
    padding-left: 50px !important;
}

.fila-alerta-critica::before {

    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    animation: bounce 1s infinite;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 50%;
    border: 2px solid rgba(220, 38, 38, 0.3);
}

.fila-alerta-critica td {
    background: transparent !important;
    color: #1e293b !important;
    font-weight: 600 !important;
    border-color: rgba(220, 38, 38, 0.2) !important;
}

.fila-alerta-critica:hover {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #f59e0b 100%) !important;
    transform: scale(1.01) !important;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4) !important;
}

@keyframes pulse-alerta-fila {
    0% {
        box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(220, 38, 38, 0.5);
    }
    100% {
        box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(-50%) scale(1);
    }
    40% {
        transform: translateY(-50%) scale(1.1);
    }
    60% {
        transform: translateY(-50%) scale(1.05);
    }
}

/* Asegurar que las filas de alerta tengan prioridad sobre otros estilos */
.equipos-table tr.fila-alerta-critica {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fbbf24 100%) !important;
}

.equipos-table tr.fila-alerta-critica:nth-child(even) {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fbbf24 100%) !important;
}

.equipos-table tr.fila-alerta-critica:nth-child(even):hover {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #f59e0b 100%) !important;
} 