/* =====================================================
   DADOGATE IoT PLATFORM - PROFESSIONAL FUTURISTIC v4.0
   CORREGIDO - MEJOR LEGIBILIDAD
   ==================================================== */

/* ==================== FUENTES Y BASE ==================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
    --primary-dark: #0a0c15;
    --primary-deep: #0f1222;
    --primary: #1a1f35;
    --primary-light: #242b45;
    --accent-cyan: #00e5ff;
    --accent-purple: #a855f7;
    --accent-blue: #3b82f6;
    --accent-teal: #14b8a6;
    --accent-pink: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --gradient-primary: linear-gradient(135deg, #0f1222 0%, #1a1f35 100%);
    --gradient-accent: linear-gradient(135deg, #00e5ff, #a855f7);
    --gradient-success: linear-gradient(135deg, #10b981, #059669);
    --gradient-danger: linear-gradient(135deg, #ef4444, #dc2626);
    --gradient-warning: linear-gradient(135deg, #f59e0b, #d97706);
    --glass-bg: rgba(15, 23, 42, 0.85);
    --glass-border: rgba(0, 229, 255, 0.2);
    --glass-blur: blur(12px);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 229, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: radial-gradient(ellipse at 20% 30%, #0a0c15, #05070f);
    color: #e2e8f0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ==================== LAYOUT PRINCIPAL ==================== */
.app-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: rgba(5, 7, 15, 0.95);
    backdrop-filter: blur(12px);
    border-right: 1px solid rgba(0, 229, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
}

.sidebar.collapsed {
    transform: translateX(-280px);
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 229, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00e5ff, #a855f7);
    border-radius: 4px;
}

.menu-toggle {
    position: fixed;
    left: 24px;
    top: 24px;
    z-index: 1001;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 14px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.menu-toggle:hover {
    background: linear-gradient(135deg, #00e5ff, #a855f7);
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.4);
}

.menu-toggle:hover i {
    color: #0a0c15;
}

.menu-toggle i {
    font-size: 1.5rem;
    color: #00e5ff;
    transition: color 0.2s;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px;
    min-height: 100vh;
}

.main-content.expanded {
    margin-left: 0;
}

/* ==================== SIDEBAR INTERNO ==================== */
.sidebar-brand {
    text-align: center;
    padding: 28px 20px;
    border-bottom: 1px solid rgba(0, 229, 255, 0.15);
    position: relative;
}

.sidebar-brand::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00e5ff, #a855f7, transparent);
}

.sidebar-brand img {
    width: 100px;
    filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.6));
    transition: all 0.3s;
}

.sidebar-brand img:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.8));
}

.sidebar-brand h5 {
    background: linear-gradient(135deg, #00e5ff, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-top: 12px;
    font-size: 1rem;
    letter-spacing: 3px;
    font-weight: 700;
}

.user-info {
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(168, 85, 247, 0.08));
    margin: 16px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(0, 229, 255, 0.15);
    backdrop-filter: blur(4px);
}

.user-info b {
    background: linear-gradient(135deg, #00e5ff, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1rem;
    display: block;
    margin-bottom: 6px;
}

.user-info .text-muted {
    font-size: 0.7rem;
    color: #94a3b8;
}

.sidebar-nav {
    flex: 1;
    padding: 0 12px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 14px;
    margin-bottom: 8px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.sidebar-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.1), transparent);
    transition: width 0.3s;
}

.sidebar-nav a:hover::before {
    width: 100%;
}

.sidebar-nav a:hover {
    background: rgba(0, 229, 255, 0.08);
    color: #00e5ff;
    transform: translateX(6px);
}

.sidebar-nav a.active {
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.15), transparent);
    color: #00e5ff;
    border-left: 3px solid #00e5ff;
    font-weight: 600;
}

.sidebar-nav a i {
    width: 24px;
    font-size: 1.2rem;
    text-align: center;
}

.logout-btn {
    margin: 16px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 14px;
    color: #f87171;
    cursor: pointer;
    transition: all 0.25s;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.logout-btn:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(239, 68, 68, 0.3);
}

/* ==================== TARJETAS ==================== */
.card {
    background: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 229, 255, 0.35);
    box-shadow: 0 12px 48px rgba(0, 229, 255, 0.15);
}

.card-header {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(168, 85, 247, 0.05));
    border-bottom: 1px solid rgba(0, 229, 255, 0.15);
    padding: 1rem 1.5rem;
    font-weight: 700;
    color: #00e5ff;
    letter-spacing: 0.5px;
}

.card-header i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.card-body {
    padding: 1.25rem;
    color: #e2e8f0;
}

