/*
 # ########*###########################
 Autor: José Luis Rodriguez
 Mail: jrodriguez@bincodex.com
 Web: https://bincodex.com
 Fecha: 2026-07-23 21:28:56
 Archivo: 04-dashboard.css
 Codificación: UTF-8
 Editado en: Kate 25.04.3
 ####################################
 */



.dashboard-content {
	width: 80%;
	margin: 0 auto;
	padding: 50px 0px;
}


/* Utilidades */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}

.text-muted { color: #8c8c8c; font-size: 14px; }
.text-small { font-size: 13px; }
.success-text { color: #44c76c; font-weight: 600; }
.info-text { color: #a1a1a1; }
.card-header-with-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.view-all {
    color: #3b82f6;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

/* --- Header del Dashboard --- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.welcome-user h1 { font-size: 24px; font-weight: 700; }
.welcome-user p { font-size: 15px; color: #666; margin-top: 2px; }

.user-profile-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification-icon {
    font-size: 20px;
    color: #666;
    position: relative;
}
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar-group {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background-color: #e5e7eb; /* Placeholder */
    object-fit: cover;
}
.user-name { font-weight: 500; font-size: 14px; }

/* --- Grid de kPIs --- */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.kpi-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.kpi-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.kpi-icon-container {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.kpi-card h3 { font-size: 14px; color: #333; font-weight: 600; }
.kpi-value { font-size: 28px; font-weight: 700; display: inline; }
.kpi-stat-label { margin-left: 8px; }
.mini-chart-placeholder {
    height: 30px; margin-top: 15px;
    border-bottom: 2px solid;
    opacity: 0.2;
}

/* Estilos específicos para cada KPI */
.kpi-blue .kpi-icon-container { background-color: #dbeafe; color: #2563eb; }
.kpi-blue .mini-chart-placeholder { border-color: #2563eb; }

.kpi-orange .kpi-icon-container { background-color: #ffedd5; color: #f97316; }
.kpi-orange .mini-chart-placeholder { border-color: #f97316; }

.kpi-green .kpi-icon-container { background-color: #d1fae5; color: #059669; }
.kpi-green .mini-chart-placeholder { border-color: #059669; }

.kpi-purple .kpi-icon-container { background-color: #ede9fe; color: #7c3aed; }
.kpi-purple .mini-chart-placeholder { border-color: #7c3aed; }


/* --- Sección Central --- */
.middle-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

/* Gráfico de Tasa */
.rate-chart-container {
    display: flex;
    gap: 30px;
    align-items: center;
}
.circle-chart-wrapper {
    position: relative;
    width: 140px; height: 140px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border: 12px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
}
.circle-percentage { font-size: 24px; font-weight: 700; }
.circle-label { font-size: 11px; text-align: center; color: #666; margin-top: 2px;}

.line-chart-placeholder {
    flex-grow: 1; height: 160px;
    background: repeating-linear-gradient(90deg, #f3f4f6, #f3f4f6 1px, transparent 1px, transparent 40px);
    border-bottom: 2px solid #e5e7eb;
    position: relative;
}
/* Placeholder linea del gráfico */
.line-chart-line {
    position: absolute;
    bottom: 30%; left: 0; width: 100%; height: 2px;
    background-color: #3b82f6;
    opacity: 0.6;
}

.chart-footer-info {
    background-color: #f3f4f6;
    border-radius: 8px;
    padding: 12px;
    display: flex; align-items: center; gap: 8px;
    color: #666; font-size: 13px;
    margin-top: 16px;
}

/* Estado de Aplicaciones */
.app-state-chart-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}
.donut-placeholder {
    width: 110px; height: 110px;
    border-radius: 50%;
    border: 14px solid #e5e7eb; /* Simplificado */
    border-top-color: #10b981;
    border-right-color: #f97316;
    border-bottom-color: #3b82f6;
    display: flex; align-items: center; justify-content: center; flex-direction: column;
}
.donut-total { font-size: 20px; font-weight: 700; }
.donut-label { font-size: 11px; color: #666; }

.app-status-legend { list-style: none; flex-grow: 1;}
.app-status-legend li {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; margin-bottom: 8px;
}
.legend-key { display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-green { background-color: #10b981; }
.dot-blue { background-color: #3b82f6; }
.dot-orange { background-color: #f97316; }
.dot-gray { background-color: #d1d5db; }

.status-count { font-weight: 500; text-align: right; width: 20px;}
.status-pct { color: #8c8c8c; text-align: right; width: 40px;}

.btn-outline-primary {
    display: block; width: 100%; text-align: center;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #2563eb;
    background: transparent;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

/* --- Sección Inferior (Listas) --- */
.bottom-section {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 24px;
}

/* Listas de Items */
.item-list { list-style: none; }
.list-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}
.list-item:last-child { border-bottom: none; }

.company-logo {
    width: 36px; height: 36px;
    border-radius: 6px;
    background-color: #f3f4f6; /* Placeholder logos */
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700;
}
.company-logo.banco-co { background-color: #fffbeb; color: #b45309; }
.company-logo.nu { background-color: #ede9fe; color: #6d28d9; }
.company-logo.ab { background-color: #fef2f2; color: #b91c1c; }

.item-info { flex-grow: 1; }
.item-title { font-weight: 500; font-size: 14px; }
.item-subtitle { color: #666; font-size: 12px; }

.item-tag {
    font-size: 11px; padding: 4px 8px; border-radius: 4px;
    font-weight: 500;
}
.tag-green { background-color: #d1fae5; color: #065f46; }
.tag-blue { background-color: #dbeafe; color: #1e40af; }
.tag-postulada { background-color: #dbeafe; color: #1e40af; }
.tag-en-proceso { background-color: #ffedd5; color: #9a3412; }
.tag-seleccionada { background-color: #d1fae5; color: #065f46; }
.tag-descartada { background-color: #fee2e2; color: #991b1b; }
.tag-retirada { background-color: #e2e8f0; color: #334155; }

.item-salary { font-size: 12px; color: #444; }
.item-meta { display: flex; align-items: center; gap: 8px; color: #888; font-size: 11px;}

/* Mejora tu perfil */
.profile-card {
    width: 280px;
}
.profile-progress-row {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 20px;
}
.profile-pct-circle {
    width: 50px; height: 50px;
    border-radius: 50%;
    border: 5px solid #d1d5db;
    border-top-color: #3b82f6;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 13px;
}

.checklist { list-style: none; margin-bottom: 20px; }
.checklist li {
    font-size: 13px; margin-bottom: 8px;
    display: flex; align-items: center; gap: 8px;
    color: #666;
}
.icon-check { color: #10b981; font-size: 14px;}
.icon-uncheck { color: #d1d5db; font-size: 14px;}

