/* CRM OHMYC - Hoja de Estilos Personalizada */

/* Estilos de scrollbar premium */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #090d16;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Efecto Glassmorphism */
.glass-panel {
    background: rgba(17, 25, 40, 0.65);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
}

.glass-card {
    background: rgba(25, 35, 55, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(25, 35, 55, 0.6);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(59, 130, 246, 0.15);
}

/* Inputs y Selects */
.glass-input {
    background: rgba(10, 15, 28, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f3f4f6;
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    transition: all 0.2s ease;
}

.glass-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    background: rgba(10, 15, 28, 0.8);
}

/* Tablas Premium */
.glass-table {
    width: 100%;
    border-collapse: collapse;
}

.glass-table th {
    background: rgba(10, 15, 28, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.875rem 1rem;
    text-align: left;
}

.glass-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
    color: #d1d5db;
}

.glass-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Botones Premium */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.35);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.5);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.35);
    transition: all 0.2s ease;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.5);
}

/* Clases de utilidad para mapas de Leaflet */
#map {
    height: 100%;
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #090d16;
}

/* Estilos de Popups de Leaflet para combinar con Dark Mode */
.leaflet-popup-content-wrapper {
    background: #0d1424 !important;
    color: #f3f4f6 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0.5rem !important;
}
.leaflet-popup-tip {
    background: #0d1424 !important;
}

/* Badges */
.badge-pending {
    background: rgba(249, 115, 22, 0.15);
    color: #ffedd5;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #d1fae5;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fee2e2;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: #dbeafe;
    border: 1px solid rgba(59, 130, 246, 0.3);
}