/* ==================== BOTONES ==================== */
.btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.65rem 1.4rem;
    transition: all 0.25s;
    cursor: pointer;
    border: none;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn::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.4s, height 0.4s;
}

.btn:hover::before {
    width: 200%;
    height: 200%;
}

.btn-primary {
    background: linear-gradient(135deg, #00e5ff, #3b82f6);
    color: #0a0c15;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 229, 255, 0.5);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0a0c15;
    font-weight: 700;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background: rgba(51, 65, 85, 0.9);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: #e2e8f0;
}

.btn-secondary:hover {
    background: rgba(71, 85, 105, 0.95);
    transform: translateY(-2px);
    color: white;
}

.btn-outline-light {
    border: 1px solid rgba(0, 229, 255, 0.4);
    background: transparent;
    color: #00e5ff;
}

.btn-outline-light:hover {
    background: rgba(0, 229, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
    color: #00e5ff;
}

.btn-outline-danger {
    border: 1px solid #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
    color: #f87171 !important;
}

.btn-outline-danger:hover {
    background: #ef4444 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3) !important;
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.75rem;
    border-radius: 10px;
}

/* ==================== INPUTS Y SELECTS ==================== */
.form-control,
input.form-control,
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="datetime-local"] {
    background: #0a0c15 !important;
    border: 1px solid rgba(0, 229, 255, 0.4) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 0.8rem 1rem !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

input[type="time"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus {
    border-color: #00e5ff !important;
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.2) !important;
    outline: none !important;
}

/* Estilo para el calendario desplegable (date picker) */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.5);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    filter: invert(1) brightness(2);
}

/* Firefox */
input[type="date"]::-moz-calendar-picker-indicator,
input[type="time"]::-moz-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.form-control::placeholder,
input.form-control::placeholder {
    color: #64748b !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

.form-control:focus,
input.form-control:focus {
    border-color: #00e5ff !important;
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.2) !important;
    outline: none !important;
    background: #0f1222 !important;
}

.form-select,
select.form-select {
    background: #0a0c15 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2300e5ff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 16px 12px !important;
    border: 1px solid rgba(0, 229, 255, 0.4) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 0.8rem 2.5rem 0.8rem 1rem !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.form-select option,
select.form-select option {
    background: #0f1222 !important;
    color: #ffffff !important;
    padding: 12px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
}

.form-select:hover,
select.form-select:hover {
    border-color: #00e5ff !important;
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.15) !important;
}

.form-select:focus,
select.form-select:focus {
    border-color: #00e5ff !important;
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.2) !important;
    outline: none !important;
}

/* ==================== RADIO BUTTONS ==================== */
.d-flex.gap-4 {
    gap: 1.5rem !important;
}

.form-check {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 0 !important;
    padding-left: 0 !important;
}

.form-check-input[type="radio"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    background: #0a0c15 !important;
    border: 2px solid rgba(0, 229, 255, 0.6) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    position: relative !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
}

.form-check-input[type="radio"]:checked {
    background: #00e5ff !important;
    border-color: #00e5ff !important;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.6) !important;
}

.form-check-input[type="radio"]:checked::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 8px !important;
    height: 8px !important;
    background: #0a0c15 !important;
    border-radius: 50% !important;
}

.form-check-input[type="radio"]:hover {
    border-color: #00e5ff !important;
    transform: scale(1.05) !important;
}

.form-check-label {
    color: #e2e8f0 !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: color 0.2s !important;
}

.form-check-label:hover {
    color: #00e5ff !important;
}

/* ==================== SWITCH (TOGGLE) ==================== */
.form-switch {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding-left: 0 !important;
}

.form-switch .form-check-input {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 56px !important;
    height: 30px !important;
    background: #1e293b !important;
    border: 1px solid rgba(0, 229, 255, 0.3) !important;
    border-radius: 34px !important;
    cursor: pointer !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
}

