/* ==========================================================================
   SECUREFLOW ENTERPRISE - CLOUD EXECUTIVE STYLES
   ========================================================================== */

* {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
    background: rgba(51, 65, 85, 0.8);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 1);
}

/* KPI Cards */
.kpi-card {
    background-color: rgb(15 23 42 / 0.9);
    backdrop-filter: blur(8px);
    border-width: 1px;
    border-radius: 1rem;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.kpi-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgb(148 163 184);
}

.kpi-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

/* Navigation Tabs */
.nav-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgb(148 163 184);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.nav-tab:hover {
    color: rgb(241 245 249);
    background: rgba(30, 41, 59, 0.7);
}

.nav-tab.active {
    color: #ffffff;
    background: rgb(30 41 59);
    border-color: rgb(51 65 85);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.125rem 0.375rem;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 9999px;
    background-color: rgb(51 65 85);
    color: rgb(226 232 240);
}

/* Filter Chips */
.filter-chip {
    padding: 0.25rem 0.625rem;
    border-radius: 0.5rem;
    font-weight: 600;
    color: rgb(148 163 184);
    background: transparent;
    cursor: pointer;
}

.filter-chip:hover {
    color: #ffffff;
}

.filter-chip.active {
    background: rgb(51 65 85);
    color: #ffffff;
}

/* Content Tabs */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Badges de Categoría */
.badge-personal {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-visita {
    background-color: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-proveedor {
    background-color: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Print Stylesheet para Reportes Ejecutivos */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    header, footer, #loginSection, #autoRefreshSelect, #manualSyncBtn, .filter-chip, input, select {
        display: none !important;
    }
    .kpi-card, .bg-slate-900 {
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        color: #0f172a !important;
        box-shadow: none !important;
    }
    .text-white, .text-slate-100, .text-slate-300 {
        color: #0f172a !important;
    }
    .text-slate-400, .text-slate-500 {
        color: #475569 !important;
    }
    table {
        border-collapse: collapse !important;
        width: 100% !important;
    }
    th, td {
        border-bottom: 1px solid #e2e8f0 !important;
        color: #0f172a !important;
    }
}
