/**
 * Dashboards — Fungiverse Crecienta
 * ====================================
 * Paneles de usuario: Embajador, Terapeuta, Customer.
 * Dark glassmorphism — paleta #0a0a0a / #e84d44
 * Rediseñado 2026-05-18 para alinearse con la marca.
 */

/* ══════════════════════════════════════════════════
   BASE
   ══════════════════════════════════════════════════ */
.fv-dashboard {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 70vh;
    background: #0a0a0a;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}

/* ══════════════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════════════ */
.fv-dashboard__sidebar {
    background: #111111;
    padding: 2rem 1.25rem;
    border-right: 1px solid rgba(255,255,255,0.07);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.fv-dashboard__eyebrow {
    margin: 0;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #e84d44;
    font-weight: 600;
}

.fv-dashboard__sidebar-title {
    margin: 0;
    font-family: var(--fv-font-heading, sans-serif);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.3;
}

.fv-dashboard__nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.fv-dashboard__nav-item {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.9rem;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.18s ease;
    letter-spacing: 0.01em;
}

.fv-dashboard__nav-item:hover {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.85);
}

.fv-dashboard__nav-item--active {
    background: #e84d44;
    color: #fff !important;
    font-weight: 600;
}

.fv-dashboard__nav-item--active:hover {
    background: #d43d34;
    color: #fff !important;
}

/* ══════════════════════════════════════════════════
   CONTENT AREA
   ══════════════════════════════════════════════════ */
.fv-dashboard__content {
    padding: 2rem 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: #0a0a0a;
}

/* Header */
.fv-dashboard__header {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 1.25rem;
}

.fv-dashboard__title {
    margin: 0.25rem 0 0.4rem;
    font-family: var(--fv-font-heading, sans-serif);
    color: #fff;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    line-height: 1.2;
}

.fv-dashboard__lead {
    margin: 0;
    color: rgba(255,255,255,0.4);
    font-size: 0.82rem;
    line-height: 1.6;
}

/* ══════════════════════════════════════════════════
   STAT CARDS — 4 en una fila
   ══════════════════════════════════════════════════ */
.fv-dashboard__stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.875rem;
}

.fv-dashboard__card {
    background: #141414 !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 12px !important;
    padding: 1.1rem 1.25rem !important;
    transition: border-color 0.18s ease;
    box-shadow: none !important;
}

.fv-dashboard__card:hover {
    border-color: rgba(232, 77, 68, 0.25) !important;
}

.fv-dashboard__card-title {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.35) !important;
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.fv-dashboard__stat {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff !important;
    line-height: 1;
    margin: 0;
}

.fv-dashboard__stat--small {
    font-size: 1.3rem;
    color: #e84d44 !important;
}

/* ══════════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════════ */
.fv-dashboard__section {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.fv-dashboard__section-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fv-dashboard__section-heading h3 {
    margin: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.35);
    font-weight: 600;
}

/* ══════════════════════════════════════════════════
   SECCIÓN: CÓMO FUNCIONA — GRID 2x2
   ══════════════════════════════════════════════════ */
.fv-dashboard__section--how {
    background: transparent;
    border: none;
    padding: 0;
}

.fv-dashboard__how-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.fv-dashboard__how-item {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    background: #141414;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: border-color 0.18s ease;
}

.fv-dashboard__how-item:hover {
    border-color: rgba(232, 77, 68, 0.2);
}

.fv-dashboard__how-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    opacity: 0.85;
    line-height: 1;
    margin-top: 0.1rem;
}

.fv-dashboard__how-item strong {
    display: block;
    color: #fff;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.fv-dashboard__how-item p {
    margin: 0;
    font-size: 0.77rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.55;
}

.fv-dashboard__how-item p strong {
    display: inline;
    color: #e84d44;
    font-weight: 600;
}

/* ══════════════════════════════════════════════════
   SECCIÓN: LINK / CLIPBOARD — 2 columnas
   ══════════════════════════════════════════════════ */
.fv-dashboard__stats-grid--compact {
    grid-template-columns: repeat(2, 1fr);
}

.fv-dashboard__clipboard {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.fv-dashboard__clipboard code {
    flex: 1;
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    color: #e84d44;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
    border: 1px solid rgba(255,255,255,0.08);
    font-family: monospace;
    letter-spacing: 0.03em;
}

/* Botón copiar inline */
.fv-dashboard__clipboard .fv-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.4rem 0.85rem;
    font-size: 0.72rem;
    background: rgba(232, 77, 68, 0.12);
    color: #e84d44;
    border: 1px solid rgba(232, 77, 68, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.18s ease;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fv-dashboard__clipboard .fv-btn:hover {
    background: #e84d44;
    color: #fff;
    border-color: #e84d44;
}

/* ══════════════════════════════════════════════════
   TABLA DE PEDIDOS
   ══════════════════════════════════════════════════ */
.fv-dashboard__table-container {
    overflow-x: auto;
    background: #141414;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.07);
}

.fv-dashboard__table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.fv-dashboard__table th {
    padding: 0.65rem 1rem;
    background: rgba(255,255,255,0.03);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.3);
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.fv-dashboard__table td {
    padding: 0.7rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.04);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

.fv-dashboard__table td:last-child {
    color: #e84d44;
    font-weight: 600;
}

.fv-dashboard__table tbody tr:hover td {
    background: rgba(255,255,255,0.025);
}

/* ══════════════════════════════════════════════════
   BADGES
   ══════════════════════════════════════════════════ */
.fv-dashboard__badge {
    display: inline-flex;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.fv-dashboard__badge--pending  { background: rgba(230, 81, 0, 0.15);  color: #ff7043; }
.fv-dashboard__badge--approved { background: rgba(232, 77, 68, 0.12); color: #e84d44; }
.fv-dashboard__badge--rejected { background: rgba(255,255,255,0.06);  color: rgba(255,255,255,0.3); }

/* ══════════════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════════════ */
.fv-dashboard__card p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.6;
}

/* ══════════════════════════════════════════════════
   RESPONSIVO
   ══════════════════════════════════════════════════ */
@media (max-width: 991px) {
    .fv-dashboard {
        grid-template-columns: 1fr;
        border-radius: 12px;
    }

    .fv-dashboard__sidebar {
        padding: 1.25rem;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }

    .fv-dashboard__nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .fv-dashboard__nav-item {
        font-size: 0.75rem;
        padding: 0.45rem 0.75rem;
    }

    .fv-dashboard__content {
        padding: 1.25rem;
        gap: 1.5rem;
    }

    .fv-dashboard__stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fv-dashboard__how-grid {
        grid-template-columns: 1fr;
    }

    .fv-dashboard__stats-grid--compact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .fv-dashboard__stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .fv-dashboard__stat {
        font-size: 1.4rem;
    }

    .fv-dashboard__stat--small {
        font-size: 1.1rem;
    }
}