.form-switch .form-check-input:checked {
    background: linear-gradient(135deg, #00e5ff, #3b82f6) !important;
    border-color: #00e5ff !important;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.5) !important;
}

.form-switch .form-check-input::before {
    content: '' !important;
    position: absolute !important;
    top: 3px !important;
    left: 4px !important;
    width: 22px !important;
    height: 22px !important;
    background: white !important;
    border-radius: 50% !important;
    transition: transform 0.3s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.form-switch .form-check-input:checked::before {
    transform: translateX(26px) !important;
}

.form-switch .form-check-input:hover {
    border-color: #00e5ff !important;
    transform: scale(1.02) !important;
}

.form-switch .form-check-label {
    color: #e2e8f0 !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
}

/* ==================== CHECKBOX NORMAL ==================== */
.form-check-input[type="checkbox"]:not(.form-switch .form-check-input) {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    background: #0a0c15 !important;
    border: 2px solid rgba(0, 229, 255, 0.6) !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    position: relative !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
}

.form-check-input[type="checkbox"]:checked {
    background: #00e5ff !important;
    border-color: #00e5ff !important;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5) !important;
}

.form-check-input[type="checkbox"]:checked::before {
    content: '✓' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: #0a0c15 !important;
    font-size: 13px !important;
    font-weight: bold !important;
}

.form-check-input[type="checkbox"]:hover {
    border-color: #00e5ff !important;
    transform: scale(1.05) !important;
}

/* ==================== ETIQUETAS ==================== */
.form-label {
    color: #00e5ff !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 0.5rem !important;
    font-weight: 700 !important;
    display: block !important;
}

.text-muted {
    color: #94a3b8 !important;
}

/* ==================== SECCIONES ESPECÍFICAS ==================== */
.camara-section {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(168, 85, 247, 0.05)) !important;
    border: 1px solid rgba(0, 229, 255, 0.25) !important;
    border-radius: 20px !important;
    padding: 20px !important;
    margin-top: 12px !important;
    transition: all 0.2s !important;
}

.camara-section:hover {
    border-color: rgba(0, 229, 255, 0.5) !important;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.08) !important;
}

#perifoneoFields,
#edit_perifoneoFields {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(168, 85, 247, 0.05)) !important;
    border: 1px solid rgba(0, 229, 255, 0.25) !important;
    border-radius: 20px !important;
    padding: 20px !important;
    margin-top: 12px !important;
    transition: all 0.2s !important;
}

#perifoneoFields:hover,
#edit_perifoneoFields:hover {
    border-color: rgba(0, 229, 255, 0.5) !important;
}

h6.mb-3 {
    color: #00e5ff !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    letter-spacing: 1px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

h6.mb-3 i {
    font-size: 1.1rem !important;
}

hr {
    border: none !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.3), transparent) !important;
    margin: 1rem 0 !important;
}

/* ==================== EVENTOS ==================== */
.evento-lista {
    max-height: 320px;
    overflow-y: auto;
    padding: 4px;
}

.evento-item {
    background: rgba(15, 23, 42, 0.95) !important;
    border-radius: 14px !important;
    padding: 14px !important;
    margin-bottom: 10px !important;
    border-left: 4px solid !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.evento-item:hover {
    transform: translateX(6px) !important;
    background: rgba(0, 229, 255, 0.12) !important;
    border-left-color: #00e5ff !important;
}

.evento-item .badge {
    font-size: 0.7rem !important;
    padding: 4px 10px !important;
    font-weight: 600 !important;
}

.evento-item .badge.bg-danger {
    background: #ef4444 !important;
    color: white !important;
}

.evento-item .badge.bg-warning {
    background: #f59e0b !important;
    color: #0a0c15 !important;
}

.evento-item .badge.bg-info {
    background: #3b82f6 !important;
    color: white !important;
}

.evento-item small {
    color: #94a3b8 !important;
    font-size: 0.7rem !important;
}

.evento-item .small.mt-1 {
    color: #cbd5e1 !important;
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
}

/* ==================== MAPA Y CÁMARA ==================== */
.mapa-container {
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 229, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
}

.camara-container {
    min-height: 360px;
    background: #0a0c15;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 229, 255, 0.2);
    overflow-y: auto;
    position: relative;
}

/* ==================== ESTADÍSTICAS ==================== */
.card-stats {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(168, 85, 247, 0.08));
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.card-stats:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 229, 255, 0.45);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.15);
}

.card-stats i {
    font-size: 2.2rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #00e5ff, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00e5ff, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 5px;
}

/* ==================== GALERÍA DE EVENTOS ==================== */
.evento-card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.evento-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 229, 255, 0.2);
    border-color: rgba(0, 229, 255, 0.45);
}

.evento-imagen {
    height: 260px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.3s;
}

.evento-card:hover .evento-imagen {
    transform: scale(1.02);
}

.evento-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.evento-info {
    padding: 16px;
}

.evento-titulo {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 6px;
    color: #00e5ff;
}

.evento-descripcion {
    font-size: 0.8rem;
    color: #cbd5e1;
    margin-bottom: 10px;
    line-height: 1.4;
}

.evento-fecha {
    font-size: 0.7rem;
    color: #94a3b8;
}

/* ==================== CENTRALES ==================== */
.central-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 16px;
    transition: all 0.3s;
    color: #e2e8f0;
}

