/* public/assets/css/style.css */
:root {
    --sidebar-bg: #82a8d8; /* Azul Claro de la captura */
    --primary-color: #0e2d53; /* Azul Oscuro (Textos/Botones) */
    --accent-color: #e91e63; /* Rosa Magenta (Botón Completar) */
    --bg-body: #f5f7fa;
    --text-dark: #333;
    --sidebar-width: 260px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-body);
    overflow-x: hidden;
}

/* --- SIDEBAR --- */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0; left: 0;
    background-color: var(--sidebar-bg);
    color: white;
    padding-top: 20px;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.logo-box {
    padding: 0 20px 20px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.nav-link {
    color: white;
    font-weight: 500;
    padding: 15px 25px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(255,255,255,0.15);
    opacity: 1;
    border-left: 5px solid var(--primary-color);
}

.nav-link i { width: 30px; font-size: 1.1rem; }

/* --- MAIN CONTENT --- */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 30px;
    transition: margin-left 0.3s;
}

/* Header Top */
.header-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-avatar {
    background-color: var(--primary-color);
    color: white;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
}

/* --- DASHBOARD CARDS --- */
.card-welcome {
    background: white;
    border: none;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    margin-bottom: 20px;
}

.progress-bar-custom {
    height: 12px;
    border-radius: 6px;
    background-color: #e9ecef;
    margin: 15px 0;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background-color: #198754; /* Verde éxito */
    border-radius: 6px;
}

.btn-complete {
    background-color: var(--accent-color);
    color: white;
    width: 100%;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 15px;
    display: block;
    text-align: center;
    text-decoration: none;
}
.btn-complete:hover { background-color: #c2185b; color: white; }

/* --- EXPEDIENTE TABS --- */
.nav-pills .nav-link {
    background: white;
    color: #666;
    margin-right: 10px;
    border-radius: 6px;
    border: 1px solid #eee;
    font-weight: 500;
}
.nav-pills .nav-link.active {
    background-color: #2d62ed; /* Azul brillante pestaña activa */
    color: white;
    border-color: #2d62ed;
}

.doc-row {
    background: white;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.doc-icon {
    font-size: 2rem;
    margin-right: 20px;
    width: 40px;
    text-align: center;
}

.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-color); /* Asegúrate que esta variable exista, si no usa #e91e63 */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4); /* Sombra más fuerte */
    cursor: pointer;
    font-size: 24px;
    z-index: 9999; /* <--- IMPORTANTE: Valor muy alto para estar encima de todo */
    transition: transform 0.3s, background-color 0.3s;
    border: 2px solid white; /* Borde para asegurar visibilidad */
}

.fab:hover {
    transform: scale(1.1);
    background-color: #c2185b;
}

/* --- PERFIL --- */
.form-label { font-size: 0.9rem; color: #666; margin-bottom: 5px; }
.form-control { padding: 10px; border-radius: 8px; border: 1px solid #ddd; }

/* --- Quality Card Styles --- */
.quality-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Colores de estado */
.status-confiable { border-top: 5px solid #198754; color: #198754; }
.status-condicionado { border-top: 5px solid #ffc107; color: #d39e00; }
.status-noconfiable { border-top: 5px solid #dc3545; color: #dc3545; }
.status-sinevaluacion { border-top: 5px solid #6c757d; color: #6c757d; }

.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 auto 15px auto;
    border: 6px solid #f0f0f0;
}

/* Variantes del círculo */
.circle-confiable { border-color: #198754; color: #198754; background: #e8f5e9; }
.circle-condicionado { border-color: #ffc107; color: #d39e00; background: #fff8e1; }
.circle-noconfiable { border-color: #dc3545; color: #dc3545; background: #f8d7da; }
.circle-gray { border-color: #dee2e6; color: #6c757d; background: #f8f9fa; }

/* --- RESPONSIVE --- */
.sidebar-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 900;
}

@media (max-width: 991px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.active { transform: translateX(0); }
    .main-content { margin-left: 0; padding: 15px; }
    .sidebar-overlay.active { display: block; }

    .header-area { flex-direction: column; align-items: flex-start; gap: 15px; }
    .header-area > div { width: 100%; display: flex; justify-content: space-between; align-items: center; }

    .doc-row { flex-direction: column; align-items: flex-start; gap: 15px; }
    .doc-row > div:last-child { width: 100%; display: flex; justify-content: space-between; }
}
