/* =====================================================
   HCM System AR
   Estilos Globales
===================================================== */

/* Tipografia */
body {
    font-family: "Inter", "Segoe UI", sans-serif;
    background: #f4f6f9;
    color: #374151;
}

/* Logo */
.brand-link {
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-size: 1.1rem;
}

/* Navbar */
.app-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

/* Sidebar */

.app-sidebar {
    background: #1f2937 !important;
}

.app-sidebar .nav-link {
    color: #d1d5db;
    border-radius: 8px;
    margin: 4px 10px;
    transition: .2s;
}

.app-sidebar .nav-link:hover {
    background: #2563eb;
    color: white;
}

.app-sidebar .nav-link.active {
    background: #1d4ed8;
    color: white;
}

/* Submenus */

.nav-treeview .nav-link {
    padding-left: 40px;
    font-size: .95rem;
}

/* Contenido */

.app-content {
    padding: 25px;
}

/* Cards */

.card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
}

/* Botones */

.btn {
    border-radius: 10px;
}

/* Tablas */

.table {
    vertical-align: middle;
}

/* Footer */

.app-footer {
    background: white;
    border-top: 1px solid #dee2e6;
    padding: 12px 20px;
}

/* Breadcrumb */

.breadcrumb {
    margin-bottom: 0;
}

/* Titulos */

.page-title {
    font-size: 1.6rem;
    font-weight: 600;
}

/* Responsive */

@media (max-width:768px){

    .app-content{

        padding:15px;

    }

}

/* =====================================================
   Dashboard - KPI Cards
===================================================== */

.hcm-stat-card {
    transition: transform .15s ease, box-shadow .15s ease;
}

.hcm-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.10) !important;
}

/* =====================================================
   Dashboard - Widget de crecimiento (Nuevos Clientes)
===================================================== */

.hcm-growth-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #0d9488 100%);
    border-radius: 16px;
    overflow: hidden;
}

.hcm-growth-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    flex-shrink: 0;
}

.hcm-growth-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hcm-growth-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    padding: 8px 14px;
    color: white;
    font-size: .85rem;
    font-weight: 600;
}

.hcm-growth-chip small {
    color: rgba(255,255,255,.65);
    font-weight: 400;
    margin-left: 4px;
}

/* =====================================================
   Dashboard - Timeline de actividad reciente
===================================================== */

.hcm-timeline {
    position: relative;
}

.hcm-timeline-item {
    display: flex;
    gap: 14px;
    padding-bottom: 18px;
    position: relative;
}

.hcm-timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 36px;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.hcm-timeline-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .95rem;
}

/* =====================================================
   Dashboard - Accesos rapidos
===================================================== */

.hcm-quick-action {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: .85rem;
    color: white;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.hcm-quick-action:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,.15);
}

.hcm-quick-action i { font-size: 1.5rem; }

.hcm-quick-action--primary { background: #2563eb; }
.hcm-quick-action--success { background: #16a34a; }
.hcm-quick-action--warning { background: #d97706; }
.hcm-quick-action--info { background: #0891b2; }