.central-card:hover {
    transform: translateX(6px);
    border-color: rgba(0, 229, 255, 0.45);
    box-shadow: 0 5px 20px rgba(0, 229, 255, 0.1);
}

.central-card strong {
    color: #00e5ff;
    font-size: 1rem;
}

.central-card .small {
    color: #94a3b8;
}

.central-card .badge {
    font-size: 0.7rem;
    padding: 4px 10px;
}

/* ==================== MODALES ==================== */
.modal-content {
    background: linear-gradient(135deg, #0f1222, #0a0c15);
    border: 1px solid rgba(0, 229, 255, 0.4);
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 229, 255, 0.25);
    padding: 1.2rem 1.8rem;
    background: rgba(0, 229, 255, 0.05);
}

.modal-header .modal-title {
    background: linear-gradient(135deg, #00e5ff, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    font-size: 1.25rem;
}

.modal-footer {
    border-top: 1px solid rgba(0, 229, 255, 0.25);
    padding: 1rem 1.8rem;
    background: rgba(0, 229, 255, 0.03);
}

.modal-body {
    color: #e2e8f0;
    padding: 1.5rem;
}

/* ==================== TABLA REPORTES ==================== */
.table-dark {
    background-color: transparent !important;
    color: #e2e8f0 !important;
}

.table-dark thead th {
    background: #0f1222 !important;
    border-bottom: 2px solid #00e5ff !important;
    color: #00e5ff !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 12px !important;
}

.table-dark tbody tr {
    border-bottom: 1px solid rgba(0, 229, 255, 0.1) !important;
    transition: all 0.2s !important;
}

.table-dark tbody tr:hover {
    background: rgba(0, 229, 255, 0.08) !important;
}

.table-dark td {
    padding: 10px 12px !important;
    color: #e2e8f0 !important;
    font-size: 0.85rem !important;
}

.table-dark td:first-child {
    color: #00e5ff !important;
    font-weight: 500 !important;
}

/* ==================== LOGS ==================== */
.log-container {
    background: rgba(0, 0, 0, 0.5) !important;
    border-radius: 14px !important;
    padding: 8px !important;
    max-height: 220px !important;
    overflow-y: auto !important;
}

.log-mensaje {
    padding: 8px 12px !important;
    border-bottom: 1px solid rgba(0, 229, 255, 0.08) !important;
    font-size: 11px !important;
    font-family: 'Courier New', monospace !important;
    border-radius: 8px !important;
    color: #e2e8f0;
}

.log-alarma {
    color: #f87171 !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

.log-exito {
    color: #4ade80 !important;
    background: rgba(16, 185, 129, 0.1) !important;
}

.log-falla {
    color: #fbbf24 !important;
    background: rgba(245, 158, 11, 0.1) !important;
}

.log-info {
    color: #94a3b8 !important;
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 229, 255, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00e5ff, #a855f7);
    border-radius: 10px;
}

/* ==================== LOGIN ==================== */
.login-body {
    margin: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 30% 40%, #0a0c15, #02040a);
    position: relative;
    overflow: hidden;
}

.login-body::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.05) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.login-box {
    position: relative;
    background: rgba(5, 7, 15, 0.9);
    backdrop-filter: blur(20px);
    padding: 2.8rem 2.2rem;
    border-radius: 32px;
    width: 100%;
    max-width: 440px;
    border: 1px solid rgba(0, 229, 255, 0.35);
    box-shadow: 0 0 60px rgba(0, 229, 255, 0.15);
    transition: 0.35s ease;
    z-index: 1;
}

.login-box:hover {
    box-shadow: 0 0 80px rgba(0, 229, 255, 0.25);
}

.login-brand-logo {
    width: 300px;
    max-width: 200%;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.5));
}

.login-brand-title {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #00e5ff, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.login-form-control {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 229, 255, 0.35);
    color: #e2e8f0;
    border-radius: 14px;
    padding: 0.9rem 1.2rem;
    width: 100%;
    transition: 0.3s;
}

.login-form-control:focus {
    outline: none;
    border-color: #00e5ff;
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15);
}

.login-btn-custom {
    width: 100%;
    padding: 0.9rem;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #00e5ff, #3b82f6);
    color: #0a0c15;
    transition: 0.3s;
    cursor: pointer;
    margin-top: 0.5rem;
}

.login-btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.4);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .sidebar {
        width: 260px;
    }

    .main-content {
        margin-left: 260px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 260px;
    }

    .main-content {
        margin-left: 0;
        padding: 16px;
        padding-top: 70px;
    }

    .menu-toggle {
        left: 16px;
        top: 16px;
        width: 44px;
        height: 44px;
    }

    .evento-imagen {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 12px;
        padding-top: 65px;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .evento-imagen {
        height: 180px;
    }
}

