﻿/* ============================= */
/* ENC MODULE PROFESSIONAL CSS */
/* ============================= */

:root {
    --enc-primary: #2563eb;
    --enc-success: #16a34a;
    --enc-danger: #dc2626;
    --enc-warning: #f59e0b;
    --enc-bg: #f5f7fb;
    --enc-card: #ffffff;
    --enc-border: #e5e7eb;
    --enc-text: #1f2937;
}

/* RESET BÁSICO */
.enc-admin,
.enc-user,
.enc-dashboard {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--enc-bg);
    padding: 20px;
    box-sizing: border-box;
    color: var(--enc-text);
}

/* ============================= */
/* CARDS */
/* ============================= */

.enc-card {
    background: var(--enc-card);
    border: 1px solid var(--enc-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* ============================= */
/* TITULOS */
/* ============================= */

.enc-admin h2,
.enc-user h3 {
    margin-bottom: 15px;
    font-weight: 600;
}

/* ============================= */
/* INPUTS */
/* ============================= */

.enc-admin input[type="text"],
.enc-admin textarea,
.enc-user textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--enc-border);
    margin-bottom: 10px;
    font-size: 14px;
}

.enc-admin textarea,
.enc-user textarea {
    min-height: 80px;
}

/* ============================= */
/* CHECKBOX & RADIO */
/* ============================= */

.enc-user input[type="radio"],
.enc-user input[type="checkbox"] {
    margin-right: 8px;
}

/* ============================= */
/* BOTONES */
/* ============================= */

.enc-admin button,
.enc-user button,
.enc-admin input[type="submit"],
.enc-user input[type="submit"] {
    background: var(--enc-primary);
    border: none;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s ease;
}

    .enc-admin button:hover,
    .enc-user button:hover {
        background: #1e40af;
    }

.enc-btn-danger {
    background: var(--enc-danger) !important;
}

.enc-btn-success {
    background: var(--enc-success) !important;
}

/* ============================= */
/* ALERTAS */
/* ============================= */

.enc-alert {
    padding: 12px;
    border-radius: 8px;
    background: #fee2e2;
    color: #991b1b;
    margin-bottom: 15px;
}

/* ============================= */
/* DASHBOARD */
/* ============================= */

.enc-dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.enc-kpi-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.enc-kpi {
    background: var(--enc-card);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--enc-border);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

    .enc-kpi h4 {
        margin: 0;
        font-size: 14px;
        color: #6b7280;
    }

    .enc-kpi span {
        font-size: 24px;
        font-weight: 700;
        display: block;
        margin-top: 8px;
    }

/* ============================= */
/* GRÁFICOS BARRA */
/* ============================= */

.enc-bar-container {
    margin-bottom: 15px;
}

.enc-bar-label {
    font-size: 14px;
    margin-bottom: 5px;
}

.enc-bar-bg {
    background: #e5e7eb;
    height: 22px;
    border-radius: 8px;
    overflow: hidden;
}

.enc-bar-fill {
    height: 22px;
    background: var(--enc-primary);
    border-radius: 8px;
    text-align: right;
    padding-right: 8px;
    color: white;
    font-size: 12px;
    line-height: 22px;
}

/* ============================= */
/* TABLAS RESULTADOS */
/* ============================= */

.enc-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

    .enc-table th,
    .enc-table td {
        border: 1px solid var(--enc-border);
        padding: 10px;
        text-align: left;
    }

    .enc-table th {
        background: #f3f4f6;
        font-weight: 600;
    }

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 768px) {

    .enc-admin,
    .enc-user,
    .enc-dashboard {
        padding: 12px;
    }

    .enc-kpi span {
        font-size: 20px;
    }

    .enc-admin button,
    .enc-user button {
        width: 100%;
        margin-top: 10px;
    }
}
.enc-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 10px;
}

.enc-radio-item {
    margin-right: 10px;
}
/* MULTI OPCION GRID */
.enc-multi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.enc-multi-item {
    display: flex;
    align-items: center;
}

/* RESPONSIVE MOVIL */
@media (max-width: 768px) {
    .enc-multi-grid {
        grid-template-columns: 1fr;
    }
}
.enc-icon-btn {
    background: none;
    border: none;
    padding: 4px;
    color: #64748b; /* gris elegante */
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

    .enc-icon-btn:hover {
        color: #dc2626; /* rojo elegante */
        transform: scale(1.1);
    }

    .enc-icon-btn:focus {
        outline: none;
    }

.enc-required {
    color: #dc2626;
    font-weight: bold;
    margin-left: 4px;
}

.enc-card {
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 15px;
    background: #fff;
}

.enc-preg {
    font-weight: 600;
    margin-bottom: 10px;
}

.enc-textarea {
    width: 100%;
    min-height: 60px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
}
/*MODULO ADMINISTRATIVO*/
.enc-dashboard {
    padding: 20px;
}

.enc-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.enc-kpi {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.enc-kpi-icon {
    font-size: 28px;
    color: #2563eb;
    margin-right: 15px;
}

.enc-kpi-title {
    font-size: 14px;
    color: #64748b;
}

.enc-kpi-value {
    font-size: 26px;
    font-weight: bold;
}

.enc-table {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.enc-row {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.enc-header {
    font-weight: bold;
}

.enc-bar {
    background: #e5e7eb;
    border-radius: 8px;
    height: 20px;
}

    .enc-bar div {
        background: #2563eb;
        height: 100%;
        color: #fff;
        text-align: center;
        border-radius: 8px;
        font-size: 12px;
    }