/* ========================================
   PERSONALIZACIÓN CONTEO PERSONAS
   Diseño Moderno 2026
   ======================================== */

/* ===== SIDEBAR ===== */
.sidebar {
    background: linear-gradient(180deg, #004d5c 0%, #00829b 50%, #00a3c4 100%) !important;
    box-shadow: 2px 0 10px rgba(0, 130, 155, 0.15);
}

.sidebar-brand {
    height: 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 15px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-minimizer {
    background-color: #004d5c !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    border-left: 3px solid transparent !important;
    transition: all 0.3s ease !important;
    margin: 2px 0 !important;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-left-color: #ffffff !important;
    transform: translateX(3px);
}

.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    border-left-color: #ffffff !important;
    font-weight: 600;
}

.sidebar .nav-icon {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ===== HEADER ===== */
.app-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e4e7ea !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.app-header .navbar-brand img {
    max-width: 180px !important;
    max-height: 45px !important;
}

/* ===== CARDS ESTADÍSTICAS ===== */
.card {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0, 130, 155, 0.15) !important;
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, #00829b 0%, #00a3c4 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 1.25rem !important;
    font-weight: 600 !important;
}

.card-body {
    padding: 1.5rem !important;
}

/* Cards de colores - Modernos */
.bg-primary {
    background: linear-gradient(135deg, #00829b 0%, #00a3c4 100%) !important;
}

.bg-success {
    background: linear-gradient(135deg, #2eb85c 0%, #45c377 100%) !important;
}

.bg-warning {
    background: linear-gradient(135deg, #f9b115 0%, #ffc107 100%) !important;
}

.bg-danger {
    background: linear-gradient(135deg, #e55353 0%, #ef5350 100%) !important;
}

.bg-info {
    background: linear-gradient(135deg, #00a3c4 0%, #20c9e3 100%) !important;
}

/* ===== BOTONES ===== */
.btn-primary {
    background: linear-gradient(135deg, #00829b 0%, #00a3c4 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.6rem 1.5rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 130, 155, 0.25) !important;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 130, 155, 0.35) !important;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #515a5d !important;
    border: none !important;
    border-radius: 8px !important;
}

.btn-outline-primary {
    color: #00829b !important;
    border-color: #00829b !important;
    border-radius: 8px !important;
}

.btn-outline-primary:hover {
    background: #00829b !important;
    color: #ffffff !important;
}

/* ===== TABLAS ===== */
.table {
    border-radius: 8px !important;
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7ea 100%) !important;
    color: #515a5d !important;
    font-weight: 600 !important;
    border: none !important;
    padding: 1rem !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: all 0.2s ease !important;
}

.table tbody tr:hover {
    background: #f5f7fa !important;
    transform: scale(1.01);
}

.table-striped tbody tr:nth-of-type(odd) {
    background: #fafbfc !important;
}

/* ===== FORMULARIOS ===== */
.form-control {
    border-radius: 8px !important;
    border: 1px solid #e4e7ea !important;
    padding: 0.6rem 1rem !important;
    transition: all 0.3s ease !important;
}

.form-control:focus {
    border-color: #00829b !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 130, 155, 0.15) !important;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background: transparent !important;
    padding: 0.75rem 0 !important;
}

.breadcrumb-item.active {
    color: #00829b !important;
}

/* ===== BADGES ===== */
.badge-primary {
    background: #00829b !important;
}

.badge-success {
    background: #2eb85c !important;
}

.badge-warning {
    background: #f9b115 !important;
}

.badge-danger {
    background: #e55353 !important;
}

/* ===== PROGRESS BARS ===== */
.progress {
    height: 8px !important;
    border-radius: 10px !important;
    background: #e4e7ea !important;
}

.progress-bar {
    background: linear-gradient(90deg, #00829b 0%, #00a3c4 100%) !important;
    border-radius: 10px !important;
}

/* ===== ALERTS ===== */
.alert {
    border-radius: 8px !important;
    border: none !important;
}

.alert-primary {
    background: rgba(0, 130, 155, 0.1) !important;
    color: #004d5c !important;
}

/* ===== DROPDOWNS ===== */
.dropdown-menu {
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
}

.dropdown-item:hover {
    background: rgba(0, 130, 155, 0.08) !important;
    color: #00829b !important;
}

/* ===== CHARTS (Gráficos) ===== */
.chart-wrapper {
    border-radius: 8px !important;
    padding: 1rem !important;
}

/* ===== TEXTO Y TÍTULOS ===== */
.text-primary {
    color: #00829b !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #515a5d !important;
    font-weight: 600 !important;
}

.text-muted {
    color: #8c98a4 !important;
}

/* ===== ANIMACIONES SUAVES ===== */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

/* ===== SCROLLBAR PERSONALIZADO ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f7fa;
}

::-webkit-scrollbar-thumb {
    background: #00829b;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #006a7f;
}

/* Logo en sidebar con CSS */
.sidebar-brand::before {
    content: '' !important;
    display: block !important;
    width: 160px !important;
    height: 50px !important;
    background-image: url('assets/img/brand/logo_syscount.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    filter: brightness(0) invert(1); /* Hace el logo blanco */
}

.sidebar-brand img {
    display: none !important;
}