/* ==================== UTILIDADES ==================== */
.text-gradient {
    background: linear-gradient(135deg, #00e5ff, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.badge {
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.7rem;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.02);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.pulse-animation {
    animation: pulse 1.5s infinite;
}

/* ==================== CENTRALES OFFLINE ==================== */
.offline-lista {
    max-height: 220px;
    overflow-y: auto;
    padding: 4px;
}

.offline-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: rgba(239, 68, 68, 0.15) !important;
    border-left: 4px solid #ef4444 !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    margin-bottom: 10px !important;
    transition: all 0.2s ease !important;
}

.offline-item:hover {
    background: rgba(239, 68, 68, 0.25) !important;
    transform: translateX(5px) !important;
}

.offline-nombre {
    font-weight: 700 !important;
    color: #f87171 !important;
    font-size: 0.9rem !important;
    margin-bottom: 4px !important;
}

.offline-item .small {
    color: #94a3b8 !important;
    font-size: 0.7rem !important;
}

.offline-item .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #06b6d4) !important;
    border: none !important;
    padding: 6px 14px !important;
    font-size: 0.7rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}

.offline-item .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
}

/* ==================== PANEL DE CONTROL RÁPIDO ==================== */
.card-body h6 {
    color: #00e5ff !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    margin: 12px 0 8px 0 !important;
    letter-spacing: 0.5px !important;
}

.card-body hr {
    border: none !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.3), transparent) !important;
    margin: 12px 0 !important;
}

.btn-rapido {
    font-weight: 700 !important;
    padding: 10px !important;
    border-radius: 12px !important;
    transition: all 0.2s ease !important;
}

.btn-rapido:hover {
    transform: translateY(-2px) !important;
}

.btn-rapido.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3) !important;
    color: white !important;
}

.btn-rapido.btn-secondary {
    background: linear-gradient(135deg, #475569, #334155) !important;
    border: 1px solid rgba(0, 229, 255, 0.3) !important;
    color: #e2e8f0 !important;
}

.btn-rapido.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #0a0c15 !important;
    font-weight: 700 !important;
}

/* ==================== PERIFONEO ==================== */
#perifoneoDevice,
#perifoneoMic {
    background: #0a0c15 !important;
    border: 1px solid rgba(0, 229, 255, 0.4) !important;
    color: #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
}

#perifoneoDevice option,
#perifoneoMic option {
    background: #0f1222 !important;
    color: #e2e8f0 !important;
}

#btnPerifoneoStart {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border: none !important;
    font-weight: 600 !important;
    color: white !important;
}

#btnPerifoneoStart:hover:not(:disabled) {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4) !important;
}

#btnPerifoneoStop {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    border: none !important;
    font-weight: 600 !important;
    color: white !important;
}

#btnPerifoneoStop:hover:not(:disabled) {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4) !important;
}

#btnPerifoneoTest {
    background: linear-gradient(135deg, #3b82f6, #06b6d4) !important;
    border: none !important;
    font-weight: 600 !important;
    color: white !important;
}

#btnPerifoneoTest:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
}

#btnPerifoneoStart:disabled,
#btnPerifoneoStop:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

#perifoneoStatus {
    margin-top: 8px !important;
    font-size: 0.7rem !important;
    padding: 4px !important;
    border-radius: 8px !important;
    color: #e2e8f0;
}

#vuMeter .progress {
    background: #1e293b !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

#vuMeter .progress-bar {
    transition: width 0.05s linear !important;
}

#inputLevel {
    color: #94a3b8 !important;
    font-size: 0.65rem !important;
    margin-top: 4px !important;
}

/* ==================== BOTONES DE ZONAS Y SALIDAS ==================== */
#botonesZonas .btn-outline-primary {
    background: rgba(59, 130, 246, 0.15) !important;
    border: 1px solid rgba(59, 130, 246, 0.5) !important;
    color: #60a5fa !important;
    font-weight: 600 !important;
    font-size: 0.7rem !important;
    padding: 5px 10px !important;
    border-radius: 8px !important;
}

#botonesZonas .btn-outline-primary:hover {
    background: #3b82f6 !important;
    color: white !important;
    transform: translateY(-2px) !important;
}

#botonesSalidas .btn-outline-warning {
    background: rgba(245, 158, 11, 0.15) !important;
    border: 1px solid rgba(245, 158, 11, 0.5) !important;
    color: #fbbf24 !important;
    font-weight: 600 !important;
    font-size: 0.7rem !important;
    padding: 5px 10px !important;
    border-radius: 8px !important;
}

