/* =====================================================================
   PANEL ADMINISTRATIVO DE RECURSOS HUMANOS - DICOCIBER / CEOFANB
   ===================================================================== */

.admin-wrapper {
    max-width: 1350px;
    margin: 25px auto 80px auto;
    padding: 0 20px;
}

/* SERVER SHARING BANNER */
.server-share-banner {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.12), rgba(13, 22, 41, 0.95));
    border: 1px solid var(--cyber-cyan);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 8px 30px rgba(0, 210, 255, 0.15);
}

.share-info h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.share-links-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.share-link-chip {
    background: #091325;
    border: 1px solid rgba(0, 210, 255, 0.3);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--cyber-cyan);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.share-link-chip button {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.8rem;
    transition: color 0.2s;
}
.share-link-chip button:hover {
    color: var(--gold-patria);
}

/* STATS KPI CARDS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    box-shadow: var(--shadow-cyber);
    display: flex;
    align-items: center;
    gap: 18px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--cyber-cyan);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.cyan {
    background: rgba(0, 210, 255, 0.12);
    color: var(--cyber-cyan);
    border: 1px solid rgba(0, 210, 255, 0.3);
}

.stat-icon.gold {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-patria);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.stat-icon.green {
    background: rgba(39, 174, 96, 0.12);
    color: var(--military-green);
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.stat-icon.red {
    background: rgba(192, 57, 43, 0.12);
    color: #e74c3c;
    border: 1px solid rgba(192, 57, 43, 0.3);
}

.stat-content h5 {
    font-size: 0.76rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-content .stat-value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

/* CHARTS / BREAKDOWN PANELS */
.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.panel-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-cyber);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-header h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.distribution-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dist-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dist-item-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #cbd5e1;
}

.dist-item-bar {
    width: 100%;
    height: 7px;
    background: #091325;
    border-radius: 4px;
    overflow: hidden;
}

.dist-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyber-cyan), #0077b6);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.dist-bar-fill.gold {
    background: linear-gradient(90deg, var(--gold-patria), #d97706);
}

/* FILTER BAR & CONTROLS */
.filter-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-cyber);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
}

.filter-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex: 1;
}

.search-input-box {
    position: relative;
    min-width: 250px;
    flex: 1;
}

.search-input-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input-box input {
    padding-left: 36px;
}

.filter-select {
    min-width: 160px;
}

.export-actions {
    display: flex;
    gap: 10px;
}

.btn-export {
    background: #0d2238;
    border: 1px solid var(--cyber-cyan);
    color: var(--cyber-cyan);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-export:hover {
    background: var(--cyber-cyan);
    color: #050b14;
}

/* TABLE PARTICIPANTES */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-cyber);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
    text-align: left;
}

.data-table th {
    background: #0b1529;
    color: #94a3b8;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 14px 16px;
    border-bottom: 2px solid rgba(0, 210, 255, 0.2);
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    vertical-align: middle;
}

.data-table tr:hover {
    background: rgba(0, 210, 255, 0.04);
}

.officer-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.officer-thumb {
    width: 44px;
    height: 52px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    background: #070d1a;
}

.officer-info strong {
    display: block;
    color: #ffffff;
    font-size: 0.9rem;
}

.officer-info span {
    font-size: 0.76rem;
    color: var(--text-secondary);
}

.badge-status {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-block;
}

.badge-status.pendiente {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.4);
}

.badge-status.revisado {
    background: rgba(0, 210, 255, 0.15);
    color: var(--cyber-cyan);
    border: 1px solid rgba(0, 210, 255, 0.4);
}

.badge-status.validado {
    background: rgba(39, 174, 96, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(39, 174, 96, 0.4);
}

.action-buttons-cell {
    display: flex;
    gap: 8px;
}

.btn-table-action {
    background: #091325;
    border: 1px solid rgba(0, 210, 255, 0.25);
    color: #e2e8f0;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-size: 0.85rem;
}

.btn-table-action.btn-whatsapp {
    background: rgba(37, 211, 102, 0.15);
    border-color: #25d366;
    color: #25d366;
}
.btn-table-action.btn-whatsapp:hover {
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(37, 211, 102, 0.4);
}

.btn-table-action.btn-edit {
    background: rgba(243, 156, 18, 0.15);
    border-color: #f39c12;
    color: #f39c12;
}
.btn-table-action.btn-edit:hover {
    background: #f39c12;
    color: #050b14;
    box-shadow: 0 0 14px rgba(243, 156, 18, 0.4);
}

.btn-table-action.btn-html {
    background: rgba(0, 210, 255, 0.15);
    border-color: var(--cyber-cyan);
    color: var(--cyber-cyan);
}
.btn-table-action.btn-html:hover {
    background: var(--cyber-cyan);
    color: #050b14;
    box-shadow: 0 0 14px var(--cyber-cyan-glow);
}

.btn-table-action.btn-pdf {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold-patria);
    color: var(--gold-patria);
}
.btn-table-action.btn-pdf:hover {
    background: var(--gold-patria);
    color: #050b14;
    box-shadow: 0 0 14px var(--gold-glow);
}

/* Modal de Edición Integral */
.edit-modal-content {
    background: #0b152b;
    border: 2px solid var(--gold-patria);
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
}

.edit-section-header {
    border-bottom: 1px solid rgba(0, 210, 255, 0.2);
    padding-bottom: 6px;
    margin: 18px 0 14px 0;
    color: var(--gold-patria);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 14px;
}

.edit-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 14px;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 3rem;
    color: #1e293b;
    margin-bottom: 12px;
}
