/* ===== ESTILOS GENERALES ===== */
.hpanel-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
    line-height: 1.5;
}

/* ===== BARRA LATERAL ===== */
.hpanel-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: fit-content;
}

.hpanel-sidebar header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #222;
}

.hpanel-sidebar section {
    margin-bottom: 2rem;
}

.hpanel-sidebar h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hpanel-sidebar h4::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 16px;
    background: #4f46e5;
    border-radius: 2px;
}

/* ===== NOTIFICACIONES ===== */
.hpanel-notification {
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.hpanel-notification.admin-note {
    background: #f0f9ff;
    border-left: 3px solid #38bdf8;
}

.hpanel-notification.warning {
    background: #fef9c3;
    border-left: 3px solid #facc15;
}

.hpanel-notification.danger {
    background: #fee2e2;
    border-left: 3px solid #ef4444;
}

/* ===== ACCESOS (SIN PUNTOS) ===== */
.hpanel-sidebar-access ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hpanel-access-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.2s;
    color: #334155;
    text-decoration: none;
}

.hpanel-access-button:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}

/* ===== BOTÓN RENOVAR ===== */
.button-renew-plan {
    display: block;
    text-align: center;
    padding: 0.8rem;
    background: #4f46e5;
    color: white;
    border-radius: 8px;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.2s;
    text-decoration: none;
}

.button-renew-plan:hover {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(79, 70, 229, 0.3);
}

/* ===== LOG DE INICIOS ===== */
.hpanel-login-log {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.hpanel-login-log li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.log-username {
    font-weight: 500;
    display: block;
    margin-bottom: 0.2rem;
}

.log-details {
    color: #64748b;
    font-size: 0.8rem;
}

.log-details em {
    font-style: normal;
    color: #475569;
}

.button-clear-log {
    width: 100%;
    padding: 0.6rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
}

.button-clear-log:hover {
    background: #f1f5f9;
}

/* ===== CONTENIDO PRINCIPAL ===== */
.hpanel-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hpanel-section {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.hpanel-section h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #222;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== RESUMEN DEL PLAN (5 COLUMNAS) ===== */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 5px;
}

.summary-box {
    background: #f8fafc;
    padding: 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.summary-box strong {
    display: block;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
}

/* ===== HERRAMIENTAS ===== */
.widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.hpanel-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.2s;
    text-align: center;
}

.hpanel-widget:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.hpanel-widget img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.hpanel-widget a {
    font-size: 0.85rem;
    color: #334155;
    text-decoration: none;
}

/* ===== ESTADÍSTICAS ===== */
.resource-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.resource-box {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.resource-box strong {
    color: #4f46e5;
    font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .summary-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hpanel-container {
        grid-template-columns: 1fr;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .widget-grid,
    .resource-stats {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}