#botonesSalidas .btn-outline-warning:hover {
    background: #f59e0b !important;
    color: #0a0c15 !important;
    transform: translateY(-2px) !important;
}

/* ==================== ANIMACIONES ==================== */
.btn-rapido:active {
    transform: scale(0.98) !important;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ==================== ESTILOS PETS ==================== */
.animal-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(10, 14, 23, 0.9));
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s;
    cursor: pointer;
}

.animal-card:hover {
    transform: translateY(-5px);
    border-color: #00e5ff;
    box-shadow: 0 10px 25px rgba(0, 229, 255, 0.2);
}

.animal-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00e5ff, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.status-badge-online {
    background: #10b981;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
}

.status-badge-offline {
    background: #6b7280;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
}

.status-badge-alert {
    background: #ef4444;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    animation: pulse 1s infinite;
}

.stats-card-animal {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 16px;
    padding: 15px;
    text-align: center;
}

.stats-number-animal {
    font-size: 1.8rem;
    font-weight: 700;
    color: #00e5ff;
}

.geofence-card {
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid #ef4444;
    border-radius: 12px;
    padding: 10px;
    margin-top: 8px;
}

.mapa-ganado {
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.custom-marker-animal {
    background: transparent;
    border: none;
}

/* ==================== DASHBOARD CLIENTE PETS ==================== */
.animal-card-cliente {
    background: rgba(15, 23, 42, 0.85);
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid rgba(0, 229, 255, 0.15);
    transition: all 0.2s;
}

.animal-avatar-cliente {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00e5ff, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(5, 7, 15, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 229, 255, 0.2);
    padding: 10px 20px;
    display: flex;
    justify-content: space-around;
    z-index: 1000;
}

.bottom-nav a {
    color: #64748b;
    text-decoration: none;
    text-align: center;
    font-size: 0.7rem;
    transition: all 0.2s;
}

.bottom-nav a.active {
    color: #00e5ff;
}

.bottom-nav i {
    font-size: 1.4rem;
    display: block;
    margin-bottom: 2px;
}

.mapa-cliente {
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 15px;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.status-online {
    background: #10b981;
    color: white;
}

.status-alert {
    background: #ef4444;
    color: white;
    animation: pulse 1s infinite;
}

.status-offline {
    background: #6b7280;
    color: white;
}

/* ==================== NOTIFICACIONES ==================== */
.notificacion-badge {
    position: relative;
    display: inline-block;
}

.notificacion-badge .badge-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: pulse 1s infinite;
}

/* ==================== MAPA Y MARCACIONES ==================== */
.marker-online {
    background-color: #10b981;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    animation: pulse-green 1.5s infinite;
}

.marker-offline {
    background-color: #6b7280;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.marker-evento-rojo {
    background-color: #ef4444;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.8);
    animation: pulse-red 1s infinite;
}

.marker-evento-amarillo {
    background-color: #f59e0b;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.7);
    animation: pulse-yellow 1.2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

@keyframes pulse-yellow {
    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);
    }
}

