/* =========================================================
   BASE & RESET
========================================================= */
.baihost-dashboard {
    font-family: Inter, system-ui, -apple-system, sans-serif;
}

.baihost-dashboard h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.baihost-dashboard h1 + p {
    font-size: .95rem;
    color: #64748b;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    display: inline-block;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
}

/* =========================================================
   LAYOUT & CONTAINERS
========================================================= */
.bh-page { background: #f8fafc; }

.bh-page__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.bh-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 56px;
}

/* =========================================================
   QUICK ACTIONS (DASHBOARD CARDS)
========================================================= */
.dashboard-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s ease, transform .15s ease;
    min-height: 96px;
}

.dashboard-card:hover {
    box-shadow: 0 10px 30px rgba(15,23,42,.06);
    transform: translateY(-1px);
}

.dashboard-card .bi-chevron-right {
    font-size: 1.1rem;
    color: #cbd5f5;
}

.icon-circle {
    width: 48px;
    height: 48px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================================
   KPI CARDS
========================================================= */
.kpi-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    transition: box-shadow .2s ease;
}

.kpi-title {
    font-size: .75rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
    letter-spacing: .04em;
    margin-bottom: 6px;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 6px 0;
}

.kpi-link {
    font-size: .8rem;
    color: #22c55e;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

/* =========================================================
   MANAGED SERVICES
========================================================= */
.bh-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 56px 0 26px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    transition: box-shadow .2s ease;
}

.service-icon {
    width: 36px;
    height: 36px;
    background: #ecfeff;
    color: #24974ebf;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================================
   TABS & NAVIGATION (BOX)
========================================================= */
.bh-box__tabs {
    display: flex;
    gap: 32px;
    padding: 20px 24px 0;
    border-bottom: 1px solid #e5e7eb;
}

.bh-tab {
    background: none;
    border: none;
    padding: 14px 0;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #94a3b8;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.bh-tab.active {
    color: #22c55e;
    border-bottom-color: #22c55e;
}

.bh-tab-panel { display: none; }
.bh-tab-panel.active { display: block; }

.bh-box__content { padding: 24px; }

.bh-box__footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    background: #fafafa;
}

.tab-footer {
    display: none;
    font-size: .85rem;
    font-weight: 600;
    color: #22c55e;
    text-decoration: none;
}

.tab-footer.active { display: inline-block; }

/* =========================================================
   ANNOUNCEMENTS
========================================================= */
.bh-announcement {
    padding: 20px 24px;
    border-left: 4px solid #22c55e;
    margin-bottom: 24px;
}

.bh-announcement:last-child { margin-bottom: 0; }

.bh-announcement__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #0f172a;
}

.bh-announcement__excerpt {
    font-size: .9rem;
    line-height: 1.55;
    color: #64748b;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bh-announcement__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: .75rem;
}

.bh-announcement__date { color: #94a3b8; }

.bh-announcement__link {
    color: #22c55e;
    font-weight: 600;
    text-decoration: none;
}

/* =========================================================
   TICKETS (LIST STYLE)
========================================================= */
.bh-tickets-list { display: flex; flex-direction: column; gap: 6px; }

.bh-tickets-head, .bh-ticket-row {
    display: grid;
    grid-template-columns: 160px 1fr 140px 160px;
    align-items: center;
}

.bh-tickets-head {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 8px 0 12px;
}

.bh-ticket-row { padding: 14px 0; }

.bh-ticket-id-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 600;
    text-decoration: none;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    transition: all .15s ease;
}

.bh-ticket-id-tag:hover {
    background: #e2e8f0;
    color: #0f172a;
    font-weight: 700;
}

.bh-ticket-subject { font-weight: 600; color: #0f172a; }

.bh-ticket-reply {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: #94a3b8;
}

.bh-tickets-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.bh-btn-outline {
    border: 1px solid #e5e7eb;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: .75rem;
    font-weight: 700;
    text-decoration: none;
    color: #22c55e;
}

/* =========================================================
   STATUS PILLS
========================================================= */
.bh-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: capitalize;
}

.bh-status-open { background: #ecfdf5; color: #16a34a; }
.bh-status-closed { background: #f1f5f9; color: #64748b; }
.bh-status-answered { background: #eff6ff; color: #2563eb; }
.bh-status-replied { background: #fff7ed; color: #c2410c; }

/* HEADERSSS */
.bh-nav {
    gap: 32px;
}
.bh-header__inner {
    max-width: 1280px;
    height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.bh-header {
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
    padding: 10px 32px;
}
.bh-nav a.active {
    color: #ffffff;
    border-bottom-color: #22c55e;
}

.bh-nav a.active {
    color: #ffffff;
    border-bottom-color: #22c55e;
}
.bh-nav a {
    color: #94a3b8;
    font-weight: 500;
    font-size: .9rem;
    text-decoration: none;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    transition: all .15s ease;
}

/* ================================== 
   Contenedor principal del logo 
================================== */
.bh-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* El cuadrado (isotipo) */
.bh-logo__mark {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.40); /* Borde semi-transparente */
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* El punto blanco central */
.bh-logo__mark > span {
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 3px;
    display: block;
}

/* El texto BAIHOST */
.bh-logo__word {
    font-family: "Inter", sans-serif; /* Usando la fuente cargada en tu tpl */
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.20em; /* Espaciado ancho de la imagen */
    text-transform: uppercase;
    line-height: 1;
}

/* SEARCH */
.bh-search {
    color: #94a3b8;
    font-size: .85rem;
}
.bh-icon-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    padding: 0;
}
.bh-icon-btn:hover {
    color: #fff;
}

.bh-user {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    color: #ffffff;
}
.bh-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 700;
    color: #ffffff;
}

/* LIMPIAR HEADER PRINCIPAL */
/* Elimina la flecha azul por defecto de Bootstrap */
.bh-user-link.dropdown-toggle::after {
    display: none !important;
}

/* Ajuste opcional para que el dropdown se vea como en tu imagen */
.dropdown-menu {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
}
/* 1. Eliminar flecha por defecto de Bootstrap (el punto azul/flecha extra) */
.bh-user-link.dropdown-toggle::after {
    display: none !important;
}

/* 2. Estilo del contenedor del menú */
.dropdown-menu.bh-dropdown-menu {
    background-color: #1e293b; /* Color exacto de tu captura */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 220px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

/* 3. Estilo de los ítems del menú */
.bh-dropdown-menu .dropdown-item {
    color: #94a3b8 !important; /* Gris suave */
    padding: 10px 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

/* 4. HOVER: Color sutil para diseño oscuro */
.bh-dropdown-menu .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

/* 5. Item de Cerrar Sesión (Rojo suave) */
.bh-dropdown-menu .item-logout {
    color: #ef4444 !important;
}
.bh-dropdown-menu .item-logout:hover {
    background-color: rgba(239, 68, 68, 0.1) !important;
    color: #f87171 !important;
}

/* 6. Divisor sutil */
.bh-dropdown-menu .dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 8px 0;
}