/* aDashboard — Panel frontal Radio Azul */

.adash {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: #2c3e50;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
}

/* ── CABECERA ── */
.adash-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    color: #fff;
    padding: 22px 28px;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.adash-header-left  { display: flex; align-items: center; gap: 16px; }
.adash-header-right { text-align: right; }
.adash-logo  { font-size: 42px; line-height: 1; }
.adash-title { font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.adash-subtitle { font-size: 12px; opacity: .7; margin-top: 3px; }
.adash-time  { font-size: 32px; font-weight: 700; font-variant-numeric: tabular-nums; }
.adash-user  { font-size: 12px; opacity: .7; margin-top: 4px; }

/* ── ACCESOS RÁPIDOS ── */
.adash-quicklinks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.adash-ql {
    padding: 7px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.adash-ql:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.2); color: #fff; }
.adash-ql-blue   { background: #0073aa; }
.adash-ql-purple { background: #8e44ad; }
.adash-ql-green  { background: #27ae60; }

/* ── GRID 3 COLUMNAS ── */
.adash-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

/* ── MÓDULO ── */
.adash-module {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
}
.adash-module-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    color: #fff;
    font-weight: 700;
}
.adash-module-blue   .adash-module-header { background: linear-gradient(90deg,#0073aa,#005177); }
.adash-module-purple .adash-module-header { background: linear-gradient(90deg,#8e44ad,#6c3483); }
.adash-module-green  .adash-module-header { background: linear-gradient(90deg,#27ae60,#1e8449); }

.adash-module-icon  { font-size: 20px; }
.adash-module-title { font-size: 16px; flex: 1; }
.adash-module-link  {
    font-size: 12px;
    color: rgba(255,255,255,.8);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.4);
    padding: 3px 10px;
    border-radius: 12px;
    transition: background .15s;
}
.adash-module-link:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ── KPIs ── */
.adash-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-bottom: 1px solid #f0f0f0;
}
.adash-kpi {
    padding: 12px 8px;
    text-align: center;
    border-right: 1px solid #f0f0f0;
}
.adash-kpi:last-child { border-right: none; }
.adash-kpi-num { font-size: 20px; font-weight: 800; color: #2c3e50; }
.adash-kpi-lbl { font-size: 10px; color: #999; margin-top: 2px; }
.adash-kpi-ok     .adash-kpi-num { color: #27ae60; }
.adash-kpi-warn   .adash-kpi-num { color: #e67e22; }
.adash-kpi-danger .adash-kpi-num { color: #c0392b; }

/* ── ALERTA ── */
.adash-alert {
    background: #fff8e5;
    border-left: 3px solid #f0ad00;
    padding: 8px 14px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.adash-alert a { color: #0073aa; font-weight: 600; text-decoration: none; }

/* ── PROGRESO ── */
.adash-progress-wrap { padding: 12px 16px; border-bottom: 1px solid #f0f0f0; }
.adash-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}
.adash-progress-bar {
    background: #eee;
    border-radius: 6px;
    height: 10px;
    overflow: hidden;
}
.adash-progress-fill {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    height: 100%;
    border-radius: 6px;
    transition: width .4s ease;
}
.adash-progress-sub { font-size: 11px; color: #aaa; margin-top: 5px; }

/* ── SECTION TITLE ── */
.adash-section-title {
    padding: 8px 16px 4px;
    font-size: 11px;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ── LISTA ── */
.adash-list { padding: 0 8px 8px; flex: 1; }
.adash-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 8px;
    border-radius: 6px;
    gap: 8px;
    transition: background .1s;
}
.adash-list-item:hover { background: #f8f9fa; }
.adash-list-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.adash-list-main strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adash-list-sub   { font-size: 11px; color: #aaa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adash-list-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }

/* ── BADGES ── */
.adash-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}
.adash-badge-ok     { background: #27ae60; }
.adash-badge-warn   { background: #e67e22; }
.adash-badge-danger { background: #c0392b; }
.adash-badge-blue   { background: #0073aa; }
.adash-badge-green  { background: #27ae60; }

/* ── ACCIONES DEL MÓDULO ── */
.adash-module-actions {
    padding: 12px 14px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
}
.adash-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: all .15s;
    border: 2px solid transparent;
    white-space: nowrap;
}
.adash-btn-blue    { background: #0073aa; color: #fff; }
.adash-btn-purple  { background: #8e44ad; color: #fff; }
.adash-btn-green   { background: #27ae60; color: #fff; }
.adash-btn-outline { background: transparent; color: #555; border-color: #ddd; }
.adash-btn:hover   { opacity: .85; transform: translateY(-1px); }
.adash-btn-outline:hover { border-color: #aaa; color: #333; }

/* ── NO DISPONIBLE ── */
.adash-unavailable {
    padding: 20px;
    text-align: center;
    color: #aaa;
    font-size: 13px;
}

/* ── FOOTER ── */
.adash-footer {
    text-align: center;
    font-size: 11px;
    color: #bbb;
    padding: 10px;
}
.adash-footer a { color: #0073aa; text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .adash-grid { grid-template-columns: 1fr; }
    .adash-kpis { grid-template-columns: repeat(2, 1fr); }
    .adash-kpi:nth-child(2) { border-right: none; }
}
@media (max-width: 600px) {
    .adash-header { flex-direction: column; align-items: flex-start; }
    .adash-header-right { text-align: left; }
    .adash-time { font-size: 24px; }
    .adash-quicklinks { gap: 6px; }
    .adash-ql { font-size: 11px; padding: 6px 12px; }
}