.custom-popup {
    min-width: 220px;
    background: #1e293b;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}

.custom-popup .popup-header {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-popup .popup-header h6 {
    margin: 0;
    color: #00e5ff;
    font-weight: 700;
}

.custom-popup .popup-body {
    padding: 12px;
    color: #e2e8f0;
}

.custom-popup .popup-footer {
    padding: 8px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 8px;
}

.badge-online {
    background: #10b981;
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge-offline {
    background: #6b7280;
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge-alarma {
    background: #ef4444;
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    animation: pulse-red 1s infinite;
}

/* ==================== MODALES DE ASIGNACIÓN ==================== */
.modal .tecnico-item,
.modal .central-item {
    background: rgba(15, 23, 42, 0.95) !important;
    border: 1px solid rgba(0, 229, 255, 0.25) !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    margin-bottom: 10px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.modal .tecnico-item:hover,
.modal .central-item:hover {
    background: rgba(0, 229, 255, 0.12) !important;
    border-color: #00e5ff !important;
    transform: translateX(4px) !important;
}

.modal .tecnico-item.selected,
.modal .central-item.selected {
    background: rgba(0, 229, 255, 0.2) !important;
    border-color: #00e5ff !important;
    border-left: 3px solid #00e5ff !important;
}

.modal .tecnico-item strong,
.modal .central-item strong {
    color: #00e5ff !important;
    font-size: 0.9rem !important;
}

.modal .tecnico-item .text-muted,
.modal .central-item .text-muted {
    color: #94a3b8 !important;
    font-size: 0.7rem !important;
}

.modal .tecnico-item .badge,
.modal .central-item .badge {
    background: #3b82f6 !important;
    color: white !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    font-size: 0.7rem !important;
}

.modal .central-asignada {
    background: rgba(16, 185, 129, 0.15) !important;
    border-left: 4px solid #10b981 !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    margin-bottom: 8px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.modal .central-asignada strong {
    color: #10b981 !important;
}

.modal .central-asignada .badge {
    background: #10b981 !important;
    font-size: 0.65rem !important;
}

.modal .btn-outline-danger {
    border: 1px solid #ef4444 !important;
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    padding: 4px 12px !important;
    font-size: 0.7rem !important;
    border-radius: 8px !important;
}

.modal .btn-outline-danger:hover {
    background: #ef4444 !important;
    color: white !important;
}

/* ==================== ESTILOS APPS MÓVILES ==================== */
.mobile-app {
    background: radial-gradient(ellipse at 20% 30%, #0a0c15, #05070f);
    min-height: 100vh;
}

.mobile-status-card {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
}

.mobile-status-armado {
    border: 2px solid #ef4444;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.25);
}

.mobile-status-desarmado {
    border: 2px solid #10b981;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.15);
}

.mobile-btn-puerta {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 80px;
    padding: 20px 30px;
    font-size: 1.3rem;
    font-weight: 700;
    transition: all 0.2s;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
    color: white;
}

.mobile-btn-puerta:active {
    transform: scale(0.96);
}

.mobile-btn-control {
    border-radius: 20px;
    padding: 16px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s;
    width: 100%;
}

.mobile-stats-card {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 16px;
    text-align: center;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.mobile-stats-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00e5ff, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mobile-evento-item {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
    color: #e2e8f0;
}

.mobile-evento-alarma {
    border-left-color: #ef4444;
}

.mobile-evento-acceso {
    border-left-color: #10b981;
}

.mobile-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.mobile-badge-success {
    background: #10b981;
    color: white;
}

.mobile-badge-danger {
    background: #ef4444;
    color: white;
}

.mobile-badge-warning {
    background: #f59e0b;
    color: #0a0c15;
}

.mobile-badge-info {
    background: #3b82f6;
    color: white;
}

.mobile-input,
.mobile-input:focus {
    background: #0a0c15 !important;
    border: 1px solid rgba(0, 229, 255, 0.4) !important;
    color: #ffffff !important;
    border-radius: 14px !important;
    padding: 12px 16px !important;
    font-size: 0.9rem !important;
}

.mobile-input::placeholder {
    color: #64748b !important;
}

.mobile-select {
    background: #0a0c15 !important;
    border: 1px solid rgba(0, 229, 255, 0.4) !important;
    color: #ffffff !important;
    border-radius: 14px !important;
    padding: 12px 16px !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
}

.mobile-nav-pills .nav-link {
    background: rgba(15, 23, 42, 0.7);
    border-radius: 30px;
    margin: 0 6px;
    padding: 10px 20px;
    color: #94a3b8;
    font-weight: 600;
    transition: all 0.2s;
}

.mobile-nav-pills .nav-link.active {
    background: linear-gradient(135deg, #00e5ff, #3b82f6);
    color: #0a0c15;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.mobile-card {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 24px;
    overflow: hidden;
}

.mobile-card-header {
    background: rgba(0, 229, 255, 0.08);
    border-bottom: 1px solid rgba(0, 229, 255, 0.15);
    padding: 14px 18px;
    font-weight: 700;
    color: #00e5ff;
}

.mobile-card-body {
    padding: 16px;
    color: #e2e8f0;
}

.mobile-app-header {
    background: rgba(5, 7, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 229, 255, 0.25);
    padding: 16px 20px;
    border-radius: 0 0 28px 28px;
    margin-bottom: 20px;
}

.mobile-logo {
    width: 300px;
    filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.5));
}

.mobile-central-badge {
    background: rgba(0, 229, 255, 0.15);
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 0.75rem;
    display: inline-block;
    color: #e2e8f0;
}

.mobile-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00e5ff, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mobile-subtitle {
    color: #94a3b8;
    font-size: 0.85rem;
}

.mobile-status-text {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 12px;
}

.mobile-status-text-armado {
    color: #ef4444;
}

.mobile-status-text-desarmado {
    color: #10b981;
}

.mobile-container {
    padding: 20px 16px 30px;
    max-width: 600px;
    margin: 0 auto;
}

@keyframes mobilePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

.mobile-btn-panico {
    animation: mobilePulse 1.5s infinite;
}

.mobile-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    backdrop-filter: blur(12px);
    color: white;
    padding: 12px 24px;
    border-radius: 60px;
    z-index: 10000;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 229, 255, 0.3);
    animation: mobileSlideUp 0.3s ease;
}

@keyframes mobileSlideUp {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.mobile-scroll {
    max-height: 400px;
    overflow-y: auto;
}

.mobile-logout-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 30px;
    padding: 6px 14px;
    color: #f87171;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.mobile-logout-btn:hover {
    background: #ef4444;
    color: white;
}

/* Responsive móviles pequeños */
@media (max-width: 576px) {
    .mobile-btn-puerta {
        padding: 16px 24px;
        font-size: 1.1rem;
    }

    .mobile-btn-control {
        padding: 12px;
        font-size: 0.85rem;
    }

    .mobile-stats-number {
        font-size: 1.5rem;
    }

    .mobile-status-text {
        font-size: 1.1rem;
    }

    .mobile-container {
        padding: 16px 12px 25px;
    }

    .mobile-app-header {
        padding: 12px 16px;
    }

    .mobile-logo {
        width: 45px;
    }

    .mobile-nav-pills .nav-link {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .mobile-toast {
        padding: 10px 18px;
        font-size: 0.85rem;
        white-space: normal;
        text-align: center;
        max-width: 90%;
    }
}

@media (max-width: 380px) {
    .mobile-stats-number {
        font-size: 1.2rem;
    }

    .mobile-btn-control {
        padding: 10px;
        font-size: 0.75rem;
    }

    .mobile-central-badge {
        font-size: 0.65rem;
        padding: 4px 12px;
    }
}

/* ==================== INPUTS DE HORA EN FORMULARIOS ==================== */
.horario-input {
    background: #0a0c15 !important;
    border: 1px solid rgba(0, 229, 255, 0.4) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 0.6rem 0.8rem !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    width: 100%;
}

.horario-input:focus {
    border-color: #00e5ff !important;
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.2) !important;
    outline: none !important;
}

.horario-input::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.5);
    cursor: pointer;
    opacity: 0.7;
}

.horario-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* ==================== MODALES CON INPUTS DE HORA ==================== */
.modal input[type="time"],
.modal input[type="date"],
.modal input[type="datetime-local"] {
    background: #0a0c15 !important;
    border: 1px solid rgba(0, 229, 255, 0.4) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 0.7rem 1rem !important;
    font-size: 0.85rem !important;
}

.modal input[type="time"]:focus,
.modal input[type="date"]:focus {
    border-color: #00e5ff !important;
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.15) !important;
}

.modal input[type="time"]::-webkit-calendar-picker-indicator,
.modal input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.5);
    cursor: pointer;
}

/* Estilos para el modal de track */
#modalTrackFull .modal-dialog {
    max-width: 90vw;
    width: 90vw;
    height: 80vh;
}

#modalTrackFull .modal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#modalTrackFull .modal-body {
    flex: 1;
    padding: 0;
    min-height: 500px;
}

#fullTrackMap {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border-radius: 0;
}

/* Asegurar que el contenedor del mapa tenga tamaño */
#trackMapFull,
#fullTrackMap {
    width: 100%;
    height: 400px;
    background-color: #1a1f35;
}

/* Estilos para los marcadores animados */
.marker-start,
.marker-end,
.marker-point {
    background: transparent !important;
    border: none !important;
}

.animated-car {
    background: transparent !important;
    border: none !important;
    font-size: 24px !important;
    text-shadow: 0 0 5px #00e5ff !important;
}
/* vertical de energy*/
/* ==================== VERTICAL ENERGY - RKT ==================== */
.energy-stats-card {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(168, 85, 247, 0.08));
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 20px;
    padding: 18px;
    transition: all 0.3s;
}

.energy-stats-card:hover {
    transform: translateY(-4px);
    border-color: #00e5ff;
    box-shadow: 0 10px 25px rgba(0, 229, 255, 0.15);
}

.energy-stats-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00e5ff, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.energy-gauge {
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.energy-chip {
    display: inline-block;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 30px;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #00e5ff;
}

.energy-badge-online {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.energy-badge-offline {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.energy-badge-alarm {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    animation: pulse-red 1s infinite;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.energy-badge-closed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.energy-badge-open {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.energy-table {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 20px;
    overflow: hidden;
}

.energy-table thead th {
    background: rgba(0, 229, 255, 0.1);
    padding: 12px 16px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #00e5ff;
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
}

.energy-table tbody td {
    padding: 10px 16px;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(0, 229, 255, 0.05);
}

.energy-table tbody tr:hover {
    background: rgba(0, 229, 255, 0.05);
}

.energy-map {
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

@keyframes energy-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.energy-warning {
    color: #f59e0b;
    animation: energy-pulse 1.5s infinite;
}